/* Wallet Page Specific Styles */

.wallet-summary {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.card-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #1e56d9;
}

.btn-outline {
    background-color: transparent;
    color: var(--dark-color);
    border: 1px solid var(--grey-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--grey-color);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.modal-body {
    padding: 20px;
}

/* Deposit Steps */
.deposit-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.deposit-steps::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 2px;
    background-color: var(--grey-color);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--grey-color);
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: white;
}

.step.completed .step-number {
    background-color: var(--success-color);
    color: white;
}

.step-text {
    font-size: 0.9rem;
    color: var(--dark-color);
}

/* Chain Selection */
.step-content {
    margin-top: 20px;
}

.step-content.hidden {
    display: none;
}

.chain-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.chain-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--grey-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chain-option:hover {
    border-color: var(--primary-color);
}

.chain-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.chain-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.est-fee {
    font-size: 0.8rem;
    color: #64748b;
    font-style: italic;
}

.chain-details h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.chain-details p {
    font-size: 0.85rem;
    color: #64748b;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions.centered {
    justify-content: center;
}

/* Address Display */
.warning-box {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.warning-box i {
    color: var(--warning-color);
    font-size: 1.2rem;
}

.address-box {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.address-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border: 1px solid var(--grey-color);
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
    word-break: break-all;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.1rem;
}

.qr-code {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.qr-code img {
    width: 160px;
    height: 160px;
}

/* Deposit Info */
.deposit-info {
    margin: 20px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--grey-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #64748b;
}

.transaction-id {
    font-family: monospace;
}

/* Success Message */
.success-message {
    text-align: center;
    margin: 30px 0;
}

.success-message i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 15px;
}

/* Section Container */
.section-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-top: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Transaction Types */
.transaction-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.transaction-type.deposit {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.transaction-type.withdraw {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

/* Form Styles for Withdraw */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--grey-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.address-hint {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 5px;
}

.amount-input-container {
    position: relative;
}

.amount-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 500;
}

.amount-details {
    background-color: #f8fafc;
    border-radius: 6px;
    padding: 12px;
    margin-top: 10px;
}

.amount-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.amount-detail:last-child {
    margin-bottom: 0;
    font-weight: 500;
}

.available-amount {
    color: var(--primary-color);
}

.network-fee {
    color: var(--danger-color);
}

.receive-amount {
    color: var(--success-color);
}

/* Confirmation Styles */
.confirmation-box {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.confirmation-box h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.confirmation-details {
    border-top: 1px solid var(--grey-color);
    padding-top: 15px;
}

.confirmation-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.confirmation-label {
    color: #64748b;
}

.confirmation-value {
    font-weight: 500;
}

.confirmation-value.address {
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.security-verification {
    margin-top: 25px;
}

.security-verification h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.verification-input {
    text-align: center;
    letter-spacing: 4px;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .wallet-summary {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .deposit-steps::before {
        left: 20px;
        right: 20px;
    }

    .confirmation-row {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .confirmation-value.address {
        margin-top: 5px;
    }
} 