/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
    color: #333;
}

.omr-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border-radius: 5px;
}

/* Header Styles */
.omr-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
}

.omr-header h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.student-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.info-field {
    display: flex;
    align-items: center;
    margin: 5px;
}

.info-field span {
    margin-right: 10px;
    font-weight: bold;
}

.underline {
    width: 150px;
    height: 1px;
    border-bottom: 1px solid #333;
    display: inline-block;
    margin-top: 5px;
}

.instructions {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 15px;
}

/* Main Content Styles */
.omr-main {
    margin-bottom: 30px;
}

.subject-section {
    margin-bottom: 30px;
    page-break-inside: avoid;
}

.subject-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .questions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .questions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.question-item {
    display: flex;
    align-items: center;
}

.question-number {
    font-weight: bold;
    margin-right: 8px;
    min-width: 30px;
}

.bubble-options {
    display: flex;
}

.bubble {
    width: 22px;
    height: 22px;
    border: 1px solid #333;
    border-radius: 50%;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.bubble.selected {
    background-color: #333;
    color: white;
}

/* Footer Styles */
.omr-footer {
    border-top: 2px solid #333;
    padding-top: 20px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn {
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1a252f;
}

.signature-area {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    flex-wrap: wrap;
}

.signature-line {
    text-align: center;
    margin: 10px;
}

.signature-line span {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        padding: 0;
    }
    
    .omr-container {
        box-shadow: none;
        padding: 20px;
    }
    
    .btn {
        display: none;
    }
}