#omr-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.omr-title {
    font-size: 28px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.progress-bar {
    background: #f0f0f0;
    border-radius: 20px;
    height: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: visible;
    width: 100%;
}

.progress-fill {
    background: #4CAF50;
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s ease;
}

#progress-text {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.mcq-card {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mcq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.mcq-question {
    font-size: 20px;
    color: #2c3e50;
    margin: 0 0 15px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-options {
    font-size: 18px;
    color: #3498db;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.3s;
}

.toggle-options:hover { 
    color: #2980b9; 
}

.options { 
    display: block; 
    flex-direction: column; 
    gap: 10px; 
}

.option-label {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.option-label:hover { 
    border-color: #4CAF50; 
    background: #f5f5f5; 
}

.option-label input[type="radio"] { 
    margin-right: 10px; 
    accent-color: #4CAF50; 
}

.option-text { 
    font-size: 16px; 
    color: #333; 
}

.submit-btn {
    display: block;
    width: 200px;
    margin: 20px auto 0;
    padding: 12px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover { 
    background: #45a049; 
    transform: scale(1.05); 
}

.download-btn {
    display: block;
    width: 200px;
    margin: 20px auto 0;
    padding: 12px;
    background: #2196F3;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.download-btn:hover {
    background: #0b7dda;
    transform: scale(1.05);
}

.feedback-section { 
    margin-top: 30px; 
    display: none; 
}

.feedback-title { 
    font-size: 24px; 
    color: #2c3e50; 
    margin-bottom: 20px; 
    text-align: center; 
}

.result-item { 
    padding: 15px; 
    margin-bottom: 15px; 
    border-radius: 8px; 
    background: #f9f9f9; 
}

.result-item.correct { 
    border-left: 4px solid #4CAF50; 
}

.result-item.incorrect { 
    border-left: 4px solid #e74c3c; 
}

.result-item.unanswered { 
    border-left: 4px solid #f1c40f; 
}

.result-item p { 
    margin: 0; 
    font-size: 16px; 
    color: #333; 
}

.explanation { 
    display: block; 
    font-style: italic; 
    color: #666; 
    margin-top: 10px; 
}

.score { 
    font-size: 22px; 
    color: #4CAF50; 
    text-align: center; 
    margin: 20px 0; 
}

.summary { 
    text-align: center; 
    font-size: 16px; 
    color: #333; 
}

.summary .correct { 
    color: #4CAF50; 
}

.summary .incorrect { 
    color: #e74c3c; 
}

.summary .unanswered { 
    color: #f1c40f; 
}

/* Button + inline container styles */
.mcq-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, #3498db, #8e44ad);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.mcq-button:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); 
}

.mcq-button:active { 
    transform: translateY(0); 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); 
}

.mcq-inline-container {
    margin: 10px 0 30px;
}

/* Responsive Design */
@media (max-width: 600px) {
    #omr-container { 
        padding: 15px; 
        margin: 15px; 
    }
    
    .mcq-card { 
        padding: 15px; 
    }
    
    .submit-btn, 
    .download-btn,
    .mcq-button { 
        width: 100%; 
    }
    
    .mcq-question {
        font-size: 18px;
    }
    
    .omr-title {
        font-size: 24px;
    }
}

/* Loading state */
.mcq-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.mcq-loading::after {
    content: '...';
    animation: dots 1s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0,0,0,0);
        text-shadow: 
            .25em 0 0 rgba(0,0,0,0),
            .5em 0 0 rgba(0,0,0,0);
    }
    40% {
        color: #666;
        text-shadow: 
            .25em 0 0 rgba(0,0,0,0),
            .5em 0 0 rgba(0,0,0,0);
    }
    60% {
        text-shadow: 
            .25em 0 0 #666,
            .5em 0 0 rgba(0,0,0,0);
    }
    80%, 100% {
        text-shadow: 
            .25em 0 0 #666,
            .5em 0 0 #666;
    }
}