/* =====================================================
   GLOBAL LAYOUT
===================================================== */

.account-wrapper {
    padding: 120px 30px 60px 30px;
    background: #f4f6fb;
    min-height: 100vh;
}

.account-container {
    max-width: 1300px;
    margin: auto;
}

.account-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.account-main {
    flex: 1;
    width: 100%;
}

/* =====================================================
   CARD
===================================================== */

.account-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.account-card:hover {
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.card-header-row {
    margin-bottom: 25px;
}

.card-header-row h4 {
    font-size: 22px;
    font-weight: 700;
}

/* =====================================================
   TABLE CONTAINER
===================================================== */

.transaction-table-container {
    width: 100%;
}

.transaction-table-scroll {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
}

/* =====================================================
   TABLE DESIGN
===================================================== */

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px; /* ensures horizontal scroll on small screens */
}

.transaction-table thead {
    background: #f9fafb;
}

.transaction-table th {
    padding: 14px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.transaction-table td {
    padding: 14px 12px;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.transaction-table tbody tr:hover {
    background: #f9fafb;
}

/* =====================================================
   TEXT
===================================================== */

.reference-text {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
}

.amount-text {
    font-weight: 700;
}

/* Credit & Debit Colors */

.amount-credit {
    color: #059669;
}

.amount-debit {
    color: #dc2626;
}

/* =====================================================
   BADGES
===================================================== */

.tx-badge {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
}

/* Type */

.type-credit {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.type-debit {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* Status */

.status-completed,
.status-success {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.status-cancelled {
    background: rgba(107, 114, 128, 0.15);
    color: #4b5563;
}

/* =====================================================
   DATATABLE CUSTOM STYLING
===================================================== */

.dataTables_wrapper {
    margin-top: 10px;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 6px 10px;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 4px 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    padding: 5px 10px !important;
    margin: 0 3px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #7c3aed !important;
    color: #fff !important;
    border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #6d28d9 !important;
    color: #fff !important;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 992px) {

    .account-layout {
        flex-direction: column;
    }

    .account-wrapper {
        padding: 100px 20px 50px 20px;
    }
}
