:root {
    --primary: #2c3e50;
    /* Dark Slate */
    --accent: #3498db;
    /* Bright Blue */
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --correct: #27ae60;
    --wrong: #c0392b;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--light-bg);
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

header {
    border-bottom: 3px solid var(--accent);
    margin-bottom: 30px;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0;
}

.subtitle {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Menu Styles */
.menu-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #dfe6e9;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary);
}

select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
}

/* Question Styles */
.question-meta {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: bold;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 25px;
}

.option-btn {
    width: 100%;
    padding: 18px;
    margin-bottom: 12px;
    border: 2px solid #e0e0e0;
    background: white;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 1.05rem;
    color: #555;
}

.option-btn:hover:not(:disabled) {
    border-color: var(--accent);
    background-color: #f4faff;
}

.option-btn.correct {
    background-color: #d4edda;
    border-color: var(--correct);
    color: #155724;
}

.option-btn.wrong {
    background-color: #fadbd8;
    border-color: var(--wrong);
    color: #721c24;
}

/* Rationale */
.rationale-box {
    margin-top: 25px;
    padding: 20px;
    background-color: #f1f2f6;
    border-left: 5px solid var(--accent);
    border-radius: 4px;
    display: none;
    line-height: 1.6;
}

/* Footer Controls */
.controls {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.tips {
    margin-left: 5vw;
}

.nav-controls {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 30px;
}

.btn-nav {
    flex: 1;
    padding: 12px;
    font-weight: bold;
}

.summary-header {
    text-align: center;
    margin-bottom: 20px;
}

.final-score-circle {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
    margin: 10px 0;
    border: 4px solid var(--accent);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.summary-table th {
    background: #eee;
    padding: 12px;
    text-align: left;
}

.summary-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.row-correct {
    border-left: 5px solid #4CAF50;
}

.row-wrong {
    border-left: 5px solid #f44336;
}

.summary-q-text {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.summary-ans-detail {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.summary-rationale {
    font-size: 0.85rem;
    color: #666;
    background: #f9f9f9;
    padding: 8px;
    border-radius: 4px;
}

.status-cell {
    font-size: 1.2rem;
    text-align: center;
}