/* Reset och grundläggande stilar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --primary-light: #a8e6cf;
    --secondary-color: #ff6b6b;
    --accent-purple: #9b59b6;
    --accent-orange: #f39c12;
    --accent-blue: #3498db;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --background: #ffffff;
    --background-alt: #f0fff4;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* Navigation */
.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.nav-links a.active {
    background: var(--primary-color);
    color: white;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero-sektion */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--background-alt) 0%, #fff9e6 50%, #fff0f5 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.3;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes questionFlash {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#question-counter.flash {
    animation: questionFlash 0.5s ease-out;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    position: relative;
}

/* Knappar */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e8449);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.btn:disabled,
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #ccc;
    border-color: #ccc;
    color: #666;
}

.btn:disabled:hover,
.btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
    background: #ccc;
}

/* Features-sektion */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--background);
    border: none;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card .btn {
    margin-top: auto;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-blue));
}

.feature-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--accent-purple), var(--secondary-color));
}

.feature-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--accent-orange), var(--secondary-color));
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-card h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Ikoner i feature-cards */
.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-icon.kurser {
    background: linear-gradient(135deg, #a8e6cf, #88d8b0);
}

.feature-icon.ovningar {
    background: linear-gradient(135deg, #dda0dd, #da70d6);
}

.feature-icon.quiz {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
}

.feature-icon img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

.feature-card-wide {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .feature-card-wide {
        grid-column: span 1;
    }
}

/* Social-sektion */
.social {
    text-align: center;
    padding: 2rem 2rem 3rem 2rem;
    background: linear-gradient(180deg, var(--background) 0%, var(--background-alt) 100%);
}

.social h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    transition: all 0.3s;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.facebook {
    background: #1877f2;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.contact-email {
    color: var(--text-light);
    font-size: 1.1rem;
}

.contact-email a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Annonser */
.ad-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 2rem;
    text-align: center;
}

@media (max-width: 480px) {
    .ad-container {
        padding: 0 0.75rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem;
    background: var(--text-color);
    color: rgba(255, 255, 255, 0.8);
}

/* Responsiv design */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--background);
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .features {
        padding: 3rem 1rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-card h2 {
        font-size: 1.4rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features {
        padding: 2rem 0.75rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-card h2 {
        font-size: 1.3rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }
}

/* Sidhuvud för undersidor */
.page-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--background-alt) 0%, #e8f5e9 100%);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Kompakt page-header för quiz-sidor */
.page-header-compact {
    padding: 1.5rem 2rem;
    text-align: left;
}

.page-header-compact .breadcrumb {
    margin: 0;
    font-size: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.quiz-list-container,
.exercises-container,
.course-list-container {
    padding: 3rem 2rem;
}

.quiz-section-title {
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .quiz-list-container,
    .exercises-container,
    .course-list-container {
        padding: 2rem 1rem;
    }

    .quiz-list-container .features,
    .exercises-container .features {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .quiz-list-container .feature-card,
    .exercises-container .feature-card {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .quiz-list-container,
    .exercises-container,
    .course-list-container {
        padding: 1.5rem 0.75rem;
    }

    .quiz-list-container .features,
    .exercises-container .features {
        gap: 1rem;
    }
}

/* Extra roliga detaljer */
::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ===================
   KURSER
   =================== */

/* Kurslista */
.course-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 2rem;
}

.course-card {
    background: #fafbfc;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid #d1d5db;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    cursor: pointer;
}

.course-card-link:hover .course-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(46, 204, 113, 0.2);
    border-color: var(--primary-color);
}

.course-card-link:active .course-card {
    transform: translateY(-2px);
}

.course-card-image {
    width: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-card-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.course-card-content {
    flex: 1;
}

.course-card-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: #2c3e50;
    font-weight: 700;
}

.course-card-content > p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.course-card-arrow {
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.course-card-link:hover .course-card-arrow {
    transform: translateX(5px);
}

.course-topics {
    list-style: none;
    margin-bottom: 0;
}

.course-topics li {
    padding: 0.2rem 0;
    padding-left: 1.2rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
}

.course-topics li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Kursöversikt */
.course-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.course-intro-text .lead {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.course-intro-text h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.course-sections-list {
    list-style: none;
    margin-bottom: 2rem;
}

.course-sections-list li {
    list-style: none;
    margin-bottom: 0;
    line-height: 1.2;
}

.section-number {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.course-sections-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    width: 100%;
    padding: 0.15rem 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.course-sections-list a:hover {
    background: var(--background-alt);
}

.section-locked {
    color: var(--text-light);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.course-intro-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 350px;
    height: 250px;
    background: linear-gradient(135deg, var(--background-alt), #e8f5e9);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
    border: 2px dashed var(--border-color);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* Lektionsinnehåll */
.lesson-content {
    padding-bottom: 3rem;
}

.lesson-content .lead {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.lesson-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.note-section {
    margin: 2.5rem 0 0.75rem;
}

.note-section h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.note-section h3 {
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
}

.note-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--background-alt);
    border-radius: 16px;
    padding: 2rem;
}

.note-card.vertical {
    flex-direction: column;
    text-align: center;
}

.note-card.vertical .note-image {
    width: 100%;
    max-width: 400px;
}

.note-card.vertical ul {
    text-align: left;
    display: inline-block;
}

.note-section .note-card + p,
.note-section .note-card + ul {
    margin-top: 1.5rem;
}

.note-section .note-card + h3 {
    margin-top: 2.5rem;
}

.note-section .note-card + .note-card {
    margin-top: 0.75rem;
}

.takt-exercise {
    text-align: center;
    margin: 1.5rem 0;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.takt-exercise img {
    max-width: 350px;
    width: 100%;
    margin-bottom: 0.75rem;
}

.takt-exercise details p {
    margin-top: 0.75rem;
}

.takt-exercise + .takt-exercise {
    margin-top: 2rem;
}

.note-card.white-bg {
    background: white;
    border: 2px solid var(--border-color);
}

.note-image {
    flex-shrink: 0;
    width: 180px;
}

.note-image.small {
    width: 120px;
    max-height: 100px;
}

.note-image.small img {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

.note-image img {
    width: 100%;
    height: auto;
}

.note-description p {
    margin-bottom: 0.5rem;
}

.note-description ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    list-style-position: outside;
}

.note-description li {
    margin-bottom: 0.3rem;
}

.note-value {
    font-weight: 600;
    color: var(--primary-dark);
}

.lesson-intro {
    margin-bottom: 1.5rem;
}

.lesson-intro > :last-child {
    margin-bottom: 0;
}

.lesson-question {
    text-align: center;
    padding: 2rem;
    margin: 3rem 0;
    background: linear-gradient(135deg, var(--background-alt), #fff9e6);
    border-radius: 16px;
}

.lesson-question p {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-color);
}

.lesson-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.lesson-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    width: 100%;
}

.summary-list {
    list-style: disc;
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.summary-list li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.accidental-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.accidentals-row {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.accidental-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.accidental-image {
    flex-shrink: 0;
    width: 60px;
    margin-bottom: 1rem;
}

.accidental-image img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.accidental-text {
    flex: 1;
    line-height: 1.6;
}

/* Responsiv för kurser */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .breadcrumb {
        font-size: 0.9rem;
    }

    .course-intro {
        grid-template-columns: 1fr;
    }

    .course-intro-image {
        order: -1;
    }

    .note-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .note-image {
        width: 150px;
    }

    .lesson-content .lead {
        font-size: 1.15rem;
    }

    .lesson-actions .btn {
        max-width: none;
    }

    .lesson-question .btn {
        max-width: none;
    }

    .course-card {
        flex-direction: row;
        padding: 1.25rem 2rem;
        gap: 2rem;
    }

    .course-card-image {
        width: 100px;
    }

    .course-card-arrow {
        font-size: 1.2rem;
    }

    .accidentals-row {
        flex-direction: column;
        gap: 2rem;
    }

    .accidental-column {
        width: 100%;
    }

    .lesson-content .container {
        padding: 0 1.5rem;
        text-align: center;
    }

    .lesson-intro {
        margin-top: 1.5rem;
    }

    .note-section {
        margin: 2.5rem 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1.5rem 1rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }

    .course-card {
        padding: 1rem 1.5rem;
    }

    .course-card-image {
        width: 80px;
    }

    .course-card-content h2 {
        font-size: 1.2rem;
    }

    .note-card {
        padding: 1rem;
    }

    .note-image {
        width: 120px;
    }

    .note-section {
        margin: 1.25rem 0 0.5rem;
    }

    .note-section h2 {
        font-size: 1.2rem;
    }

    .lesson-content .lead {
        font-size: 1.05rem;
    }

    .lesson-content p {
        font-size: 0.95rem;
    }

    .lesson-content .container {
        padding: 0 1.25rem;
    }
}

/* ===================
   QUIZ SYSTEM
   =================== */

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.quiz-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.quiz-progress {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--background-alt);
    border-radius: 25px;
    font-weight: 600;
    color: var(--primary-dark);
}

.quiz-body {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.question-container {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.question-text {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.question-image {
    text-align: center;
    margin: 1.5rem 0;
}

.question-image img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

.options-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.options-container.image-options {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.option-label {
    display: block;
    cursor: pointer;
    transition: all 0.2s;
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--background-alt);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.2s;
}

.image-options .option-content {
    flex-direction: column;
    text-align: center;
    min-width: 150px;
}

.option-content img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

.option-label:hover .option-content {
    background: #e8f5e9;
    border-color: var(--primary-light);
}

.option-label input:checked + .option-content {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.option-text {
    font-size: 1.1rem;
    color: var(--text-color);
}

.multiple-choice-hint {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: -1rem;
}

.quiz-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.quiz-actions .btn {
    min-width: 250px;
}

.quiz-btn-prev {
    background: transparent;
    color: var(--text-color);
}

.quiz-btn-prev:hover {
    background: var(--background-alt);
    color: var(--text-color);
    transform: translateY(-2px);
}

/* Quiz Results */
.quiz-results {
    text-align: center;
    padding: 2rem;
}

.quiz-results h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.score-display {
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 16px;
    max-width: 300px;
}

.score-display.passed {
    background: linear-gradient(135deg, #a8e6cf, #88d8b0);
}

.score-display.failed {
    background: linear-gradient(135deg, #ffb3ba, #ff8a94);
}

.score-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.score-percentage {
    font-size: 2rem;
    font-weight: 600;
    color: white;
}

.result-message {
    font-size: 1.2rem;
    margin: 2rem 0;
    color: var(--text-color);
}

/* Quiz Review */
.quiz-review {
    padding: 2rem;
}

.quiz-review h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.review-question {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.review-question.correct {
    border-color: #4caf50;
    background: #f1f8f4;
}

.review-question.incorrect {
    border-color: #f44336;
    background: #fef5f5;
}

.review-question h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.review-image {
    max-width: 150px;
    max-height: 150px;
    display: block;
    margin: 1rem auto;
}

.review-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.review-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.review-option img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.review-option.is-correct {
    border-color: #4caf50;
    background: #f1f8f4;
}

.review-option.was-selected {
    font-weight: 600;
}

.review-option.was-selected:not(.is-correct) {
    border-color: #f44336;
    background: #fef5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-body {
        padding: 1.5rem;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .options-container.image-options {
        flex-direction: column;
    }

    .score-number {
        font-size: 2.5rem;
    }

    .score-percentage {
        font-size: 1.5rem;
    }
}

/* ===================
   NOTLÄSNING ÖVNING
   =================== */

.notlasning-container {
    max-width: 800px;
    margin: 0 auto;
}

.notlasning-header {
    text-align: center;
    margin-bottom: 2rem;
}

.notlasning-header h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.notlasning-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--background-alt);
    border-radius: 12px;
    min-width: 100px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.notlasning-body {
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.note-display {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--background-alt);
    border-radius: 16px;
}

.note-display .note-image {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
}

.note-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.note-option-btn {
    padding: 1.5rem 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--background-alt);
    border: 3px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-color);
}

.note-option-btn:hover:not(:disabled) {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.note-option-btn:disabled {
    cursor: not-allowed;
}

.note-option-btn.correct {
    background: #4caf50;
    color: white;
    border-color: #45a049;
}

.note-option-btn.incorrect {
    background: #f44336;
    color: white;
    border-color: #da190b;
}

/* Responsiv för Quiz-systemet */
@media (max-width: 768px) {
    .quiz-body {
        padding: 1.5rem;
    }

    .quiz-header h2 {
        font-size: 1.6rem;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .option-text {
        font-size: 1rem;
    }

    .quiz-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .quiz-actions .btn {
        width: 100%;
    }

    .score-number {
        font-size: 2.5rem;
    }

    .score-percentage {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .quiz-body {
        padding: 1rem;
    }

    .quiz-header h2 {
        font-size: 1.4rem;
    }

    .question-container {
        min-height: 300px;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .option-content {
        padding: 0.75rem 1rem;
    }

    .option-text {
        font-size: 0.95rem;
    }

    .image-options .option-content {
        min-width: 120px;
    }

    .option-content img {
        max-width: 100px;
        max-height: 100px;
    }
}

.feedback-message {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    min-height: 40px;
    padding: 1rem;
    border-radius: 8px;
}

.feedback-message.correct {
    background: #e8f5e9;
}

.feedback-message.incorrect {
    background: #ffebee;
}

.feedback-correct {
    color: #4caf50;
}

.feedback-incorrect {
    color: #f44336;
}

.notlasning-actions {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .note-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .note-option-btn {
        font-size: 1.2rem;
        padding: 1rem 0.5rem;
    }

    .notlasning-stats {
        gap: 1rem;
    }

    .stat {
        min-width: 80px;
        padding: 0.75rem 1rem;
    }
}

/* ===================
   NOTVÄRDEN LJUD
   =================== */

/* Spelare med knapp + pulsräknare */
.notvarden-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    width: fit-content;
}

.notvarden-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 80px;
}

.notvarden-play-btn:hover {
    background: var(--primary-color);
    color: white;
}

.notvarden-play-btn.playing {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.notvarden-play-btn.playing:hover {
    background: #e55a5a;
    border-color: #e55a5a;
}

/* Pulsräknare - cirklar som visar slag */
.pulse-counter {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.beat {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.15s ease;
}

.beat-active {
    background: var(--primary-color);
    color: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

/* Jämförelsesektion */
.notvarden-comparison {
    background: white;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    margin-top: 1rem;
}

.comparison-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.comparison-measures {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comparison-measure {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: var(--background-alt);
    border: 2px solid transparent;
    transition: all 0.2s;
}

.comparison-active {
    border-color: var(--primary-color);
    background: #e8f5e9;
}

.comparison-measure-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    min-width: 120px;
}

/* Lyssningsövning (lyssna + visa svar) */
.listen-exercises {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.listen-exercise {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.listen-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
    padding-top: 0.5rem;
}

.listen-exercise .notvarden-player {
    margin-top: 0;
    border: none;
    padding: 0;
    background: none;
}

.listen-reveal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.listen-answer {
    margin: 0.75rem 0 0 0;
}

@media (max-width: 768px) {
    .listen-exercise .notvarden-player {
        width: auto;
    }
}

/* Lyssningsquiz */
.notvarden-quiz {
    background: white;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    padding: 2rem;
    margin-top: 1rem;
    text-align: center;
}

.quiz-player-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto 1rem;
}

.quiz-option-btn {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--background-alt);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-color);
}

.quiz-option-btn:hover:not(:disabled) {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.quiz-option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.quiz-option-btn.correct {
    background: #4caf50;
    color: white;
    border-color: #45a049;
    opacity: 1;
}

.quiz-option-btn.incorrect {
    background: #f44336;
    color: white;
    border-color: #da190b;
    opacity: 1;
}

.quiz-feedback {
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 1.6em;
    margin-bottom: 0.5rem;
}

.quiz-score {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Klappövning */
.clap-exercise {
    background: linear-gradient(135deg, var(--background-alt), #fff9e6);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-top: 1rem;
}

.clap-exercise p {
    margin-bottom: 0.5rem;
}

/* Responsive notvärden */
@media (max-width: 768px) {
    .notvarden-player {
        width: 100%;
        justify-content: center;
    }

    .beat {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .comparison-measure {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .comparison-measure-label {
        min-width: auto;
    }

    .quiz-options {
        grid-template-columns: 1fr 1fr;
    }

    .notvarden-quiz {
        padding: 1.5rem;
    }

    .notvarden-comparison {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .pulse-counter {
        gap: 0.35rem;
    }

    .beat {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }

    .notvarden-play-btn {
        font-size: 0.85rem;
        padding: 0.45rem 1rem;
        min-width: 70px;
    }

    .quiz-option-btn {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
    }

    .comparison-measure-label {
        font-size: 0.8rem;
    }
}
