/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.omr-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border-radius: 5px;
}

.omr-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.omr-header h1 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.btn {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.student-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.info-field {
    display: flex;
    align-items: center;
}

.info-field label {
    margin-right: 10px;
    font-weight: bold;
}

.underline {
    width: 150px;
    height: 2px;
    background-color: #333;
    margin-top: 5px;
}

.instructions {
    background-color: #f0f8ff;
    padding: 15px;
    border-left: 4px solid #3498db;
    margin-bottom: 30px;
    border-radius: 0 4px 4px 0;
}

.instructions h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 5px;
}

.omr-sheet {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.question-group {
    margin-bottom: 15px;
    break-inside: avoid;
}

.question-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.question-number {
    font-weight: bold;
    min-width: 30px;
    text-align: right;
    padding-right: 8px;
}

.bubble-options {
    display: flex;
    gap: 6px;
}

.bubble {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.bubble.selected {
    background-color: #333;
}

.bubble-letter {
    font-size: 10px;
    font-weight: bold;
    position: absolute;
    color: #333;
}

.bubble.selected .bubble-letter {
    color: white;
}

.omr-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #eee;
    color: #7f8c8d;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .omr-sheet {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .omr-sheet {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .student-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .info-field {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .omr-container {
        padding: 15px;
    }
    
    .omr-sheet {
        grid-template-columns: 1fr;
    }
    
    .bubble {
        width: 18px;
        height: 18px;
    }
    
    .bubble-letter {
        font-size: 8px;
    }
    
    .question-number {
        min-width: 25px;
    }
}