/* Table Wrapper */
.table-wrapper {
    overflow-x: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: white;
}

/* Modern Table */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.modern-table thead {
    background: linear-gradient(90deg, #364980, #f0d777); /* Dark blue → yellow */
    color: white;
}

.modern-table th,
.modern-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 500;
}

.modern-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.3s ease;
}

.modern-table tbody tr:hover {
    background-color: #e0f2fe; /* Light blue hover */
}

.modern-table tbody td {
    color: #1f2937;
}

/* Scrollbar Styling */
.table-wrapper::-webkit-scrollbar {
    height: 8px;
}
.table-wrapper::-webkit-scrollbar-thumb {
    background: #1e40af;
    border-radius: 4px;
}
.table-wrapper::-webkit-scrollbar-track {
    background: #f0f4f8;
}


/* === Table arrows (for sorting) === */
th.sortable {
    position: relative;
    cursor: pointer;
    user-select: none;
    padding-right: 1.5rem;
}

th.sortable::after {
    content: '▲';
    position: absolute;
    right: 0.5rem;
    font-size: 0.7rem;
    color: #2e2e2e; /* Yellow arrow */
    opacity: 0.3;
    transform: rotate(180deg); /* Default: descending */
    transition: transform 0.2s, opacity 0.2s;
}

th.sortable.asc::after {
    transform: rotate(0deg);
    opacity: 1;
}

th.sortable.desc::after {
    transform: rotate(180deg);
    opacity: 1;
}
