* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body { background: #f4f6f9; }

/* HEADER */
.header {
    background: #111827;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 20px;
    font-weight: 600;
}

/* LAYOUT */
.container {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.left { flex: 3; }
.right { flex: 1; }

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* CASE BOX */
.case-box {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
}

.case-box table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.case-box th, .case-box td { border: 1px solid #ccc; padding: 8px; text-align: left; }
.case-box th { background: #f3f4f6; }

/* OPTIONS */
.option {
    padding: 12px 15px;
    margin: 10px 0;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    background: #f9f9f9;
    transition: 0.3s;
    font-size: 15px;
}
.option:hover { background: #e6f0ff; }
.option.selected { background: #2563eb; color: white; border-color: #1e40af; }

/* BUTTONS */
.btn-area {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
button {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
button:hover { opacity: 0.9; transform: translateY(-1px); }
.primary { background: #2563eb; color: white; }
.warning { background: #f59e0b; color: white; }
.success { background: #16a34a; color: white; }

/* GRID */
.q-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.q-grid button { padding: 8px; border-radius: 6px; border: none; background: #e5e7eb; font-weight: bold; }
.q-grid button.not-attempted { background: #ef4444; color: white; }
.q-grid button.answered { background: #22c55e; color: white; }
.q-grid button.review { background: #facc15; color: black; }
.q-grid button.current { border: 2px solid #2563eb; box-shadow: 0 0 5px rgba(37,99,235,0.5); }

/* RESULT AREA */
#resultArea { padding: 30px; max-width: 900px; margin: 0 auto; }
.reviewBox {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 5px solid #2563eb;
}

/* SOCIAL MEDIA UPDATES BAR */
.social-updates-box {
    background: #ffffff;
    border: 2px dashed #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
}
.social-updates-box p { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.social-btn-group { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.social-btn { display: inline-block; padding: 10px 20px; font-weight: 600; color: white; text-decoration: none; border-radius: 6px; }
.twitter-btn { background: #000000; }
.instagram-btn { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

/* Responsive */
@media (max-width: 900px) {
    .container { flex-direction: column; }
    .q-grid { grid-template-columns: repeat(8, 1fr); }
}
@media (max-width: 500px) {
    .q-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ENHANCED CONTROLS & REVIEW STYLES */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.opt-label {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background: #e2e8f0;
    color: #1e293b;
    font-weight: 700;
    font-size: 13px;
    margin-right: 10px;
    border: 1px solid #cbd5e1;
}

.option.selected .opt-label {
    background: #ffffff;
    color: #2563eb;
    border-color: #ffffff;
}

.header-sub {
    font-size: 14px;
    font-weight: 400;
    color: #93c5fd;
    margin-top: 4px;
}

.reviewBox.correct-box {
    border-left-color: #16a34a;
}

.reviewBox.wrong-box {
    border-left-color: #ef4444;
}

.reviewBox.skipped-box {
    border-left-color: #94a3b8;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

.badge-pass {
    background: #dcfce7;
    color: #15803d;
}

.badge-fail {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-correct {
    background: #dcfce7;
    color: #15803d;
}

.badge-wrong {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-skipped {
    background: #f1f5f9;
    color: #475569;
}

.result-stats-card {
    background: white;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.result-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin: 18px 0;
}

.result-stat-pill {
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.result-stat-pill span {
    font-size: 12px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
}

.result-stat-pill strong {
    display: block;
    font-size: 22px;
    margin-top: 4px;
    color: #1e293b;
}

.result-stat-pill.pill-correct strong { color: #16a34a; }
.result-stat-pill.pill-wrong strong { color: #ef4444; }
.result-stat-pill.pill-unanswered strong { color: #f59e0b; }
.result-stat-pill.pill-score strong { color: #2563eb; }
