@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

body {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Roboto', sans-serif;
    color: #212529;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

.navbar-brand img {
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.1);
}

.navbar-brand span {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1a73e8;
    margin-left: 0.5rem;
}

.stat-card {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-card .card-title {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .card-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a73e8;
}

.section-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1a73e8;
    margin-bottom: 1.75rem;
}

.table {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.table thead th {
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #6c757d;
    padding: 1rem 1.5rem;
}

.table tbody tr {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.table tbody tr:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.table tbody td {
    border: none;
    padding: 1.25rem;
    vertical-align: middle;
    font-size: 1rem;
}

.table tbody td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    font-weight: 600;
    color: #1a73e8;
}

.table tbody td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.progress {
    height: 1.5rem;
    border-radius: 8px;
    background-color: #e9ecef;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    transition: width 0.6s ease;
}

.loader {
    border: 4px solid #e9ecef;
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
    margin: 1.5rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.footer {
    background-color: #1a73e8;
    color: #ffffff;
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer a {
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #bbdefb;
}

/* Winner Banner Specific Styles */
#winner-banner-container .card {
    background: linear-gradient(135deg, #34c759 0%, #2ea043 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
}

#winner-banner-container .card-title,
#winner-banner-container .card-text {
    color: #ffffff;
}

#winner-banner-container .alert {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stat-card .card-text {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .table tbody td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .navbar-brand span {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .stat-card .card-text {
        font-size: 1.75rem;
    }

    .table-responsive {
        margin: 0 -0.75rem;
    }

    .table tbody td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Animation for Progress Bar */
@keyframes progressSlide {
    from { width: 0%; }
    to { width: attr(aria-valuenow); }
}