/* Master Layout */
.nuri-lesson-container { width: 100%; margin: 0 auto; position: relative; }
.sticky-video-wrapper { width: 100%; aspect-ratio: 16 / 9; background: #000; position: -webkit-sticky; position: sticky; top: 0; z-index: 99; }
.sticky-video-wrapper iframe, .sticky-video-wrapper video { width: 100%; height: 100%; }

/* The App Container */
.mathureka-app-container {
    border: 2px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    margin-top: 15px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important; 
    position: relative !important;
}

.mathureka-floating-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important; 
    padding: 15px !important;
    background: #f8fafc !important; /* Slightly lighter background to make buttons pop */
    border-bottom: 2px solid #cbd5e1 !important;
    z-index: 10 !important;
}

.mathureka-question-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important; /* Slightly more breathing room between buttons */
}

/* =========================================
   NEW: COLORFUL & TACTILE BUTTONS
   ========================================= */
.mathureka-app-container .mathureka-btn {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important; /* Soft blue gradient */
    border: 1px solid #bae6fd !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: bold !important;
    font-size: 14px !important;
    color: #0284c7 !important; /* Deep blue text */
    cursor: pointer !important;
    margin: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important; /* Smooth animations */
}

/* Hover State - Makes it feel clickable by lifting it up */
.mathureka-app-container .mathureka-btn:hover { 
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
    border-color: #7dd3fc !important;
    color: #0369a1 !important;
    transform: translateY(-2px) !important; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

/* Active State - When the student clicks it */
.mathureka-app-container .mathureka-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important; /* Bright primary blue */
    border-color: #1e40af !important;
    color: #ffffff !important;
    transform: translateY(1px) !important; /* Physically pushes down */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2) !important; /* Inner shadow for pressed look */
}
/* ========================================= */

.mathureka-toggle-video-btn {
    background-color: #334155 !important;
    border: 1px solid #0f172a !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: bold !important;
    font-size: 13px !important;
    cursor: pointer !important;
    margin-left: 10px !important;
    white-space: nowrap !important;
    transition: background-color 0.2s ease !important;
}
.mathureka-toggle-video-btn:hover { background-color: #0f172a !important; }

.mathureka-scrollable-area { 
    max-height: 450px !important; 
    overflow-y: auto !important; 
    padding: 20px !important; 
    scroll-behavior: smooth !important; 
}

.mathureka-app-container.mathureka-focus-mode .mathureka-scrollable-area {
    max-height: 75vh !important; 
}

/* Text Blocks Reset */
.mathureka-app-container div, .mathureka-app-container span { text-align: left !important; margin-top: 0 !important; }
.mathureka-block { margin-bottom: 40px !important; padding-bottom: 30px !important; border-bottom: 3px dashed #cbd5e1 !important; }
.mathureka-block:last-child { border-bottom: none !important; }
.mathureka-block-title { font-size: 18px !important; font-weight: bold !important; color: #0f172a !important; margin-bottom: 12px !important; display: block !important; }
.mathureka-problem-text { background-color: #f8fafc !important; border-left: 4px solid #2563eb !important; padding: 12px 15px !important; margin-bottom: 15px !important; font-style: italic !important; color: #1e293b !important; display: block !important; border-radius: 0 4px 4px 0 !important; }
.mathureka-solution-text { line-height: 1.6 !important; color: #334155 !important; display: block !important; padding-left: 5px !important; }