/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Add to style.css if needed */
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #2b06a5;
    background-color: #f4f4f4;
}

/* Navigation */
.navbar {
    background-color: #035db6;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container h1 {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(25, 6, 237, 0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #0977e4;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #0c2cce;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #3498db;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:hover {
    opacity: 0.9;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-error {
    background-color: #e74c3c;
    color: white;
}

.alert-success {
    background-color: #2ecc71;
    color: white;
}

.alert-warning {
    background-color: #f39c12;
    color: white;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-center a {
    color: #3498db;
    text-decoration: none;
}

.text-center a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-content h2 {
    color: #0a78e7;
    margin-bottom: 1.5rem;
}
.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.exam-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.exam-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.exam-card p {
    color: #666;
    margin-bottom: 1rem;
}

.exam-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #555;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(19, 4, 221, 0.1);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-auto_submitted {
    background-color: #fff3cd;
    color: #856404;
}

.status-in_progress {
    background-color: #cce5ff;
    color: #004085;
}

/* Instructions Page */
.instructions-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(4, 34, 228, 0.1);
}

.instructions-container h2 {
    color: #0303ec;
    margin-bottom: 2rem;
    text-align: center;
}

.exam-info,
.instructions {
    margin-bottom: 2rem;
}

.exam-info h3,
.instructions h3 {
    color: #3607e0;
    margin-bottom: 1rem;
}

.exam-info ul,
.instructions ul {
    margin-left: 2rem;
}

.exam-info li,
.instructions li {
    margin-bottom: 0.5rem;
}

.instructions-content {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.important-notes {
    background-color: #fff3cd;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

.important-notes h4 {
    color: #856404;
    margin-bottom: 1rem;
}

.important-notes ul {
    margin-left: 1.5rem;
}

.important-notes li {
    margin-bottom: 0.5rem;
    color: #856404;
}

.start-exam-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.warning-text {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

/* Exam Page Styles */
.exam-body {
    background-color: #3705ed;
    color: white;
    margin: 0;
    padding: 0;
}

.exam-header {
    background-color: #1b04e7;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.exam-header h1 {
    color: white;
    font-size: 1.2rem;
}

.timer-container {
    display: flex;
    align-items: center;
}

.timer {
    background-color: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
}

.exam-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.question-container {
    background-color:white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 8px;
    color: black;
}

.question-header h3 {
    color: black;
    margin-bottom: 1rem;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 1rem;
    background-color: #edecf3;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.option-label:hover {
    background-color: #edecf3;
}

.option-label input[type="radio"] {
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.option-text {
    flex: 1;
    line-height: 1.5;
}

.exam-actions {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: #380af0;
    border-radius: 8px;
}

/* Results Page */
.results-container {
    max-width: 900px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-header h2 {
    color: #3b07f8;
    margin-bottom: 0.5rem;
}

.results-header h3 {
    color: #130ce4;
    font-weight: normal;
}

.score-summary {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(70, 3, 239, 0.1);
    margin-bottom: 2rem;
}

.score-card {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.score-percentage {
    font-size: 1.5rem;
}

.score-details p {
    margin-bottom: 0.5rem;
    color: #0707d2;
}

.question-review {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(4, 54, 234, 0.1);
}

.question-review h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.question-review-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #ddd;
}

.question-review-item.correct {
    background-color: #d4edda;
    border-left-color: #28a745;
}

.question-review-item.incorrect {
    background-color: #f8d7da;
    border-left-color: #dc3545;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.question-header h4 {
    color: #2c3e50;
}

.result-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.question-review-item.correct .result-icon {
    color: #28a745;
}

.question-review-item.incorrect .result-icon {
    color: #dc3545;
}

.question-review .question-text {
    margin-bottom: 1rem;
    font-weight: 500;
    color: #333;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-review {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.7);
}

.option-review.correct-answer {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
}

.option-review.wrong-answer {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
}

.option-key {
    font-weight: bold;
    margin-right: 0.5rem;
    min-width: 20px;
}

.option-text {
    flex: 1;
}

.selected-indicator,
.correct-indicator {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: 1rem;
}

.selected-indicator {
    background-color: #ffc107;
    color: #856404;
}

.correct-indicator {
    background-color: #28a745;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .exam-grid {
        grid-template-columns: 1fr;
    }
    
    .score-card {
        flex-direction: column;
        text-align: center;
    }
    
    .exam-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .exam-container {
        padding: 1rem;
    }
    
    .question-container {
        padding: 1rem;
    }
    
    .exam-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}