:root {
    --primary-color: #8B0000;
    --secondary-color: #A52A2A;
    --bg-dark: #15202B;
    --bg-card: #192734;
    --text-light: #FFFFFF;
    --shadow-color: rgba(139, 0, 0, 0.2);
    --accent-color: #B22222;
    --error-color: #E0245E;
    --success-color: #17BF63;
}

body {
    font-family: 'Poppins', sans-serif;
    background: url('../img/bg.webp') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-light);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 0;
}

.container {
    max-width: 1660px !important;
    margin: 0 auto;
    padding: 2rem;
}

.card {
    background: var(--bg-card);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(4px);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 2rem;
}

.btn {
    border-radius: 30px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: none;
}

.btn-success {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-danger {
    background: var(--error-color);
    color: var(--text-light);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.player-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
}

.player-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.vote-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 500;
    margin: 0.5rem 0;
}

.points-badge {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    font-weight: 600;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.points-display {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    color: var(--text-light);
    font-weight: 600;
}

.alert {
    border-radius: 15px;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.alert-info {
    background: rgba(139, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
color: white;
}

.alert-success {
    background: rgba(23, 191, 99, 0.1);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(224, 36, 94, 0.1);
    border-left: 4px solid var(--error-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Glassmorphism effects */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

/* Loading animation */
.loading {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form styles */
.form-control {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.form-control:focus {
    background: var(--bg-card);
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 0 0.25rem var(--shadow-color);
}

/* Nav pills */
.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.nav-pills .nav-link {
    color: var(--text-light);
}

.nav-pills .nav-link:hover {
    color: var(--accent-color);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(24, 24, 27, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(29, 161, 242, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 161, 242, 0.5);
}

.answer-with-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
}

.answer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.results-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.correct-answer {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-radius: 10px;
    justify-content: center;
    min-width: 300px;
}

.correct-answer .answer {
    color: #00ff87;
    margin: 0;
}

.correct-answer::before {
    content: "Correct Answer:";
    font-weight: normal;
    opacity: 0.9;
    white-space: nowrap;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(29, 161, 242, 0.1);
    border-radius: 20px;
}

.navbar-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.navbar img.logo {
    margin: 0 auto;
    position: absolute;
    width: 380px;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: flex-end;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #8B0000;
}

.btn-admin, .btn-logout {
    background: rgba(29, 161, 242, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(29, 161, 242, 0.2);
}

.btn-admin {
    background: rgba(29, 161, 242, 0.2);
}

.btn-admin:hover {
    background: rgba(29, 161, 242, 0.4);
    color: white;
    text-decoration: none;
}

.btn-logout {
    background: rgba(220, 53, 69, 0.1);
    color: #f8d7da;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.btn-logout:hover {
    background: rgba(220, 53, 69, 0.3);
    color: white;
    text-decoration: none;
}

.admin-badge {
    background: #8B0000;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Responsive styles for navbar */
@media (max-width: 767px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 0.75rem;
    }
    
    .navbar-left, .navbar-right {
        flex-basis: 100%;
        justify-content: center;
    }
    
    .navbar-left {
        order: 1;
    }
    
    .navbar img.logo {
        position: static;
        transform: none;
        order: 0;
        margin-bottom: 0.5rem;
    }
    
    .navbar-right {
        order: 2;
    }
}

/* Quote Display Styles - Fixed */
.quote-container {
    width: 100%;
    margin-bottom: 2rem;
}

.quote-display {
    background: rgba(24, 24, 27, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.quote-display::before {
    content: "\201C";
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 5rem;
    font-family: 'Georgia', serif;
    color: rgba(29, 161, 242, 0.3);
    line-height: 1;
}

.quote-display blockquote {
    margin: 0;
    padding: 0;
    text-align: center;
    border-left: none;
}

.quote-display p {
    font-size: 1.7rem;

}

.blockquote-footer {
    color: rgb(255, 255, 255);
    font-size: 1.3rem;
    margin-top: 1rem;
}
