:root {
    --primary: #5CC9CC;
    --primary-hovered: #5CC9CC;
    --secondary: #217476;
    --light: #f8f9fa;
    --text: #495057;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Cambria, Georgia, serif;
}

body {
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    margin: auto;
    max-width: 1000px;
    padding: 2rem;
    flex: 1;
}
.table-scroll-container{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-decoration: none;
    margin-bottom: 2rem;
}

.back-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}
.table-responsive{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.results-content {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 6px 20px rgba(92, 201, 204, 0.3),
                0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    overflow-x: auto; /* For table responsiveness */
}

.results-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(92, 201, 204, 0.4),
                0 6px 15px rgba(0, 0, 0, 0.15);
}

h1 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

th {
    transition: var(--transition);
    cursor: pointer;
    background-color: var(--primary);
    color: white;
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
th:hover{
    background: var(--secondary);
    transform: translateY(-2px);
}
td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

tr:nth-child(even) {
    background-color: rgba(92, 201, 204, 0.05);
}

tr:hover {
    background-color: rgba(92, 201, 204, 0.1);
}

.gold { color: #FFD700; font-weight: bold; }
.silver { color: #C0C0C0; font-weight: bold; }
.bronze { color: #CD7F32; font-weight: bold; }

.search-filter {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box, .filter-dropdown {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
}

.search-box:focus, .filter-dropdown:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(92, 201, 204, 0.2);
}

footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    background: var(--primary);
    color: white;
    margin-top: auto;
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        padding: 1.25rem;
    }
    .results-content {
        padding: 1.5rem;
    }
    h1 {
        font-size: 1.8rem;
    }
    table {
        font-size: 0.9rem;
    }
    th, td {
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .back-btn {
        padding: 0.6rem 1.25rem;
    }
    h1 {
        font-size: 1.6rem;
    }
    .search-filter {
        flex-direction: column;
    }
}

.pagination {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.page-info {
    font-size: 0.9em;
    color: var(--text);
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid var(--primary);
    border-radius: 5px;
    background: white;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.sort-icon {
    margin-left: 8px;
    display: inline-block;
    width: 10px;
}

.sort-icon i {
    display: none;
    font-size: 0.8em;
}

th:hover .sort-icon i {
    display: inline-block;
    opacity: 0.3;
}

.sort-icon .active {
    display: inline-block !important;
    opacity: 1 !important;
}