        :root {
            --primary: #3b82f6;
            --primary-dark: #2563eb;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --gray-light: #f3f4f6;
        }

        * {
            user-select: none;
            -webkit-user-select: none;
            -ms-user-select: none;
        }

        body {
            background-color: #f8fafc;
            margin: 0;
            padding: 0;
            min-height: 100vh;
            overflow: hidden;
        }

        .app-container {
            display: grid;
            grid-template-rows: auto 1fr auto;
            height: 100vh;
            overflow: hidden;
        }
        .header {
            background: white;
            padding: 1.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            z-index: 20;
            text-align: center;
            /*background: #eff6ff;*/

        }
        
        .header-content {
            /*max-width: 600px;*/
            margin: 0 auto;
            border-radius:1rem;
            background: #f6f6f6;
            padding:20px;
            border-width:1px;

        }

        .progress-bar {
            height: 0.5rem;
            background: var(--gray-light);
            border-radius: 1rem;
            overflow: hidden;
            margin-top: 1rem;
        }

        .progress {
            height: 100%;
            background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
            transition: width 0.3s ease;
        }

        .main-content {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 1.5rem;
            overflow: hidden;
            padding: 1.5rem;
            height: 100%;
        }

        .question-section {
            overflow-y: auto;
            padding-right: 1rem;
             -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
            /*scrollbar-width: thin;*/
            /*scrollbar-color: var(--primary) var(--gray-light);*/
        }

        /*.question-section::-webkit-scrollbar {*/
        /*    width: 6px;*/
        /*}*/

.question-section::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}
        .question-section::-webkit-scrollbar-track {
            background: var(--gray-light);
            border-radius: 3px;
        }

        .question-section::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 3px;
        }

        .question-card {
            background: white;
            border-radius: 1rem;
            padding: 2rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            margin-bottom: 1rem;
        }

        .question-panel {
            background: white;
            border-radius: 1rem;
            padding: 1.5rem;
            box-shadow: -4px 0 6px -1px rgba(0, 0, 0, 0.1);
            overflow-y: auto;
            max-height: calc(100vh - 200px);
            scrollbar-width: thin;
            scrollbar-color: var(--primary) var(--gray-light);
        }

        .question-panel::-webkit-scrollbar {
            width: 6px;
        }

        .question-panel::-webkit-scrollbar-track {
            background: var(--gray-light);
            border-radius: 3px;
        }

        .question-panel::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 3px;
        }

        .option {
            padding: 1rem 1.5rem;
            border: 2px solid var(--gray-light);
            border-radius: 0.75rem;
            margin: 0.75rem 0;
            cursor: pointer;
            transition: all 0.2s ease;
            background: white;
        }

        .option:hover {
            border-color: var(--primary);
            background: #eff6ff;
            transform: translateY(-2px);
        }

        .option.selected {
            border-color: var(--success);
            background: #ecfdf5;
        }
        .option.correct {
            background-color: #4caf50;
            color: white;
            border-color: #4caf50;
        }
        .option.incorrect {
            background-color: #f44336;
            color: white;
            border-color: #f44336;
        }

        .question-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
            gap: 0.75rem;
            padding: 1rem 0;
        }

        .question-number {
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 0.5rem;
            font-weight: 600;
            transition: all 0.2s ease;
            border: 2px solid var(--gray-light);
            background: white;
        }

        .question-number:hover {
            transform: scale(1.05);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .question-number.current {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .question-number.attempted {
            background: var(--success);
            color: white;
            border-color: var(--success);
        }

        .question-number.marked {
            background: var(--warning);
            color: white;
            border-color: var(--warning);
        }

        .footer {
            background: white;
            padding: 1.5rem;
            box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
            position: sticky;
            bottom: 0;
            z-index: 20;
        }
        .footer-buttons {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }

        .footer-actions {
            display: grid;
            grid-template-columns: auto 1fr auto;
            gap: 0.5rem;
            align-items: center;
        }

        .button {
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            font-weight: 600;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

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

        .button-primary:hover:not(:disabled) {
            background: var(--primary-dark);
            transform: translateY(-1px);
        }

        .button-success {
            background: var(--success);
            color: white;
        }

        .button-success:hover:not(:disabled) {
            background: #059669;
            transform: translateY(-1px);
        }

        .button-warning {
            background: var(--warning);
            color: white;
        }

        .button-warning:hover:not(:disabled) {
            background: #d97706;
            transform: translateY(-1px);
        }

        .explanation {
            background: #eff6ff;
            border-radius: 0.75rem;
            padding: 1.5rem;
            margin-top: 1rem;
            transition: all 0.3s ease;
            border-width:1px;
            border-color:blue;
        }
        .explanation-container {
    margin-top: 20px;
    padding: 5px;
    border-radius: 8px;
    background-color: #f00;
}

.explanation-container.hidden {
    display: none;
}
            .button {
                /* Keep existing button styles */
                padding: 0.75rem 1.5rem;
                border-radius: 0.5rem;
                font-weight: 600;
                transition: all 0.2s ease;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 0.5rem;
                /* Add these new styles */
                border: 1px solid #e5e7eb;
                box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
            }
            
            /* Adjust button size for icons only */
            .button i {
                font-size: 1.25rem;
            }
            
            /* Make the buttons more compact when they only contain icons */
            .button:has(> i:only-child) {
                padding: 0.5rem;
                width: 1.5rem;
                height: 1.5rem;
            }
        @media (max-width: 1024px) {
            .main-content {
                grid-template-columns: 1fr;
            }

            .question-panel {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                max-height: 60vh;
                border-radius: 1rem 1rem 0 0;
                transform: translateY(100%);
                transition: transform 0.3s ease;
                z-index: 30;
            }

            .question-panel.show {
                transform: translateY(0);
            }

            .footer {
                padding-bottom: env(safe-area-inset-bottom, 1.5rem);
            }
        }

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

            .main-content {
                padding: 1rem;
            }

            .question-card {
                padding: 1.5rem;
            }

            .button {
                padding: 0.625rem 1rem;
                font-size: 0.875rem;
            }

            .footer {
                padding: 1rem;
            }
        }

        .backdrop {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 25;
        }

        .backdrop.show {
            opacity: 1;
            visibility: visible;
        }