/* Table Styling */
table {
    border-collapse: collapse;
    width: 100%;
    max-width: 1200px;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section Headers */
.section-header {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.3em;
    font-weight: bold;
}

.section-description {
    margin-bottom: 15px;
    color: #666;
}

table thead {
    background-color: #2c3e50;
    color: white;
}

table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

/* Sortable table headers */
table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 30px;
}

table th.sortable:hover {
    background-color: #34495e;
}

table th.sortable::after {
    content: '⇅';
    position: absolute;
    right: 10px;
    opacity: 0.4;
    font-size: 0.9em;
}

table th.sortable.sorted-asc::after {
    content: '↑';
    opacity: 1;
}

table th.sortable.sorted-desc::after {
    content: '↓';
    opacity: 1;
}

table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background-color: #f5f5f5;
}

table tbody tr:last-child {
    border-bottom: 2px solid #2c3e50;
}

table td {
    padding: 12px 15px;
    color: #333;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

/* Responsive table */
@media screen and (max-width: 768px) {
    table {
        font-size: 0.9em;
    }

    table th,
    table td {
        padding: 8px 10px;
    }
}
