/* wallet.css - Styles for Wallet Page */

.wallet-container {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.wallet-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-title i {
    color: #f59e0b;
}

/* Balance Card */
.wallet-balance-card {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-label {
    color: #dbeafe;
    font-size: 0.875rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.btn-deposit {
    background-color: #facc15;
    color: #1e3a8a;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-deposit:hover {
    background-color: #fde047;
    transform: translateY(-2px);
}

/* History Section */
.history-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.history-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.btn-refresh {
    color: #3b82f6;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-refresh:hover {
    color: #2563eb;
}

.table-responsive {
    overflow-x: auto;
}

.wallet-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.wallet-table th {
    background: #f9fafb;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wallet-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
    color: #374151;
}

.wallet-table tr:last-child td {
    border-bottom: none;
}

.wallet-table tr:hover {
    background-color: #f9fafb;
}

/* Status Badges */
.status-badge {
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-failed,
.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.text-deposit {
    color: #2563eb;
    font-weight: 600;
}

.text-spending {
    color: #d97706;
    font-weight: 600;
}

.amount-plus {
    color: #16a34a;
    font-weight: bold;
}

.amount-minus {
    color: #dc2626;
    font-weight: bold;
}

/* Modal */
.deposit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.deposit-modal.show {
    display: flex;
}

.modal-content-wallet {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 16px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header-wallet {
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-wallet h3 {
    margin: 0;
    font-size: 1.125rem;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #9ca3af;
}

.btn-close-modal:hover {
    color: #ef4444;
}

.modal-body-wallet {
    padding: 24px;
}

.quick-amounts {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.btn-quick-amount {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    white-space: nowrap;
}

.btn-quick-amount:hover {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

.input-money-group {
    position: relative;
    margin-bottom: 20px;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.input-money {
    width: 100%;
    padding: 10px 12px 10px 24px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

.input-money:focus {
    outline: none;
    border-color: #3b82f6;
    ring: 2px solid #bfdbfe;
}

.btn-submit-deposit {
    width: 100%;
    background: #2563eb;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-submit-deposit:hover {
    background: #1d4ed8;
}

.btn-submit-deposit:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .wallet-balance-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 24px;
    }

    .balance-amount {
        font-size: 2rem;
    }

    .btn-deposit {
        width: 100%;
        justify-content: center;
    }
}