/* =========================================
    BASE STYLES (Clean Pure White Theme Only)
========================================= */
body {
    margin: 0;
    background: #ffffff;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
    HEADER SECTION (SOLID ACCENT CONTRAST)
========================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 18px 24px;
    background: #fcd34d; 
    border-bottom: 2px solid #fbbf24;
    box-shadow: 0 4px 25px rgba(3, 105, 161, 0.12); 
}

.header h1 {
    margin: 0;
    font-size: 24px;
    color: #b45309; 
    font-weight: 500 !important;
    letter-spacing: 0.5px;
}

/* CONTAINER */
.container {
    padding: 20px;
    padding-bottom: 75px;
}

/* =========================================
    DESKTOP TABLE STYLES (HIGH CONTRAST MATRIX)
========================================= */
.table-wrapper {
    max-height: 80vh;
    overflow: auto;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(3, 105, 161, 0.08);
    border: 1px solid #fcd34d;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

th {
    background: rgba(240, 249, 255, 0.95); 
    backdrop-filter: blur(10px);
    padding: 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #b45309;
    cursor: pointer;
    user-select: none;
    position: sticky;
    top: 0;
    z-index: 300;
    border-bottom: 2px solid #fcd34d;
    transition: 0.2s;
}

th:hover {
    background: #fef3c7;
    color: #d97706;
}

th:first-child {
    text-align: left;
    padding-left: 20px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #fef3c7;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
    color: #1e293b;
}

td:first-child {
    text-align: left;
    padding-left: 20px;
}

tbody tr:nth-child(even) {
    background: #f8fafc; 
}

tbody tr:hover {
    background: #f1f5f9; 
    transition: 0.15s;
}

/* 🎯 REMOVE BOTTOM LINE FROM THE LAST ROW INDEX */
#adminTableBody tr:last-child td {
    border-bottom: none !important;
}

/* =========================================
    MOBILE RESPONSIVE UI (ULTRA COMPACT SYNC)
========================================= */
@media (max-width: 768px) {
    .header {
        padding: 14px 10px;
        background: #ffffff; 
    }

    .container {
        padding: 8px;
        padding-bottom: 70px;
    }
    .table-wrapper {
        border-radius: 0;
        margin-left: -8px;
        margin-right: -8px;
        width: calc(100% + 16px);
        overflow-x: auto;
        border-left: none;
        border-right: none;
        -webkit-overflow-scrolling: touch;
    }
    
    table { min-width: 480px !important; }
    
    th, .table-wrapper table thead tr th {
        padding: 6px 2px !important; 
        font-size: 11.5px !important;
        height: auto !important;
    }
    td, .table-wrapper table tbody tr td {
        padding: 5px 2px !important; 
        font-size: 11.5px !important;
        height: auto !important;
        line-height: normal !important;
        vertical-align: middle !important;
        box-sizing: border-box !important;
    }
    
    th:first-child {
        position: sticky;
        left: 0;
        z-index: 400;
        background: #f8fafc !important; 
        padding-left: 4px;
    }
    td:first-child {
        position: sticky;
        left: 0;
        z-index: 200;
        background: #ffffff !important;
        padding-left: 4px;
    }
}
.table-wrapper::-webkit-scrollbar {
    height: 0px !important; 
    display: none !important; 
}

.table-wrapper {
    scrollbar-width: none !important; 
    -ms-overflow-style: none !important; 
}