:root {
    --primary-color: #0d6efd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .card {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #333;
}

.dark-mode .table {
    color: #e0e0e0;
}

.ranking-item {
    transition: transform 0.3s ease;
}

.ranking-item:hover {
    transform: scale(1.02);
}

.medal-1 { font-size: 2rem; }
.medal-2 { font-size: 1.5rem; }
.medal-3 { font-size: 1.2rem; }

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    overflow: hidden;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-mode {
    background-color: #000;
    overflow: hidden;
}

.tv-container {
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.progress {
    height: 25px;
    border-radius: 12px;
}

.sidebar {
    min-height: 100vh;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
}

@keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.celebration {
    animation: celebrate 0.5s ease-in-out infinite;
}
