﻿/* Background */
body {
    background: linear-gradient(135deg, #667eea, #764ba2);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
}

/* Centered container */
.quiz-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Glass card */
.quiz-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.quiz-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    margin: 8px 0;
    font-weight: 600;
    transition: 0.3s;
    width: 100%;
}

.quiz-btn-primary {
    background: #ffffff;
    color: #764ba2;
}

    .quiz-btn-primary:hover {
        background: #f1f1f1;
        transform: translateY(-2px);
    }

.quiz-btn-answer {
    background: rgba(255,255,255,0.2);
    color: white;
}

    .quiz-btn-answer:hover {
        background: rgba(255,255,255,0.4);
    }

/* Dashboard stats */
.stat-box {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 15px;
}

.correct {
    color: #4caf50;
    font-weight: bold;
}

.incorrect {
    color: #ff5252;
    font-weight: bold;
}

/* Player list */
.player-list li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.input-group-modern {
    position: relative;
    width: 100%;
}

    .input-group-modern .modern-input {
        width: 100%;
        padding: 14px 16px;
        border-radius: 14px;
        border: 2px solid rgba(255,255,255,0.3);
        background: rgba(255,255,255,0.1);
        color: white;
        font-size: 16px;
        outline: none;
        transition: 0.3s ease;
    }

        /* Focus Glow */
        .input-group-modern .modern-input:focus {
            border-color: #ffffff;
            box-shadow: 0 0 15px rgba(255,255,255,0.5);
        }

    /* Floating Label */
    .input-group-modern label {
        position: absolute;
        left: 16px;
        top: 14px;
        color: rgba(255,255,255,0.7);
        font-size: 14px;
        transition: 0.3s ease;
        pointer-events: none;
    }

    /* Move label up when typing */
    .input-group-modern .modern-input:focus + label,
    .input-group-modern .modern-input:not(:placeholder-shown) + label {
        top: -8px;
        left: 12px;
        font-size: 12px;
        background: rgba(102,126,234,0.9);
        padding: 2px 8px;
        border-radius: 8px;
        color: white;
    }