:root {
    --bg: #0f0f0f;
    --card: #1a1a1a;
    --text: #ffffff;
    --text-dim: #999;
    --accent: #a8c7fa;
    --option-bg: #242424;
    --border: #333;
    --success: #1e4620;
    --error: #441a1a;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.quiz-container {
    background: var(--card);
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    position: relative;
}

.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.progress-bg {
    flex-grow: 1;
    height: 4px;
    background: #333;
    margin-right: 20px;
    border-radius: 2px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.4s ease;
}

.score-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
}

.pill-wrong {
    background: #441a1a;
    color: #ff6b6b;
    border: 1px solid #632525;
}

.pill-correct {
    background: #1e4620;
    color: #81c784;
    border: 1px solid #2e7d32;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-item-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.option-btn {
    background: var(--option-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 15px;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
    flex-grow: 1;
}

/* DESSA ÄR VIKTIGA: Tvingar fram färgen vid klick */
.option-btn.correct {
    background-color: var(--success) !important;
    border-color: #4caf50 !important;
    color: #81c784 !important;
}

.option-btn.wrong {
    background-color: var(--error) !important;
    border-color: #f44336 !important;
    color: #ff6b6b !important;
}

.option-btn:hover:not(:disabled) {
    border-color: var(--accent);
}

.delete-btn {
    background: #2a1212;
    color: #ff6b6b;
    border: 1px solid #441a1a;
    border-radius: 10px;
    padding: 0 15px;
    cursor: pointer;
}

.question-text {
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.hint-box,
.feedback-box {
    display: none;
    padding: 15px;
    background: #242424;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #333;
}

#next-btn {
    float: right;
    background: var(--accent);
    color: #002d6b;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    display: none;
}

/* Stil för ledtrådsknappen */
.hint-toggle {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 10px 0;
    font-size: 0.9rem;
    display: block;
    margin: 10px 0;
    transition: color 0.2s;
}

.hint-toggle:hover {
    color: var(--accent);
}

/* Stil för själva ledtrådsboxen */
.hint-box {
    display: none;
    background: #242424;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: var(--text-dim);
    font-style: italic;
    border-left: 3px solid var(--accent);
    /* En liten blå kant för att markera att det är en hjälp */
}

.error-summary {
    margin-top: 30px;
    padding: 20px;
    background: #121212;
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    /* Gör listan skrollbar om den är lång */
    border: 1px solid #333;
}

.error-summary h3 {
    margin-top: 0;
    color: var(--accent);
    font-size: 1.1rem;
}