.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
    background: rgb(16, 16, 16);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: rgb(16, 16, 16);
    color: #ffffff;
    margin: 0;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

th,
td {
    text-align: center;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    color: #ffffff;
}

th {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    font-weight: 600;
    height: 60px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

td {
    background-color: #222222;
}

tr:nth-child(even) td {
    background-color: #2a2a2a;
}

tr:hover td {
    background-color: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.rank {
    font-weight: bold;
    font-size: 1.1em;
    background: linear-gradient(135deg, #444444 0%, #333333 100%);
    color: #ffffff;
    border-radius: 6px;
    margin: 2px;
    display: inline-block;
    min-width: 30px;
    padding: 4px 8px;
}

.rank:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #000000;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.level-icons {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.level-icons img {
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
}

.level-icons img:nth-child(2) {
    width: 32px;
    height: 32px;
    top: 16px;
    left: 16px;
    border-radius: 4px;
}

.rank-1 .level-icons {
    animation: goldGlow 2s infinite alternate;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 0 0 2px #ffd700;
    border-radius: 12px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

.rank-2 .level-icons {
    animation: silverGlow 2s infinite alternate;
    box-shadow: 
        0 0 20px rgba(192, 192, 192, 0.6),
        0 0 40px rgba(192, 192, 192, 0.3),
        inset 0 0 0 2px #c0c0c0;
    border-radius: 12px;
    background: radial-gradient(circle, rgba(192, 192, 192, 0.1) 0%, transparent 70%);
}

.rank-3 .level-icons {
    animation: bronzeGlow 2s infinite alternate;
    box-shadow: 
        0 0 20px rgba(205, 127, 50, 0.6),
        0 0 40px rgba(205, 127, 50, 0.3),
        inset 0 0 0 2px #cd7f32;
    border-radius: 12px;
    background: radial-gradient(circle, rgba(205, 127, 50, 0.1) 0%, transparent 70%);
}

@keyframes goldGlow {
    0% {
        box-shadow: 
            0 0 15px rgba(255, 215, 0, 0.4),
            0 0 30px rgba(255, 215, 0, 0.2),
            inset 0 0 0 2px #ffd700;
    }
    100% {
        box-shadow: 
            0 0 25px rgba(255, 215, 0, 0.8),
            0 0 50px rgba(255, 215, 0, 0.4),
            inset 0 0 0 2px #ffd700;
    }
}

@keyframes silverGlow {
    0% {
        box-shadow: 
            0 0 15px rgba(192, 192, 192, 0.4),
            0 0 30px rgba(192, 192, 192, 0.2),
            inset 0 0 0 2px #c0c0c0;
    }
    100% {
        box-shadow: 
            0 0 25px rgba(192, 192, 192, 0.8),
            0 0 50px rgba(192, 192, 192, 0.4),
            inset 0 0 0 2px #c0c0c0;
    }
}

@keyframes bronzeGlow {
    0% {
        box-shadow: 
            0 0 15px rgba(205, 127, 50, 0.4),
            0 0 30px rgba(205, 127, 50, 0.2),
            inset 0 0 0 2px #cd7f32;
    }
    100% {
        box-shadow: 
            0 0 25px rgba(205, 127, 50, 0.8),
            0 0 50px rgba(205, 127, 50, 0.4),
            inset 0 0 0 2px #cd7f32;
    }
}

/* Additional styling for better visual hierarchy */
tr:first-child th:first-child {
    border-top-left-radius: 12px;
}

tr:first-child th:last-child {
    border-top-right-radius: 12px;
}

tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Scrollbar styling for dark theme */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #444444 0%, #666666 100%);
    border-radius: 6px;
    border: 2px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #555555 0%, #777777 100%);
}