* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: #1a222d;
    color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #111823;
    padding: 12px 24px;
    border-bottom: 1px solid #2d3748;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #e2e8f0;
}

.logo i {
    color: #38bdf8;
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    padding-bottom: 4px;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    border-bottom: 2px solid #ea580c;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tool-btn {
    background-color: #243042;
    border: 1px solid #3b4d66;
    color: #cbd5e1;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tool-btn:hover {
    background-color: #2e3e56;
}

.profile-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
}

/* Control Bar */
.control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a2536;
    padding: 10px 24px;
    border-bottom: 1px solid #2d3748;
}

.mock-select {
    background-color: #243042;
    color: #f1f5f9;
    border: 1px solid #3b4d66;
    padding: 6px 12px;
    border-radius: 6px;
    outline: none;
}

.control-center {
    display: flex;
    align-items: center;
    gap: 24px;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* Switch UI */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #475569;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0284c7;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Clue Lightbulb Button */
.clue-btn {
    background-color: #243042;
    border: 1px solid #475569;
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.clue-btn i {
    font-size: 1rem;
}

.clue-btn.active {
    background-color: #eab308;
    color: #0f172a;
    border-color: #ca8a04;
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.45);
}

.control-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.timer {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #e2e8f0;
}

/* Main Split View */
.test-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    padding: 16px 24px;
    gap: 20px;
}

.left-panel, .right-panel {
    background-color: #17202e;
    border-radius: 8px;
    border: 1px solid #2d3b4e;
    display: flex;
    flex-direction: column;
}

.left-panel {
    flex: 1;
}

.right-panel {
    flex: 1;
}

.panel-header {
    padding: 14px 18px;
    border-bottom: 1px solid #2d3b4e;
}

.panel-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

.instruction {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* Transcript Box */
.transcript-content {
    flex: 1;
    padding: 20px;
    line-height: 1.7;
    font-size: 0.95rem;
    color: #cbd5e1;
    overflow-y: auto;
}

.transcript-content p {
    margin-bottom: 16px;
}

/* Clue Highlight Styling */
.clue-target {
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 3px;
    padding: 0 2px;
}

body.hints-enabled .clue-target {
    background-color: rgba(253, 224, 71, 0.3);
    color: #fef08a;
    font-weight: 600;
    border-bottom: 2px solid #eab308;
}

/* Audio Player */
.audio-player {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    background-color: #111823;
    border-top: 1px solid #2d3b4e;
    border-radius: 0 0 8px 8px;
}

.player-controls {
    display: flex;
    gap: 10px;
}

.player-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 0.95rem;
}

.player-btn.play-pause {
    background-color: #ea580c;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-slider {
    flex: 1;
    accent-color: #ea580c;
    cursor: pointer;
}

.time-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.playback-speed {
    font-size: 0.85rem;
    color: #94a3b8;
    background-color: #243042;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Questions Vertical Options */
.questions-list {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.question-item {
    margin-bottom: 22px;
}

.q-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #f1f5f9;
    display: block;
    margin-bottom: 10px;
}

.options-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #1f2b3e;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #2e3e56;
    cursor: pointer;
    font-size: 0.9rem;
    color: #cbd5e1;
    transition: background-color 0.2s, border-color 0.2s;
}

.option-label:hover {
    background-color: #26354c;
    border-color: #3b4d66;
}

.option-label input[type="radio"] {
    accent-color: #38bdf8;
}

/* Submit Button */
.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    padding-bottom: 10px;
}

.submit-btn {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #1d4ed8;
}