        /* Modern Purple Theme */
        :root {
            /* Primary Purple Colors */
            --md-sys-color-primary: #6750A4;
            --md-sys-color-on-primary: #FFFFFF;
            --md-sys-color-primary-container: #EADDFF;
            --md-sys-color-on-primary-container: #21005D;
            
            /* Surface Colors */
            --md-sys-color-surface: #FFFFFF;
            --md-sys-color-on-surface: #1C1B1F;
            --md-sys-color-surface-variant: #F3EFFA;
            --md-sys-color-on-surface-variant: #49454F;
            
            /* Outline */
            --md-sys-color-outline: #79747E;
            --md-sys-color-outline-variant: #E0DAE8;
            
            /* Secondary */
            --md-sys-color-secondary: #625B71;
            --md-sys-color-on-secondary: #FFFFFF;
            --md-sys-color-secondary-container: #E8DEF8;
            
            /* Success (Green) */
            --md-sys-color-success: #22C55E;
            --md-sys-color-success-container: #DCFCE7;
            
            /* Error (Red) */
            --md-sys-color-error: #EF4444;
            --md-sys-color-error-container: #FEE2E2;
            
            /* Shadow */
            --md-sys-elevation-1: 0 2px 8px rgba(103, 80, 164, 0.08), 0 1px 4px rgba(0, 0, 0, 0.06);
            --md-sys-elevation-2: 0 4px 16px rgba(103, 80, 164, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
            --md-sys-elevation-3: 0 8px 32px rgba(103, 80, 164, 0.16), 0 4px 12px rgba(0, 0, 0, 0.1);
            
            /* Typography */
            --md-sys-typescale-title-large: 24px;
            --md-sys-typescale-body-large: 17px;
            --md-sys-typescale-body-medium: 15px;
            --md-sys-typescale-body-small: 13px;
            --md-sys-typescale-label-large: 15px;
        }

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

        body {
            font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
            background-color: #FAFAFF;
            color: var(--md-sys-color-on-surface);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
            margin: 0;
            padding: 0;
            width: 100%;
            max-width: 100vw;
            letter-spacing: -0.01em;
        }

        html {
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            width: 100%;
            max-width: 100vw;
        }

        /* Global overflow prevention */
        *, *::before, *::after {
            max-width: 100%;
        }

        /* Hide empty AdSense placeholders at top */
        body > ins.adsbygoogle:first-child:empty,
        body > ins.adsbygoogle[data-ad-status="unfilled"]:first-child {
            display: none !important;
            height: 0 !important;
            min-height: 0 !important;
        }

        /* App Bar */
        .app-bar {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid rgba(103, 80, 164, 0.08);
            padding: 14px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 60px;
            width: 100%;
            box-sizing: border-box;
            transition: all 0.3s ease;
        }

        .app-bar-left {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
            flex: 1;
            overflow: hidden;
        }

        .app-bar-right {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
            max-width: 50%;
        }

        .score-badge {
            font-size: 14px;
            font-weight: 700;
            color: var(--md-sys-color-primary);
            padding: 7px 14px;
            background: linear-gradient(135deg, #EADDFF 0%, #D0BCFF 100%);
            border-radius: 20px;
            white-space: nowrap;
            flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(103, 80, 164, 0.15);
            transition: transform 0.2s ease;
        }

        .score-badge:hover {
            transform: scale(1.03);
        }

        .icon-button {
            width: 42px;
            height: 42px;
            border-radius: 14px;
            border: none;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--md-sys-color-on-surface);
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .icon-button:hover {
            background-color: var(--md-sys-color-surface-variant);
            transform: scale(1.05);
        }

        .app-bar-title {
            font-size: var(--md-sys-typescale-title-large);
            font-weight: 700;
            color: var(--md-sys-color-on-surface);
            min-width: 0;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            line-height: 1.3;
            max-height: 2.6em;
            word-break: break-word;
            overflow-wrap: break-word;
            letter-spacing: -0.02em;
        }

        .timer {
            font-size: var(--md-sys-typescale-body-medium);
            font-weight: 700;
            color: var(--md-sys-color-on-surface);
            padding: 8px 16px;
            background-color: var(--md-sys-color-surface-variant);
            border-radius: 24px;
            display: flex;
            align-items: center;
            gap: 6px;
            border: 1.5px solid transparent;
            transition: all 0.3s ease;
            white-space: nowrap;
            flex-shrink: 0;
            font-variant-numeric: tabular-nums;
        }

        .timer.timer-green {
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.06));
            color: #16A34A;
            border-color: rgba(34, 197, 94, 0.4);
        }

        .timer.timer-orange {
            background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(249, 115, 22, 0.06));
            color: #EA580C;
            border-color: rgba(249, 115, 22, 0.4);
        }

        .timer.timer-red {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
            color: #DC2626;
            border-color: rgba(239, 68, 68, 0.5);
            animation: pulse 1s ease-in-out infinite;
        }

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

        .timer-icon {
            font-size: 16px;
        }

        /* Question Time Limit Badge */
        .question-time-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 12px;
            margin-left: 8px;
            background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
            border: 1px solid rgba(249, 115, 22, 0.3);
            border-radius: 20px;
            font-size: 12px;
            color: #EA580C;
            font-weight: 600;
        }

        /* Question Type Badge */
        .question-type-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 12px;
            background: linear-gradient(135deg, rgba(103, 80, 164, 0.1), rgba(103, 80, 164, 0.04));
            border: 1px solid rgba(103, 80, 164, 0.2);
            border-radius: 20px;
            font-size: 12px;
            color: var(--md-sys-color-primary);
            font-weight: 600;
            margin-bottom: 14px;
            transition: all 0.2s ease;
        }

        .question-type-badge svg {
            width: 14px;
            height: 14px;
            fill: currentColor;
        }

        .question-type-info-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            background: var(--md-sys-color-surface-variant);
            border-radius: 50%;
            cursor: pointer;
            margin-left: 6px;
            transition: all 0.2s ease;
            border: none;
            padding: 0;
        }

        .question-type-info-btn:hover {
            background: var(--md-sys-color-outline-variant);
            transform: scale(1.1);
        }

        .question-type-info-btn svg {
            width: 14px;
            height: 14px;
            fill: #616161;
        }

        /* Question Type Info Modal */
        .question-type-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 16px;
            animation: modalOverlayIn 0.25s ease;
        }

        @keyframes modalOverlayIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes modalSlideIn {
            from { opacity: 0; transform: scale(0.92); }
            to { opacity: 1; transform: scale(1); }
        }

        .question-type-modal {
            background: white;
            border-radius: 24px;
            max-width: 400px;
            width: 100%;
            padding: 28px;
            box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
            animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .question-type-modal-header {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 18px;
        }

        .question-type-modal-icon {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, #EADDFF, #D0BCFF);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .question-type-modal-icon svg {
            width: 24px;
            height: 24px;
            fill: var(--md-sys-color-primary);
        }

        .question-type-modal-title {
            font-size: 19px;
            font-weight: 700;
            color: var(--md-sys-color-on-surface);
            letter-spacing: -0.02em;
        }

        .question-type-modal-desc {
            font-size: 15px;
            line-height: 1.7;
            color: var(--md-sys-color-on-surface-variant);
            margin-bottom: 24px;
        }

        .question-type-modal-close {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #6750A4, #7B61C4);
            color: white;
            border: none;
            border-radius: 16px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
            box-shadow: 0 4px 16px rgba(103, 80, 164, 0.3);
        }

        .question-type-modal-close:hover {
            background: linear-gradient(135deg, #5B46A0, #6F54B8);
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(103, 80, 164, 0.4);
        }

        /* Progress Bar */
        .progress-container {
            width: 100%;
            height: 4px;
            background-color: rgba(103, 80, 164, 0.08);
            position: relative;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #6750A4, #9C7CF4, #6750A4);
            background-size: 200% 100%;
            animation: progressShimmer 2.5s ease infinite;
            transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 0 2px 2px 0;
        }

        @keyframes progressShimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        /* Main Content */
        .content {
            padding: 20px;
            padding-bottom: 130px;
            max-width: 800px;
            margin: 0 auto;
            width: 100%;
            box-sizing: border-box;
            overflow-x: hidden;
        }

        .question-number {
            font-size: var(--md-sys-typescale-body-small);
            color: var(--md-sys-color-on-surface-variant);
            margin-bottom: 10px;
            font-weight: 500;
        }

        /* Card */
        .card {
            background-color: var(--md-sys-color-surface);
            border-radius: 20px;
            padding: 22px;
            margin-bottom: 24px;
            box-shadow: 0 2px 12px rgba(103, 80, 164, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(103, 80, 164, 0.08);
            overflow: hidden;
            word-break: break-word;
            overflow-wrap: break-word;
            transition: box-shadow 0.3s ease;
        }

        .card:hover {
            box-shadow: 0 4px 20px rgba(103, 80, 164, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
        }

        .question-text {
            font-size: var(--md-sys-typescale-title-large);
            font-weight: 600;
            color: var(--md-sys-color-on-surface);
            line-height: 1.45;
            word-break: break-word;
            overflow-wrap: break-word;
            letter-spacing: -0.01em;
        }

        /* Answer Options */
        .answer-section {
            margin-top: 24px;
        }

        .option-card {
            background-color: var(--md-sys-color-surface);
            border: 2px solid rgba(103, 80, 164, 0.12);
            border-radius: 16px;
            padding: 18px 22px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 16px;
            position: relative;
            overflow: hidden;
        }

        .option-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(103, 80, 164, 0.04), transparent);
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .option-card:hover {
            border-color: rgba(103, 80, 164, 0.3);
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(103, 80, 164, 0.1);
        }

        .option-card:hover::before {
            opacity: 1;
        }

        .option-card.selected {
            background: linear-gradient(135deg, #F3EFFA, #EADDFF);
            border-color: var(--md-sys-color-primary);
            box-shadow: 0 4px 20px rgba(103, 80, 164, 0.18);
        }

        .option-icon {
            width: 26px;
            height: 26px;
            border-radius: 13px;
            border: 2px solid var(--md-sys-color-outline);
            flex-shrink: 0;
            position: relative;
            transition: all 0.25s ease;
        }

        .option-card.selected .option-icon {
            border-color: var(--md-sys-color-primary);
            background: linear-gradient(135deg, #6750A4, #9C7CF4);
            box-shadow: 0 2px 8px rgba(103, 80, 164, 0.3);
        }

        .option-card.selected .option-icon::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 8px;
            height: 8px;
            border-radius: 4px;
            background-color: var(--md-sys-color-on-primary);
        }

        .option-text {
            font-size: var(--md-sys-typescale-body-large);
            color: var(--md-sys-color-on-surface);
            flex: 1;
            position: relative;
            z-index: 1;
        }

        .option-card.selected .option-text {
            font-weight: 700;
            color: var(--md-sys-color-on-primary-container);
        }

        /* True/False Options */
        .true-false-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        .true-false-card {
            background-color: var(--md-sys-color-surface);
            border: 2px solid rgba(103, 80, 164, 0.12);
            border-radius: 20px;
            padding: 36px 16px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
        }

        .true-false-card::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 18px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .true-false-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--md-sys-elevation-2);
        }

        .true-false-card.selected-true {
            background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
            border-color: #22C55E;
            box-shadow: 0 4px 20px rgba(34, 197, 94, 0.2);
        }

        .true-false-card.selected-false {
            background: linear-gradient(135deg, #FEE2E2, #FECACA);
            border-color: #EF4444;
            box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
        }

        .true-false-icon {
            font-size: 50px;
        }

        .true-false-text {
            font-size: 21px;
            font-weight: 600;
        }

        .true-false-card.selected-true .true-false-text {
            color: #16A34A;
            font-weight: 700;
        }

        .true-false-card.selected-false .true-false-text {
            color: #DC2626;
            font-weight: 700;
        }

        /* Fill in Blank */
        .fill-input {
            width: 100%;
            padding: 18px;
            font-size: var(--md-sys-typescale-body-large);
            font-family: inherit;
            border: 2px solid rgba(103, 80, 164, 0.2);
            border-radius: 16px;
            background-color: var(--md-sys-color-surface);
            color: var(--md-sys-color-on-surface);
            resize: vertical;
            min-height: 100px;
            transition: all 0.25s ease;
        }

        .fill-input:focus {
            outline: none;
            border-color: var(--md-sys-color-primary);
            box-shadow: 0 0 0 4px rgba(103, 80, 164, 0.1);
        }

        /* Fill in Blank - Inline Blanks */
        .fill-blank-container {
            font-size: 1.2rem;
            line-height: 2.6;
            font-weight: 500;
            color: var(--md-sys-color-on-surface);
            padding: 20px 24px;
            background: var(--md-sys-color-surface);
            border-radius: 16px;
            border: 1px solid var(--md-sys-color-outline-variant);
            margin-bottom: 8px;
        }

        .fill-blank-container .inline-blank {
            display: inline-flex;
            align-items: center;
            min-width: 100px;
            max-width: 200px;
            height: 40px;
            margin: 0 6px;
            padding: 0 14px;
            border: 2px dashed var(--md-sys-color-primary);
            border-radius: 10px;
            background: linear-gradient(135deg, rgba(103, 80, 164, 0.08), rgba(103, 80, 164, 0.12));
            vertical-align: middle;
            cursor: text;
            transition: all 0.2s ease;
            position: relative;
        }

        .fill-blank-container .inline-blank::before {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: 14px;
            background: rgba(103, 80, 164, 0.1);
            opacity: 0;
            transition: opacity 0.2s;
            z-index: -1;
        }

        .fill-blank-container .inline-blank:hover {
            border-color: var(--md-sys-color-primary);
            background: linear-gradient(135deg, rgba(103, 80, 164, 0.12), rgba(103, 80, 164, 0.18));
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(103, 80, 164, 0.2);
        }

        .fill-blank-container .inline-blank:hover::before {
            opacity: 1;
        }

        .fill-blank-container .inline-blank:focus-within {
            border-style: solid;
            border-color: var(--md-sys-color-primary);
            background: var(--md-sys-color-primary-container);
            box-shadow: 0 0 0 4px rgba(103, 80, 164, 0.15);
        }

        .fill-blank-container .inline-blank.filled {
            border-style: solid;
            background: var(--md-sys-color-primary-container);
        }

        .fill-blank-container .inline-blank .blank-number {
            font-size: 0.7rem;
            color: var(--md-sys-color-primary);
            margin-right: 6px;
            font-weight: 700;
            opacity: 0.8;
        }

        .fill-blank-container .inline-blank input {
            width: 100%;
            border: none;
            background: transparent;
            font-size: 1rem;
            font-family: inherit;
            text-align: center;
            outline: none;
            color: var(--md-sys-color-on-primary-container);
            font-weight: 600;
        }

        .fill-blank-container .inline-blank input::placeholder {
            color: var(--md-sys-color-primary);
            opacity: 0.5;
            font-weight: normal;
        }

        /* Fill in Blank - Instruction Box */
        .fill-blank-instruction {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            margin-bottom: 16px;
            background: linear-gradient(135deg, rgba(103, 80, 164, 0.08), rgba(103, 80, 164, 0.04));
            border: 1px solid rgba(103, 80, 164, 0.2);
            border-radius: 12px;
        }

        .fill-blank-instruction .instruction-icon {
            font-size: 20px;
        }

        .fill-blank-instruction .instruction-text {
            font-size: 0.9rem;
            color: var(--md-sys-color-primary);
            font-weight: 500;
        }

        /* Responsive for inline blanks */
        @media (max-width: 480px) {
            .fill-blank-container .inline-blank {
                min-width: 80px;
                max-width: 150px;
                height: 36px;
                padding: 0 10px;
                margin: 0 4px;
            }
            .fill-blank-container .inline-blank input {
                font-size: 0.9rem;
            }
            .fill-blank-container {
                font-size: 1rem;
                line-height: 2.2;
            }
        }

        /* Ordering Question Styles */
        .ordering-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .ordering-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 18px;
            background: var(--md-sys-color-surface);
            border: 2px solid rgba(103, 80, 164, 0.12);
            border-radius: 16px;
            cursor: grab;
            transition: all 0.25s ease;
            user-select: none;
        }

        .ordering-item:hover {
            border-color: rgba(103, 80, 164, 0.3);
            background: var(--md-sys-color-surface-variant);
            box-shadow: 0 4px 16px rgba(103, 80, 164, 0.1);
        }

        .ordering-item.dragging {
            opacity: 0.5;
            border-color: var(--md-sys-color-primary);
            background: linear-gradient(135deg, #F3EFFA, #EADDFF);
            box-shadow: 0 8px 32px rgba(103, 80, 164, 0.2);
        }

        .ordering-handle {
            color: var(--md-sys-color-outline);
            font-size: 20px;
            cursor: grab;
        }

        .ordering-number {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #EADDFF, #D0BCFF);
            color: var(--md-sys-color-on-primary-container);
            border-radius: 50%;
            font-weight: bold;
            font-size: 14px;
        }

        .ordering-text {
            flex: 1;
            font-size: 16px;
            font-weight: 500;
        }

        /* Rating Scale Styles */
        .rating-scale {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            padding: 18px;
        }

        .rating-item {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.25s ease;
            background: var(--md-sys-color-surface);
            border: 2px solid rgba(103, 80, 164, 0.12);
        }

        .rating-item:hover {
            transform: scale(1.12);
            border-color: rgba(103, 80, 164, 0.3);
        }

        .rating-item.selected {
            background: linear-gradient(135deg, #6750A4, #9C7CF4);
            color: var(--md-sys-color-on-primary);
            border-color: transparent;
            box-shadow: 0 4px 16px rgba(103, 80, 164, 0.35);
        }

        /* Navigation Bar */
        .navigation-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-top: 1px solid rgba(103, 80, 164, 0.08);
            padding: 16px 20px;
            padding-bottom: max(16px, env(safe-area-inset-bottom));
            box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
            z-index: 100;
        }

        .navigation-buttons {
            display: flex;
            gap: 12px;
            max-width: 800px;
            margin: 0 auto;
        }

        /* Buttons */
        .button {
            padding: 15px 28px;
            font-size: var(--md-sys-typescale-label-large);
            font-weight: 600;
            border: none;
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-family: inherit;
            letter-spacing: 0.01em;
        }

        .button-filled {
            background: linear-gradient(135deg, #6750A4 0%, #7B61C4 100%);
            color: var(--md-sys-color-on-primary);
            flex: 2;
            box-shadow: 0 4px 16px rgba(103, 80, 164, 0.25);
        }

        .button-filled:hover {
            box-shadow: 0 6px 24px rgba(103, 80, 164, 0.35);
            transform: translateY(-2px);
        }

        .button-filled:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px rgba(103, 80, 164, 0.2);
        }

        .button-outlined {
            background-color: transparent;
            color: var(--md-sys-color-primary);
            border: 2px solid rgba(103, 80, 164, 0.25);
            flex: 1;
        }

        .button-outlined:hover {
            background-color: rgba(103, 80, 164, 0.06);
            border-color: rgba(103, 80, 164, 0.4);
            transform: translateY(-1px);
        }

        /* Material Icons */
        .material-icon {
            font-size: 20px;
        }

        /* Responsive Design */
        @media (max-width: 600px) {
            .app-bar {
                padding: 12px 16px;
                gap: 8px;
            }

            .app-bar-left {
                gap: 8px;
            }

            .app-bar-right {
                gap: 6px;
                max-width: 45%;
            }

            .app-bar-title {
                font-size: 18px;
            }

            .score-badge {
                font-size: 12px;
                padding: 5px 10px;
            }

            .timer {
                font-size: 12px;
                padding: 6px 10px;
                gap: 4px;
            }

            .timer-icon {
                font-size: 14px;
            }

            .question-time-badge {
                font-size: 10px;
                padding: 3px 8px;
            }

            .content {
                padding: 14px;
                padding-bottom: 110px;
                overflow-x: hidden;
            }

            /* Prevent overflow on quiz widgets */
            .quiz-widget,
            .card {
                max-width: 100%;
                overflow-x: hidden;
                box-sizing: border-box;
                padding: 18px;
                border-radius: 16px;
            }

            .question-text {
                font-size: 19px;
            }

            .option-text {
                font-size: 15px;
            }

            .option-card {
                padding: 15px 18px;
                border-radius: 14px;
            }

            .true-false-container {
                gap: 10px;
            }

            .true-false-card {
                padding: 28px 14px;
                border-radius: 16px;
            }

            .true-false-icon {
                font-size: 42px;
            }

            .true-false-text {
                font-size: 17px;
            }

            .navigation-bar {
                padding: 12px 14px;
            }

            .button {
                padding: 13px 22px;
                font-size: 14px;
                border-radius: 14px;
            }
        }

        /* Tablet Responsive */
        @media (min-width: 601px) and (max-width: 1024px) {
            .content {
                padding: 24px;
                max-width: 720px;
            }

            .card {
                padding: 24px;
                border-radius: 22px;
            }

            .option-card {
                padding: 20px 24px;
            }

            .navigation-bar {
                padding: 18px 24px;
            }

            .button {
                padding: 16px 32px;
            }
        }

        /* Desktop/Laptop */
        @media (min-width: 1025px) {
            .content {
                padding: 32px;
                max-width: 780px;
            }

            .card {
                padding: 28px;
                border-radius: 24px;
            }

            .option-card {
                padding: 20px 26px;
                border-radius: 18px;
            }

            .true-false-card {
                padding: 40px 20px;
            }

            .navigation-bar {
                padding: 18px 32px;
            }

            .navigation-buttons {
                max-width: 780px;
            }

            .button {
                padding: 16px 36px;
                font-size: 16px;
            }
        }

        @media (max-width: 400px) {
            .app-bar {
                padding: 10px 12px;
            }

            .app-bar-left {
                gap: 6px;
            }

            .app-bar-right {
                gap: 4px;
                max-width: 40%;
            }

            .app-bar-title {
                font-size: 15px;
            }

            .score-badge {
                font-size: 10px;
                padding: 4px 8px;
            }

            .timer {
                font-size: 11px;
                padding: 5px 8px;
            }

            .timer-icon {
                font-size: 12px;
            }

            .icon-button {
                width: 36px;
                height: 36px;
            }

            .question-text {
                font-size: 17px;
            }

            .option-card {
                padding: 14px;
                border-radius: 12px;
            }

            .true-false-card {
                padding: 22px 10px;
                border-radius: 14px;
            }

            .card {
                padding: 16px;
                border-radius: 14px;
            }
        }

        @media (max-width: 320px) {
            .app-bar {
                padding: 8px 10px;
            }

            .app-bar-title {
                font-size: 13px;
            }

            .app-bar-right {
                max-width: 38%;
            }

            .score-badge {
                font-size: 9px;
                padding: 3px 6px;
            }

            .timer {
                font-size: 10px;
                padding: 4px 6px;
            }

            .timer-icon {
                font-size: 11px;
            }
        }

        /* Poll Styles */
        .poll-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .poll-info-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            background: linear-gradient(135deg, var(--md-sys-color-surface-variant), rgba(103, 80, 164, 0.04));
            border-radius: 14px;
            margin-bottom: 4px;
            font-size: 13px;
            color: var(--md-sys-color-on-surface-variant);
        }
        .poll-info-header svg {
            flex-shrink: 0;
        }
        .poll-option {
            background-color: var(--md-sys-color-surface);
            border: 2px solid rgba(103, 80, 164, 0.12);
            border-radius: 16px;
            padding: 16px 18px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 14px;
            position: relative;
            overflow: hidden;
        }
        .poll-option:hover:not(.poll-locked) {
            background-color: var(--md-sys-color-surface-variant);
            border-color: rgba(103, 80, 164, 0.25);
            transform: translateY(-1px);
        }
        .poll-option.poll-selected {
            background: linear-gradient(135deg, #F3EFFA, #EADDFF);
            border-color: var(--md-sys-color-primary);
            box-shadow: 0 4px 16px rgba(103, 80, 164, 0.15);
        }
        .poll-option.poll-locked {
            cursor: default;
            pointer-events: none;
        }
        .poll-option-icon {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 2px solid var(--md-sys-color-outline);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        .poll-option.multi-select .poll-option-icon {
            border-radius: 4px;
        }
        .poll-option.poll-selected .poll-option-icon {
            border-color: var(--md-sys-color-primary);
            background-color: var(--md-sys-color-primary);
        }
        .poll-option.poll-selected .poll-option-icon::after {
            content: '✓';
            color: var(--md-sys-color-on-primary);
            font-size: 12px;
            font-weight: bold;
        }
        .poll-option-text {
            flex: 1;
            font-size: 15px;
            color: var(--md-sys-color-on-surface);
            z-index: 1;
        }
        .poll-option.poll-selected .poll-option-text {
            font-weight: 600;
            color: var(--md-sys-color-on-primary-container);
        }
        /* Poll Results */
        .poll-result-bar {
            position: absolute;
            left: 0; top: 0; bottom: 0;
            background-color: var(--md-sys-color-primary-container);
            opacity: 0.35;
            border-radius: 10px;
            transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            width: 0;
        }
        .poll-option.poll-selected .poll-result-bar {
            opacity: 0.5;
        }
        .poll-result-pct {
            font-size: 14px;
            font-weight: 700;
            color: var(--md-sys-color-primary);
            z-index: 1;
            min-width: 40px;
            text-align: right;
        }
        .poll-vote-btn {
            margin-top: 10px;
            padding: 15px;
            width: 100%;
            border: none;
            border-radius: 16px;
            background: linear-gradient(135deg, #6750A4, #7B61C4);
            color: var(--md-sys-color-on-primary);
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
            font-family: inherit;
            box-shadow: 0 4px 16px rgba(103, 80, 164, 0.25);
        }
        .poll-vote-btn:hover:not(:disabled) {
            box-shadow: 0 6px 24px rgba(103, 80, 164, 0.35);
            transform: translateY(-2px);
        }
        .poll-vote-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .poll-total-votes {
            text-align: center;
            font-size: 13px;
            color: var(--md-sys-color-outline);
            margin-top: 6px;
        }

        /* Animation */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes gentlePulse {
            0%, 100% { box-shadow: 0 2px 12px rgba(103, 80, 164, 0.08); }
            50% { box-shadow: 0 4px 20px rgba(103, 80, 164, 0.15); }
        }

        .content {
            animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Promotional Banner */
        .promo-banner {
            background: linear-gradient(135deg, #01875f 0%, #00c07b 50%, #01875f 100%);
            background-size: 200% 100%;
            animation: bannerShimmer 4s ease infinite;
            padding: 10px 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            position: relative;
            overflow: hidden;
        }

        @keyframes bannerShimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        .promo-banner::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
            animation: promoShine 3s ease-in-out infinite;
        }

        @keyframes promoShine {
            0% { left: -100%; }
            100% { left: 200%; }
        }

        .promo-banner:hover {
            filter: brightness(1.08);
            padding: 11px 18px;
        }

        .promo-banner-content {
            display: flex;
            align-items: center;
            gap: 10px;
            color: white;
            font-size: 13px;
            font-weight: 500;
            position: relative;
            z-index: 1;
        }

        .promo-banner-icon {
            display: flex;
            align-items: center;
            background: rgba(255,255,255,0.15);
            padding: 4px;
            border-radius: 6px;
        }

        .promo-banner-text {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .promo-banner-cta {
            background: rgba(255, 255, 255, 0.25);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            white-space: nowrap;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .promo-banner-close {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
            margin-left: 8px;
        }

        .promo-banner-close:hover {
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }

        @media (max-width: 480px) {
            .promo-banner {
                padding: 6px 12px;
            }

            .promo-banner-content {
                font-size: 11px;
                gap: 6px;
            }

            .promo-banner-cta {
                font-size: 10px;
                padding: 3px 8px;
            }
        }

        /* Quill Content Styles for markdown_page */
        .quill-content {
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .quill-content p {
            margin: 0 0 1em 0;
        }

        .quill-content p:last-child {
            margin-bottom: 0;
        }

        .quill-content strong {
            font-weight: 700;
        }

        .quill-content em {
            font-style: italic;
        }

        .quill-content u {
            text-decoration: underline;
        }

        .quill-content s {
            text-decoration: line-through;
        }

        .quill-content code {
            background-color: var(--md-sys-color-surface-variant);
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
            font-size: 0.9em;
        }

        .quill-content pre {
            background-color: var(--md-sys-color-surface-variant);
            padding: 16px;
            border-radius: 8px;
            overflow-x: auto;
            margin: 1em 0;
        }

        .quill-content blockquote {
            border-left: 4px solid var(--md-sys-color-primary);
            margin: 1em 0;
            padding: 8px 16px;
            background-color: var(--md-sys-color-surface-variant);
            border-radius: 0 8px 8px 0;
        }

        .quill-content h1 {
            font-size: 2em;
            font-weight: 700;
            margin: 0.67em 0;
        }

        .quill-content h2 {
            font-size: 1.5em;
            font-weight: 600;
            margin: 0.75em 0;
        }

        .quill-content h3 {
            font-size: 1.17em;
            font-weight: 600;
            margin: 0.83em 0;
        }

        .quill-content ul, .quill-content ol {
            margin: 1em 0;
            padding-left: 2em;
        }

        .quill-content li {
            margin: 0.5em 0;
        }

        .quill-content a {
            color: var(--md-sys-color-primary);
            text-decoration: underline;
        }

        .quill-content a:hover {
            color: var(--md-sys-color-on-primary-container);
        }

        .quill-content img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            margin: 8px 0;
        }

        .quill-content iframe {
            max-width: 100%;
            border-radius: 8px;
            margin: 8px 0;
        }

        /* Quill text alignment */
        .quill-content .ql-align-center {
            text-align: center;
        }

        .quill-content .ql-align-right {
            text-align: right;
        }

        .quill-content .ql-align-justify {
            text-align: justify;
        }

        /* Quill indent levels */
        .quill-content .ql-indent-1 {
            padding-left: 3em;
        }

        .quill-content .ql-indent-2 {
            padding-left: 6em;
        }

        .quill-content .ql-indent-3 {
            padding-left: 9em;
        }
