/* Quiz System Styles with Timer */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.timer-box, .score-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.timer {
    font-size: 1.3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.score {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Start Screen */
.start-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.start-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 600px;
}

.start-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.start-card h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 15px;
}

.description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.description strong {
    color: #667eea;
    font-size: 1.3rem;
}

.test-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.info-icon {
    font-size: 2rem;
}

.info-item span:last-child {
    color: #666;
    font-size: 0.9rem;
}

.note {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 10px;
    margin: 25px 0;
    font-size: 0.95rem;
    border-left: 4px solid #ffc107;
}

.btn-start {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

/* Progress Bar */
.progress-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.progress-bar {
    background: #e0e0e0;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Question Card */
.question-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.question-header {
    margin-bottom: 20px;
}

.question-badge {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.question-text {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 500;
    line-height: 1.6;
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.option {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.option:hover {
    background: #e3f2fd;
    border-color: #2196F3;
    transform: translateX(5px);
}

.option.correct {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    font-weight: 600;
}

.option.incorrect {
    background: #f44336;
    color: white;
    border-color: #f44336;
    font-weight: 600;
}

.option.disabled {
    opacity: 0.6;
}

/* Feedback */
.feedback {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
    border-left: 5px solid #4CAF50;
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.feedback-icon {
    font-size: 2rem;
}

.feedback-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.feedback-title.correct {
    color: #4CAF50;
}

.feedback-title.incorrect {
    color: #f44336;
}

.explanation {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
}

.btn-next {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

/* Result Screen */
.result {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 600px;
    width: 100%;
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.result-card h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.stat-value {
    color: #333;
    font-size: 1.8rem;
    font-weight: bold;
}

.stat-value.percentage {
    font-size: 2.5rem;
}

.performance-message {
    background: #e3f2fd;
    color: #1976d2;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.performance-message strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.result-actions {
    margin-top: 30px;
}

.btn-restart {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 16px 45px;
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-restart:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .header-info {
        gap: 15px;
    }
    
    .timer-box, .score-box {
        padding: 8px 18px;
    }
    
    .start-card {
        padding: 30px 20px;
    }
    
    .start-card h2 {
        font-size: 1.5rem;
    }
    
    .test-info {
        gap: 20px;
    }
    
    .btn-start {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    .question-card {
        padding: 25px 20px;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .option {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .result-card {
        padding: 35px 20px;
    }
    
    .result-card h2 {
        font-size: 2rem;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-value.percentage {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .question-text {
        font-size: 1.1rem;
    }
    
    .option {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
}


