
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f2f2f2;
    min-height: 100vh;
    color: #333;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}



/* Leaderboard panel */
.admin-panel {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.admin-panel h2 {
    font-size: 2rem;
    color: #1a63ea;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

/* Users table styling */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.users-table th {
    background: linear-gradient(135deg, #1a63ea, #2575fc);
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table th:first-child {
    border-top-left-radius: 8px;
}

.users-table th:last-child {
    border-top-right-radius: 8px;
}

.users-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.users-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.users-table tr:hover {
    background-color: #e3f2fd;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Ranking styles */
.users-table tr.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    font-weight: bold;
}

.users-table tr.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    font-weight: bold;
}

.users-table tr.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #deb887);
    font-weight: bold;
}

.users-table tr.rank-1:hover,
.users-table tr.rank-2:hover,
.users-table tr.rank-3:hover {
    transform: scale(1.02);
}

/* Error message styling */
.message.error {
    background-color: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #fcc;
    margin-bottom: 20px;
    text-align: center;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.users-table tr:first-child td:first-child {
    font-weight: 700;
    color: #1a63ea;
    font-size: 1.1rem;
}

/* Message styling */
.message {
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 6px;
    font-weight: 500;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Footer styling */
footer {
    background: linear-gradient(135deg, #1a63ea, #2575fc);
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 20px;
        padding: 0 16px;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .container {
        padding: 16px;
    }

    .admin-panel {
        padding: 20px;
    }

    .admin-panel h2 {
        font-size: 1.5rem;
    }

    .users-table th,
    .users-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header .logo h1 {
        font-size: 1.5rem;
    }

    header .logo img {
        width: 36px;
        height: 36px;
    }

    .users-table th,
    .users-table td {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
}
