/*
 * CMI5 Export - Articulate Rise Inspired Design
 * Clean, professional design inspired by Articulate Rise
 */

:root {
    /* Articulate-inspired colors */
    --primary-color: #f29405; /* Orange from screenshot */
    --primary-dark: #d67e04;
    --accent-color: #000000; /* Black for buttons and headings */
    --text-primary: #2d2d2d;
    --text-secondary: #5a5a5a;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-hero: #f29405; /* Orange hero background */
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Hero Section - Orange Background like Articulate */
.course-hero {
    background: var(--bg-hero);
    padding: 4rem 2rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.course-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.course-hero-text {
    z-index: 2;
}

.course-hero-image {
    z-index: 1;
}

.course-hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 500;
}

.author-badge .author-icon {
    width: 32px;
    height: 32px;
    background: #4285f4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.course-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--accent-color);
    line-height: 1.1;
}

.course-summary {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.btn-start-course {
    margin-top: 1rem;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

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

.main-content {
    padding: 4rem 0;
}

/* Course Intro Section */
.course-intro-section {
    background: var(--bg-primary);
    padding: 4rem 0;
}

.course-description {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem;
    line-height: 1.8;
}

.course-description h2 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.course-description ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.course-description li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Table of Contents */
.course-toc-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.toc-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: left;
}

.course-toc {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
}

.toc-item:hover {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.toc-item-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.toc-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.toc-item-text {
    flex: 1;
}

.toc-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.toc-item-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.toc-item-status {
    flex-shrink: 0;
    margin-left: 1rem;
}

.toc-checkbox {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    transition: all 0.2s ease;
}

.toc-checkbox.completed {
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.toc-checkbox.completed .toc-check-icon {
    display: block !important;
}

/* Locked TOC Items (Demo Mode) */
.toc-item-locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f5f5f5;
}

.toc-item-locked:hover {
    background: #f5f5f5;
    box-shadow: none;
    transform: none;
}

.toc-item-locked .toc-item-icon {
    background: #e0e0e0;
    color: #999;
}

.toc-item-locked .toc-item-title {
    color: #999;
}

/* Content Sections */
.content-section {
    background: var(--bg-primary);
    padding: 3rem;
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.content-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

/* Lists - Articulate Style */
.content-section ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.content-section ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.content-section ul li:before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.5rem;
}

/* Course Section */
.course-section {
    background: var(--bg-primary);
    padding: 3rem;
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Activity Styles - Clean Articulate Look */
.activity {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.activity:hover {
    box-shadow: var(--shadow-md);
}

.activity-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.activity-icon-img {
    width: 24px;
    height: 24px;
}

.page-content,
.label-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.page-content img,
.label-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

/* Buttons - Black Articulate Style */
.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

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

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

/* Button states */
.btn:disabled,
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-success {
    background: #4caf50;
    color: white;
}

.btn-success:hover:not(:disabled):not(.btn-disabled) {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navigation */
.section-navigation {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Quiz Styles - Articulate Inspired */
.quiz-container {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: var(--radius-lg);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.quiz-header h4 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.quiz-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-align: left;
    line-height: 1.7;
}

.quiz-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.quiz-meta span {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.quiz-start {
    text-align: center;
    padding: 3rem 0;
}

/* Quiz Questions */
.quiz-questions {
    min-height: 400px;
}

.quiz-question {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.question-number {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 1rem;
    line-height: 1.5;
}

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

.answer-option {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-option:hover {
    border-color: var(--accent-color);
    background: #f5f5f5;
}

.answer-option.selected {
    border-color: var(--accent-color);
    background: #f0f0f0;
}

.answer-option input[type="radio"] {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.answer-text {
    flex: 1;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.question-navigation {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Quiz Result */
.quiz-result {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeIn 0.6s ease-in;
}

.quiz-result h4 {
    font-size: 2.25rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.score-value {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-total {
    font-size: 1.75rem;
    opacity: 0.9;
}

.score-percentage {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.result-message {
    font-size: 1.35rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.result-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.result-message.fail {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

th, td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--accent-color);
}

tr:last-child td {
    border-bottom: none;
}

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

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

/* Sidebar - Minimalist Articulate Style */
.sidebar {
    position: fixed;
    top: 0;
    left: -340px;
    width: 340px;
    height: 100vh;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

.sidebar.sidebar-open {
    left: 0;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.sidebar-header h2 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.sidebar-close:hover {
    background: var(--border-color);
}

.sidebar-nav {
    padding: 1.5rem 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-item a {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    gap: 1rem;
}

.sidebar-item a:hover {
    background: var(--bg-secondary);
}

.sidebar-item.active a {
    background: rgba(242, 148, 5, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 4px solid var(--primary-color);
}

.section-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sidebar-item.active .section-number {
    background: var(--primary-color);
    color: white;
}

.sidebar-item.completed .section-number {
    background: #10b981;
    color: white;
}

.section-title-sidebar {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 999;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 0.95rem;
}

.sidebar-toggle:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.3);
}

.sidebar-toggle.hidden {
    opacity: 0;
    pointer-events: none;
}

.hamburger {
    font-size: 1.5rem;
    line-height: 1;
}

/* Progress */
.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
    .course-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .course-title {
        font-size: 2.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .course-hero {
        padding: 3rem 1.5rem;
    }

    .course-title {
        font-size: 2rem;
    }

    .course-section,
    .content-section,
    .quiz-container {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .activity {
        padding: 1.5rem;
    }

    .section-navigation {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .sidebar {
        width: 300px;
        left: -300px;
    }

    .sidebar.sidebar-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 300px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .score-circle {
        width: 160px;
        height: 160px;
    }

    .score-value {
        font-size: 3.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* H5P and Videotime */
.h5p-placeholder,
.videotime-container {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.videotime-player {
    margin: 2rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Loading */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========================================
   ARTICULATE-STYLE COURSE APP
   ======================================== */

/* Course App Container */
.course-app {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Top Bar */
.top-bar {
    position: sticky;
    top: 0;
    background: var(--primary-color);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    z-index: 50;
}

.hamburger-btn,
.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: opacity 0.2s ease;
}

.hamburger-btn:hover,
.search-btn:hover {
    opacity: 0.8;
}

.top-bar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

/* Sidebar (Articulate-style) */
.sidebar {
    width: 280px;
    background: #f5f5f5;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar.sidebar-closed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.sidebar-course-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.sidebar-progress-info {
    margin-top: 0.5rem;
}

.sidebar-progress-info .progress-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #d0d0d0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.sidebar-lessons {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-section-title {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-icon {
    font-size: 1rem;
}

.sidebar-lesson {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-lesson:hover {
    background: rgba(0, 0, 0, 0.03);
}

.sidebar-lesson.active {
    background: rgba(242, 148, 5, 0.1);
    border-left-color: var(--primary-color);
}

.sidebar-lesson.completed {
    opacity: 0.7;
}

.sidebar-lesson-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.sidebar-lesson-icon {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.sidebar-lesson-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.sidebar-lesson.active .sidebar-lesson-title {
    font-weight: 600;
    color: var(--accent-color);
}

.sidebar-lesson-status {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Locked Sidebar Lessons (Demo Mode) */
.sidebar-lesson-locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.sidebar-lesson-locked:hover {
    background: transparent;
}

.sidebar-lesson-locked .sidebar-lesson-icon {
    color: #999;
}

.sidebar-lesson-locked .sidebar-lesson-title {
    color: #999;
}

/* Main Course Content */
.course-main {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.sidebar.sidebar-closed ~ .course-main {
    margin-left: 0;
}

.lesson-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 3rem;
    width: 100%;
}

.lesson-header {
    margin-bottom: 3rem;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.home-btn:hover {
    color: var(--accent-color);
}

.home-btn svg {
    transition: transform 0.2s ease;
}

.home-btn:hover svg {
    transform: translateX(-2px);
}

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

.lesson-progress {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0.75rem;
}

.lesson-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1.2;
    margin: 0;
}

.lesson-divider {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) 100px, transparent 100px);
    margin-top: 1.5rem;
}

.lesson-body {
    margin-bottom: 3rem;
}

.lesson-footer {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.lesson-footer .btn {
    min-width: 120px;
}

/* Intro Page (before course starts) */
.intro-page {
    width: 100%;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.search-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 700px;
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.search-icon {
    flex-shrink: 0;
    opacity: 0.6;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
    color: var(--text-color);
}

.search-input::placeholder {
    color: #999;
}

.search-clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.search-clear-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.search-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
    color: var(--text-secondary);
}

.search-close-btn:hover {
    background: #f5f5f5;
    color: var(--text-color);
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.search-empty-state,
.search-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.search-empty-state svg,
.search-no-results svg {
    margin: 0 auto 1rem;
    opacity: 0.4;
}

.search-hint {
    margin: 0;
    font-size: 1rem;
}

.search-no-results p {
    margin: 0;
    font-size: 1rem;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-result-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-result-item:hover {
    background: #f9f9f9;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-result-lesson {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.search-result-icon {
    flex-shrink: 0;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.search-result-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.search-result-excerpt mark {
    background: #ffeaa7;
    color: var(--text-color);
    font-weight: 600;
    padding: 0 0.125rem;
    border-radius: 2px;
}

/* Search highlight in content */
.search-highlight {
    background: #ffeb3b;
    color: var(--text-color);
    font-weight: 700;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    box-shadow: 0 0 0 3px rgba(255, 235, 59, 0.3);
    animation: highlight-pulse 1s ease-in-out;
}

@keyframes highlight-pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(255, 235, 59, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 235, 59, 0.5);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar:not(.sidebar-closed) {
        transform: translateX(0);
    }

    .course-main {
        margin-left: 0;
    }

    .lesson-content {
        padding: 2rem 1.5rem;
    }

    .lesson-title {
        font-size: 2rem;
    }

    .search-overlay {
        padding: 1rem;
    }

    .search-container {
        margin-top: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .search-header {
        padding: 1rem;
    }

    .search-results {
        padding: 1rem;
    }
}

/* Quiz Styling - Articulate Style */
.activity-quiz {
    background: #fff;
    margin: 2rem 0;
}

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

/* Quiz Start Screen */
.quiz-start-screen {
    text-align: center;
    padding: 3rem 2rem;
}

.quiz-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.quiz-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Quiz Question Wrapper */
.quiz-question-wrapper {
    padding: 1.5rem 0;
}

/* Page Number - Articulate Style */
.quiz-page-number {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.page-label {
    font-weight: 400;
    margin-right: 0.5rem;
}

.page-current {
    color: var(--primary-color);
}

.page-separator {
    margin: 0 0.25rem;
}

.page-total {
    color: var(--text-secondary);
}

/* Question Title */
.question-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

/* Answer Options - Articulate Style */
.question-answers {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.answer-option-wrapper {
    width: 100%;
}

.answer-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.answer-option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.answer-option.selected {
    border-color: var(--primary-color);
    border-width: 3px;
    background: #fff5e6;
}

.answer-option.correct {
    border-color: #4caf50;
    border-width: 3px;
    background: #e8f5e9;
}

.answer-option.incorrect {
    border-color: #f44336;
    border-width: 3px;
    background: #ffebee;
}

/* Custom Checkbox/Radio */
.answer-checkbox {
    position: relative;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.answer-checkbox input[type="radio"],
.answer-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.checkmark {
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid #999;
    border-radius: 50%; /* Default: round for radio buttons */
    background: #fff;
    transition: all 0.2s;
}

/* Square checkmarks for checkboxes */
input[type="checkbox"] ~ .checkmark {
    border-radius: 4px; /* Square with slight rounding */
}

.checkmark.checked {
    border-color: var(--primary-color);
    border-width: 2px;
    background: #fff;
}

/* Radio button: filled circle when checked */
input[type="radio"] ~ .checkmark.checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* Checkbox: checkmark when checked */
input[type="checkbox"] ~ .checkmark.checked::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
}

.checkmark.correct-check {
    border-color: #4caf50;
    background: #4caf50;
}

.checkmark.correct-check::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0; /* Override any previous border-radius */
}

.checkmark.incorrect-check {
    border-color: #f44336;
    background: #f44336;
}

.checkmark.incorrect-check::after {
    content: '✕';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0; /* Override any previous border-radius */
}

.answer-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-color);
}

/* Question Feedback - Articulate Style */
.question-feedback {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.feedback-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.feedback-icon.incorrect {
    background: #f44336;
    color: #fff;
}

.feedback-content {
    flex: 1;
}

.feedback-status {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feedback-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Question Navigation */
.question-navigation {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-check,
.btn-next,
.btn-finish {
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 50px;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-check:hover,
.btn-next:hover,
.btn-finish:hover {
    background: #e68900;
    box-shadow: 0 4px 12px rgba(242, 148, 5, 0.3);
}

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

.results-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.result-score-large {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.score-divider {
    margin: 0 0.5rem;
    color: var(--text-secondary);
}

.score-total {
    color: var(--text-secondary);
}

.result-percentage {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.result-actions {
    margin-top: 2rem;
}

/* Quiz Timer */
.quiz-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-color);
    border: 2px solid #e0e0e0;
}

.quiz-timer__icon {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    color: var(--primary-color);
}

.quiz-timer__text {
    font-weight: 500;
}

.quiz-timer__text strong {
    font-weight: 700;
    font-size: 1rem;
    margin-left: 0.25rem;
}

/* Timer Warning States */
.quiz-timer--warning {
    background: #fff3cd;
    border-color: #ffc107;
}

.quiz-timer--warning .quiz-timer__icon {
    color: #ff9800;
}

.quiz-timer--critical {
    background: #ffebee;
    border-color: #f44336;
    animation: timer-pulse 1s ease-in-out infinite;
}

.quiz-timer--critical .quiz-timer__icon {
    color: #f44336;
}

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

/* Quiz Results - Pass/Fail Status */
.result-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.result-status-icon {
    margin-bottom: 1rem;
}

.result-status-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-status--pass .result-status-title {
    color: #4caf50;
}

.result-status--fail .result-status-title {
    color: #f44336;
}

.result-timer-message {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Result Message */
.result-message {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.result-message--pass {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #2e7d32;
}

.result-message--fail {
    background: #ffebee;
    border: 2px solid #f44336;
    color: #c62828;
}

.result-message p {
    margin: 0;
    font-weight: 500;
}

/* Responsive Quiz */
@media (max-width: 768px) {
    .quiz-question-wrapper {
        padding: 1rem 0;
    }

    .question-title {
        font-size: 1.5rem;
    }

    .answer-option {
        padding: 1rem;
    }

    .result-score-large {
        font-size: 3rem;
    }

    .quiz-timer {
        font-size: 0.8125rem;
        padding: 0.875rem 1.25rem;
    }

    .result-status-title {
        font-size: 1.5rem;
    }
}

/* Input fields for numerical and shortanswer questions */
.question-answer-input {
    margin-top: 1.5rem;
}

.numerical-input,
.text-input {
    width: 100%;
    max-width: 400px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.numerical-input:focus,
.text-input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.numerical-input:disabled,
.text-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.numerical-input::placeholder,
.text-input::placeholder {
    color: #9e9e9e;
}

/* Exam Mode - Detailed Results */
.exam-detailed-results {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.detailed-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.result-question-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.result-question-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-question-correct {
    border-color: #4CAF50;
    background: #f1f8f4;
}

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

.result-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.result-question-number {
    font-size: 1rem;
    font-weight: 700;
    color: #666;
}

.result-question-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-correct {
    background: #4CAF50;
    color: white;
}

.status-incorrect {
    background: #f44336;
    color: white;
}

.result-question-text {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.5;
}

.result-user-answer,
.result-correct-answer,
.result-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.result-user-answer {
    background: #f5f5f5;
    border-left: 4px solid #2196F3;
}

.result-correct-answer {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
}

.result-feedback {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.result-user-answer strong,
.result-correct-answer strong,
.result-feedback strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-user-answer div,
.result-correct-answer div,
.result-feedback div {
    color: #555;
}

.result-user-answer em,
.result-correct-answer em {
    color: #999;
    font-style: italic;
}

/* ================================
   Cardboxx (Flashcards) Styles
   ================================ */

.cardboxx-container {
    max-width: 650px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.cardboxx-cards {
    perspective: 1500px;
    min-height: 450px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flashcard-wrapper {
    width: 100%;
    height: 450px;
}

.flashcard {
    position: relative;
    width: 100%;
    height: 450px;
    cursor: pointer;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flashcard:hover {
    transform: scale(1.02);
}

.flashcard.is-flipped {
    transform: rotateY(180deg) scale(1.02);
}

.flashcard-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: white;
    display: flex;
    flex-direction: column;
    padding: 3rem 2.5rem;
    overflow: hidden;
    position: relative;
}

.flashcard-front {
    background: white;
    color: #2d2d2d;
    border: 2px solid #e0e0e0;
}

.flashcard-back {
    background: white;
    color: #2d2d2d;
    border: 2px solid #e0e0e0;
    transform: rotateY(180deg);
}

/* Corner label like real flashcards */
.flashcard-corner-label {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.flashcard-content {
    flex: 1;
    font-size: 1.5rem;
    line-height: 1.8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.flashcard-content p {
    margin: 0;
    font-weight: 500;
}

.flashcard-tap-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: auto;
    padding-top: 1.5rem;
}

.flashcard-tap-hint svg {
    opacity: 0.6;
}

/* Controls */
.cardboxx-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.cardboxx-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    background: white;
    color: #1f2937;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cardboxx-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.1);
    background: #f9fafb;
}

.cardboxx-btn:active:not(:disabled) {
    transform: translateY(0);
}

.cardboxx-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cardboxx-btn svg {
    flex-shrink: 0;
}

.cardboxx-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    padding: 0.875rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06);
    min-width: 100px;
    justify-content: center;
}

.cardboxx-progress-separator {
    opacity: 0.5;
    margin: 0 0.25rem;
}

/* Responsive design for cards */
@media (max-width: 768px) {
    .cardboxx-container {
        padding: 0 0.5rem;
    }

    .flashcard {
        height: 380px;
    }

    .flashcard-face {
        padding: 2rem 1.5rem;
    }

    .flashcard-content {
        font-size: 1.25rem;
        padding: 1.5rem 0;
    }

    .cardboxx-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .cardboxx-btn {
        width: 100%;
        justify-content: center;
    }

    .cardboxx-progress {
        width: 100%;
    }
}
