/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: #0066cc;
    margin-bottom: 0.5rem;
}

/* Section styles */
section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

section h2 {
    color: #0066cc;
    margin-bottom: 1rem;
}

section p {
    margin-bottom: 1rem;
}

/* Utility classes */
.hidden {
    display: none;
}

.active {
    display: block;
}

/* Button styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-btn {
    background-color: #0066cc;
    color: white;
}

.primary-btn:hover {
    background-color: #0052a3;
}

.secondary-btn {
    background-color: #e1e5eb;
    color: #333;
}

.secondary-btn:hover {
    background-color: #d1d5db;
}

/* Progress and score display */
#progress-container {
    margin-bottom: 1.5rem;
}

#progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

#score-display {
    text-align: right;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e1e5eb;
    border-radius: 5px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    background-color: #0066cc;
    width: 0;
    transition: width 0.3s ease;
}

/* Question container */
#question-container {
    margin-bottom: 2rem;
}

#question-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Options container */
#options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-item {
    padding: 1rem;
    border: 2px solid #e1e5eb;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
}

.option-item:hover {
    border-color: #0066cc;
    background-color: #f0f7ff;
}

.option-letter {
    font-weight: 700;
    min-width: 25px;
    margin-right: 10px;
}

.option-selected {
    border-color: #0066cc;
    background-color: #f0f7ff;
}

.option-correct {
    border-color: #10b981;
    background-color: #ecfdf5;
}

.option-incorrect {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* Action buttons */
#action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Feedback screen */
#feedback-container {
    padding: 1.5rem;
    border-radius: 6px;
}

#feedback-title {
    margin-bottom: 0.5rem;
}

#feedback-message {
    margin-bottom: 1rem;
}

#explanation-box {
    background-color: #f5f7fa;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #0066cc;
}

/* For multi-select questions */
.checkbox-option {
    display: flex;
    align-items: center;
}

.checkbox-option input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

#next-btn.hidden {
    display: none !important;
}

#next-btn:not(.hidden) {
    display: block !important;
    margin-top: 20px;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    section {
        padding: 1.5rem;
    }
    
    #action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}