:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --background-color: #ecf0f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.login-container {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
}

.error-message {
    color: var(--error-color);
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fadbd8;
    border-radius: 4px;
}

.status-box {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.participants-list {
    background: white;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.participants-list ul {
    list-style: none;
    margin-top: 10px;
}

.participants-list li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.participants-list li:last-child {
    border-bottom: none;
}

.ready-status {
    color: var(--success-color);
    font-weight: bold;
}

.not-ready-status {
    color: var(--error-color);
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.admin-link {
    margin-top: 20px;
}

.admin-link a {
    color: var(--secondary-color);
    text-decoration: none;
}

.admin-link a:hover {
    text-decoration: underline;
}

/* Quiz Styles */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: bold;
}

.question-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.option-btn {
    padding: 15px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    background: white;
    color: var(--primary-color);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.option-btn.selected {
    background: var(--secondary-color);
    color: white;
}

.option-btn.correct {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.option-btn.incorrect {
    background: var(--error-color);
    border-color: var(--error-color);
    color: white;
}

.option-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.feedback-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 20px 0;
}

.feedback-container.correct {
    background: #d4edda;
    color: var(--success-color);
}

.feedback-container.incorrect {
    background: #f8d7da;
    color: var(--error-color);
}

.progress-bar {
    background: #ddd;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--secondary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.hidden {
    display: none;
}

/* Results Page Styles */
.results-container {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
}

.results-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.score-section {
    margin: 30px 0;
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.score-number {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 18px;
    margin-top: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
}

/* Error Pages */
.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--background-color);
    text-align: center;
}

.error-box {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
}

.error-box h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.error-box p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.error-box .btn-primary {
    display: inline-block;
    text-decoration: none;
}