/**
 * Mbilletech Examination & Evaluation System - Core Front-End Portal StyleSheet
 * File: exam-portal.css
 * Version: 2.5.6 (Enterprise Architecture Edition)
 * Author: MBILLE TECH
 * Description: High-concurrency production CSS layout engine for the proctored portal[cite: 11].
 * Implements a premium, high-fidelity certification layout interface modeled on AWS/Pearson Vue patterns[cite: 11].
 * Core design features: independent high-contrast light/dark variables token matrix, fluid question layout wrappers,
 * a scaled multi-color multi-state question tracking navigation grid layout, and split-screen IDE workspace slider
 * dynamics built with multi-axis responsive breakpoints for desktop, tablet, and narrow viewports[cite: 11].
 *
 * Upgraded to ensure complete layout parity across secure (HTTPS) and non-secure (HTTP) origins,
 * adding robust fluid styling frameworks for manual identification upload overrides and fast-tracked containers.
 */

/* -------------------------------------------------------------------------
   1. CORE ARCHITECTURAL VARIABLES, DESIGN TOKENS & HIGH-CONTRAST SYSTEM MATRICES
   ------------------------------------------------------------------------- */
:root {
    /* Pearson Vue/AWS Pro Design Pattern Color Palette Tokens[cite: 11] */
    --mbille-primary: #0f4c81;
    --mbille-primary-hover: #0a3356;
    --mbille-secondary: #ff9900;
    --mbille-secondary-hover: #e08800;
    
    /* Standardized Operational Feedback States Layers[cite: 11] */
    --mbille-success: #1e7e34;
    --mbille-success-hover: #145523;
    --mbille-success-bg: #eafaf1;
    --mbille-success-border: #b8ebd0;
    
    --mbille-danger: #d9534f;
    --mbille-danger-hover: #c9302c;
    --mbille-danger-bg: #fdf2f2;
    --mbille-danger-border: #f8b4b4;
    
    --mbille-warning: #f0ad4e;
    --mbille-warning-hover: #ec971f;
    --mbille-warning-bg: #fefcf3;
    --mbille-warning-border: #f3e5ab;
    
    --mbille-info: #17a2b8;
    --mbille-info-bg: #f4fbfd;
    --mbille-info-border: #bee5eb;

    /* Base Structural Typography Layout Tokens[cite: 11] */
    --mbille-font-stack: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --mbille-radius: 4px;
    --mbille-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --mbille-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --mbille-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    
    /* Dedicated Multi-Color Multi-State Navigation Grid Color Codes Map[cite: 11] */
    --mbille-state-unvisited: #e9ecef;
    --mbille-state-unvisited-text: #495057;
    --mbille-state-unvisited-border: #ced4da;
    
    --mbille-state-unanswered: #f8d7da;
    --mbille-state-unanswered-text: #721c24;
    --mbille-state-unanswered-border: #f5c6cb;
    
    --mbille-state-answered: #d4edda;
    --mbille-state-answered-text: #155724;
    --mbille-state-answered-border: #c3e6cb;
    
    --mbille-state-flagged: #cce5ff;
    --mbille-state-flagged-text: #004085;
    --mbille-state-flagged-border: #b8daff;
    
    --mbille-state-current: #ffffff;
    --mbille-state-current-text: #0f4c81;
    --mbille-state-current-border: #0f4c81;

    /* V2.5 Enterprise Split-Pane Code Editor Sandboxes (Dark Theme Default Configuration)[cite: 11] */
    --v2-ide-bg-dark: #1e1e1e;
    --v2-ide-text-dark: #d4d4d4;
    --v2-ide-toolbar-dark: #252526;
    --v2-ide-border-dark: #3c3c3c;
    --v2-ide-tab-active-dark: #1e1e1e;
    --v2-ide-tab-inactive-dark: #2d2d2d;
    
    /* V2.5 Enterprise Split-Pane Code Editor Sandboxes (Light Theme Alternative Configuration)[cite: 11] */
    --v2-ide-bg-light: #ffffff;
    --v2-ide-text-light: #24292e;
    --v2-ide-toolbar-light: #f6f8fa;
    --v2-ide-border-light: #e1e4e6;
    --v2-ide-tab-active-light: #ffffff;
    --v2-ide-tab-inactive-light: #eaeef2;

    /* High-Contrast Core Global Interface Theme Overrides Matrix Base Slots[cite: 11] */
    --mbille-body-bg: #f4f6f9;
    --mbille-text-color: #333333;
    --mbille-card-bg: #ffffff;
    --mbille-card-border: #dee2e6;
}

/* -------------------------------------------------------------------------
   2. EXPLICIT LIGHT AND DARK THEME HIGH-CONTRAST TOKEN CLASS DEFINITIONS
   ------------------------------------------------------------------------- */
.theme-light {
    --mbille-body-bg: #f8f9fa;
    --mbille-text-color: #212529;
    --mbille-card-bg: #ffffff;
    --mbille-card-border: #cbcfd4;
    
    --v2-monaco-bg: var(--v2-ide-bg-light);
    --v2-monaco-text: var(--v2-ide-text-light);
    --v2-monaco-toolbar: var(--v2-ide-toolbar-light);
    --v2-monaco-border: var(--v2-ide-border-light);
    --v2-monaco-tab-active: var(--v2-ide-tab-active-light);
    --v2-monaco-tab-inactive: var(--v2-ide-tab-inactive-light);
}

.theme-dark {
    --mbille-body-bg: #121212;
    --mbille-text-color: #e0e0e0;
    --mbille-card-bg: #1e1e1e;
    --mbille-card-border: #333333;
    
    --v2-monaco-bg: var(--v2-ide-bg-dark);
    --v2-monaco-text: var(--v2-ide-text-dark);
    --v2-monaco-toolbar: var(--v2-ide-toolbar-dark);
    --v2-monaco-border: var(--v2-ide-border-dark);
    --v2-monaco-tab-active: var(--v2-ide-tab-active-dark);
    --v2-monaco-tab-inactive: var(--v2-ide-tab-inactive-dark);
    
    /* Dark Theme Adjustments for Standard Structural Elements[cite: 11] */
    --mbille-state-current: #2d2d2d;
    --mbille-state-current-text: #ff9900;
    --mbille-state-current-border: #ff9900;
    --mbille-unvisited: #2a2a2a;
}

/* -------------------------------------------------------------------------
   3. GLOBAL LAYOUT FRAMEWORKS, BASE RESET RULES, AND STAGE CONTROLLERS
   ------------------------------------------------------------------------- */
.mbilletech-portal-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px 40px 24px;
    font-family: var(--mbille-font-stack);
    color: var(--mbille-text-color);
    background-color: transparent;
    line-height: 1.6;
    box-sizing: border-box;
}

.mbilletech-portal-container *,
.mbilletech-portal-container *::before,
.mbilletech-portal-container *::after {
    box-sizing: inherit;
}

.exam-panel-card {
    background-color: var(--mbille-card-bg);
    border: 1px solid var(--mbille-card-border);
    box-shadow: var(--mbille-shadow-md);
    border-radius: var(--mbille-radius);
    padding: 32px;
    margin-bottom: 30px;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Structural Hard Lifecycle Hidden Visibility Layers with High Specificity */
#mbilletech-exam-portal-root .stage-hidden {
    display: none !important;
}

#mbilletech-exam-portal-root .stage-active {
    display: block !important;
}

/* Custom Scrollbar Optimization UI for Code Areas and Lists[cite: 11] */
.mbilletech-portal-container ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.mbilletech-portal-container ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--mbille-radius);
}
.mbilletech-portal-container ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--mbille-radius);
}
.mbilletech-portal-container ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* -------------------------------------------------------------------------
   4. PREMIUM PEARSON VUE / AWS STYLE EXAM HEADS-UP DISPLAY (HUD) HUD CONSOLE
   ------------------------------------------------------------------------- */
.exam-sticky-hud-bar-layout {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #0c2340; /* Pearson Vue style dark primary anchor[cite: 11] */
    color: #ffffff;
    padding: 16px 32px;
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: 30px;
    box-shadow: var(--mbille-shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--mbille-secondary);
}

.hud-exam-meta-title-block h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.hud-exam-meta-title-block p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #a0b2c6;
    font-weight: 500;
}

.hud-center-telemetry-panel {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hud-countdown-clock-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: var(--mbille-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hud-countdown-clock-wrapper .clock-label {
    font-size: 11px;
    font-weight: 700;
    color: #ff9900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#active-exam-countdown-timer {
    font-family: "Consolas", "Monaco", monospace;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    min-width: 110px;
    text-align: center;
}

#autosave-telemetry-status-message-node {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* -------------------------------------------------------------------------
   5. EXTENSIVE SCALED MULTI-COLOR QUESTION NAVIGATION MATRIX GRID ENGINE
   ------------------------------------------------------------------------- */
.question-navigation-matrix-sidebar-block {
    background-color: var(--mbille-card-bg);
    border: 1px solid var(--mbille-card-border);
    border-radius: var(--mbille-radius);
    padding: 24px;
    margin-bottom: 25px;
}

.matrix-sidebar-header-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--mbille-card-border);
    color: var(--mbille-text-color);
}

.question-navigation-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.grid-navigation-node-item {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Consolas", monospace;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--mbille-radius);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

/* Explicit Multi-Color State Mappings Rules[cite: 11] */
.grid-node-unvisited {
    background-color: var(--mbille-state-unvisited);
    color: var(--mbille-state-unvisited-text);
    border-color: var(--mbille-state-unvisited-border);
}
.grid-node-unvisited:hover {
    background-color: #dee2e6;
}

.grid-node-unanswered {
    background-color: var(--mbille-state-unanswered);
    color: var(--mbille-state-unanswered-text);
    border-color: var(--mbille-state-unanswered-border);
}
.grid-node-unanswered:hover {
    background-color: #f5b7bc;
}

.grid-node-answered {
    background-color: var(--mbille-state-answered);
    color: var(--mbille-state-answered-text);
    border-color: var(--mbille-state-answered-border);
}
.grid-node-answered:hover {
    background-color: #c3e6cb;
}

.grid-node-flagged {
    background-color: var(--mbille-state-flagged);
    color: var(--mbille-state-flagged-text);
    border-color: var(--mbille-state-flagged-border);
    position: relative;
}
.grid-node-flagged::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background-color: var(--mbille-secondary);
    border-radius: 50%;
}
.grid-node-flagged:hover {
    background-color: #b8daff;
}

.grid-node-current {
    background-color: var(--mbille-state-current) !important;
    color: var(--mbille-state-current-text) !important;
    border: 2px solid var(--mbille-state-current-border) !important;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.2);
    transform: scale(1.05);
}

/* Layout State Legends Panel Container[cite: 11] */
.grid-status-legends-panel-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--mbille-card-border);
}

.legend-indicator-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.legend-color-box-patch {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.1);
}

/* -------------------------------------------------------------------------
   6. BIOMETRIC HARDWARE CORE LOCKOUT SCREEN STACK & CAMERA STREAM CARDS
   ------------------------------------------------------------------------- */
#camera-status-indicator {
    padding: 18px;
    border-radius: var(--mbille-radius);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--mbille-shadow-sm);
}

#camera-status-indicator .status-icon {
    font-size: 22px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#camera-status-indicator.alert-checking {
    background-color: var(--mbille-info-bg);
    border: 1px solid var(--mbille-info-border);
    color: var(--mbille-info);
}

#camera-status-indicator.alert-verified {
    background-color: var(--mbille-success-bg) !important;
    border: 1px solid var(--mbille-success-border) !important;
    color: var(--mbille-success) !important;
}

#camera-status-indicator.alert-denied {
    background-color: var(--mbille-danger-bg) !important;
    border: 1px solid var(--mbille-danger-border) !important;
    color: var(--mbille-danger) !important;
}

.camera-live-preview-box {
    max-width: 480px;
    margin: 24px 0;
    border: 4px solid #0c2340;
    border-radius: var(--mbille-radius);
    overflow: hidden;
    background-color: #000000;
    position: relative;
    box-shadow: var(--mbille-shadow-lg);
}

#exam-hardware-camera-stream {
    width: 100%;
    height: auto;
    display: block;
    transform: scaleX(-1);
}

.camera-action-controls-row {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

#captured-photo-preview-thumbnail {
    width: 120px;
    height: 90px;
    border: 2px solid var(--mbille-primary);
    border-radius: var(--mbille-radius);
    object-fit: cover;
    background-color: #111111;
    box-shadow: var(--mbille-shadow-sm);
}

/* -------------------------------------------------------------------------
   7. EXAM STAGE REGISTRATION DESIGN PACKS AND ROW GRID LAYOUTS
   ------------------------------------------------------------------------- */
.exam-form-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 35px;
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-field-group label {
    font-weight: 700;
    color: var(--mbille-text-color);
    font-size: 14px;
}

.form-field-group input[type="text"],
.form-field-group input[type="tel"],
.form-field-group select {
    padding: 12px 16px;
    border: 1px solid var(--mbille-card-border);
    border-radius: var(--mbille-radius);
    font-size: 14px;
    color: var(--mbille-text-color);
    background-color: var(--mbille-card-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

/* Specific styling for the manual file upload fallback block */
.manual-upload-control-anchor {
    background-color: var(--mbille-card-bg);
    border: 1px solid var(--mbille-card-border);
    padding: 8px 16px;
    border-radius: var(--mbille-radius);
    display: inline-block;
    transition: border-color 0.2s ease;
}

.manual-upload-control-anchor:hover {
    border-color: var(--mbille-primary);
}

.form-field-group input:focus,
.form-field-group select:focus {
    border-color: var(--mbille-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}

.form-field-group .req {
    color: var(--mbille-danger);
    margin-left: 4px;
    font-weight: 800;
}

.exam-countdown-timer-container {
    text-align: center;
    padding: 40px 24px;
    background-color: var(--mbille-body-bg);
    border: 2px dashed var(--mbille-card-border);
    border-radius: var(--mbille-radius);
    margin-top: 30px;
}

.countdown-clock-digits {
    font-family: "Consolas", "Monaco", monospace;
    font-size: 42px;
    font-weight: 700;
    color: var(--mbille-primary);
    background-color: var(--mbille-card-bg);
    padding: 14px 28px;
    border-radius: var(--mbille-radius);
    display: inline-block;
    margin-top: 20px;
    border: 1px solid var(--mbille-card-border);
    letter-spacing: 2px;
    box-shadow: var(--mbille-shadow-sm);
}

/* -------------------------------------------------------------------------
   8. CORE QUESTION FORMATS & SPECIAL ENTERPRISE WORKSPACE INTERFACES
   ------------------------------------------------------------------------- */
.mbilletech-question-block-wrapper {
    border-bottom: 2px solid var(--mbille-body-bg);
    padding-bottom: 32px;
    margin-bottom: 32px;
}
.mbilletech-question-block-wrapper:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.question-text-statement {
    font-size: 18px;
    font-weight: 700;
    color: var(--mbille-text-color);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.question-input-options-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.question-option-item-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    background-color: var(--mbille-body-bg);
    border: 1px solid var(--mbille-card-border);
    border-radius: var(--mbille-radius);
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}
.question-option-item-row:hover {
    background-color: rgba(15, 76, 129, 0.05);
    border-color: var(--mbille-primary);
}

.question-option-item-row input[type="radio"],
.question-option-item-row input[type="checkbox"] {
    margin-top: 5px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.question-option-label-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--mbille-text-color);
}

.question-textarea-response-field {
    width: 100%;
    min-height: 180px;
    padding: 16px;
    border: 1px solid var(--mbille-card-border);
    border-radius: var(--mbille-radius);
    background-color: var(--mbille-card-bg);
    color: var(--mbille-text-color);
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
}

/* V2.5 Matching & Matrix Ordering Question UI Containers[cite: 11] */
.v2-matching-container, 
.v2-ordering-container {
    background-color: var(--mbille-body-bg);
    border: 2px dashed var(--mbille-card-border);
    padding: 30px;
    border-radius: var(--mbille-radius);
    margin: 15px 0;
}

.v2-ordering-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.v2-ordering-sortable-item {
    background-color: var(--mbille-card-bg);
    border: 1px solid var(--mbille-card-border);
    padding: 12px 18px;
    border-radius: var(--mbille-radius);
    cursor: grab;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.mbilletech-sql-editor {
    font-family: "Consolas", "Monaco", monospace;
    background-color: #151515;
    color: #a9b7c6;
    padding: 18px;
    border-radius: var(--mbille-radius);
    width: 100%;
    min-height: 140px;
    resize: vertical;
    border: 2px solid transparent;
    line-height: 1.5;
}
.mbilletech-sql-editor:focus {
    border-color: var(--mbille-secondary);
    outline: none;
}

/* -------------------------------------------------------------------------
   9. HIGH-PERFORMANCE MONACO IDE WORKSPACE SPLIT-SCREEN PANE CONFIGURATIONS
   ------------------------------------------------------------------------- */
.v2-monaco-workspace {
    width: 100%;
    min-height: 500px;
    border: 1px solid var(--v2-monaco-border);
    border-radius: var(--mbille-radius);
    overflow: hidden;
    background-color: var(--v2-monaco-bg);
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    box-shadow: var(--mbille-shadow-md);
}

/* Fullscreen Immersive Canvas Layout Mapping Rules[cite: 11] */
.v2-monaco-workspace:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    z-index: 999999 !important;
}
.v2-monaco-workspace:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    z-index: 999999 !important;
}

.v2-monaco-workspace:fullscreen .v2-ide-split-pane {
    height: calc(100vh - 50px) !important;
}
.v2-monaco-workspace:-webkit-full-screen .v2-ide-split-pane {
    height: calc(100vh - 50px) !important;
}

/* Workspace Toolbar Assembly Block[cite: 11] */
.v2-ide-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--v2-monaco-toolbar);
    border-bottom: 1px solid var(--v2-monaco-border);
    padding: 8px 16px;
    user-select: none;
}

.v2-ide-tabs {
    display: flex;
    gap: 4px;
}

.ide-tab-btn {
    background-color: var(--v2-monaco-tab-inactive);
    color: #7f8c8d;
    border: 1px solid var(--v2-monaco-border);
    border-bottom: none;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px 4px 0 0;
    transition: all 0.15s ease;
}
.ide-tab-btn:hover {
    color: var(--v2-monaco-text);
}
.ide-tab-btn.active {
    background-color: var(--v2-monaco-tab-active);
    color: var(--mbille-secondary);
    border-color: var(--v2-monaco-border);
    border-bottom: 1px solid var(--v2-monaco-bg);
}

.v2-ide-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* High-Performance Flexible Sliding Pane Rules Matrix[cite: 11] */
.v2-ide-split-pane {
    display: flex;
    width: 100%;
    height: 450px;
    background-color: var(--v2-monaco-bg);
    overflow: hidden;
    position: relative;
}

/* Resizable Left Workspace Slider Window Side[cite: 11] */
.v2-editor-pane {
    flex: 0 0 50%; /* Fixed width execution mapping anchor layer reset[cite: 11] */
    width: 50%;
    min-width: 200px;
    max-width: 85%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--v2-monaco-bg);
}

/* Right Viewport Sandbox Live Iframe Compilation Screen[cite: 11] */
.v2-preview-pane {
    flex: 1 1 auto;
    height: 100%;
    background-color: #ffffff;
    border-left: 2px solid var(--v2-monaco-border);
    position: relative;
    overflow: hidden;
}

.live-preview-sandbox-iframe-container {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #ffffff;
}

/* Interactive Sliders Trigger Handle[cite: 11] */
.v2-editor-pane::after {
    content: '||';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 6px;
    height: 40px;
    background-color: var(--v2-monaco-border);
    color: rgba(255,255,255,0.4);
    font-size: 9px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: col-resize;
    z-index: 10;
    border-radius: 3px 0 0 3px;
    pointer-events: none;
}

/* Control Execution CTA Elements Definitions[cite: 11] */
.v2-run-code-btn {
    background-color: var(--mbille-success);
    color: #ffffff;
    border: none;
    padding: 6px 16px;
    border-radius: var(--mbille-radius);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.v2-run-code-btn:hover {
    background-color: var(--mbille-success-hover);
}

.v2-fullscreen-btn {
    background-color: var(--mbille-primary);
    color: #ffffff;
    border: none;
    padding: 6px 16px;
    border-radius: var(--mbille-radius);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.v2-fullscreen-btn:hover {
    background-color: var(--mbille-primary-hover);
}

/* Legacy Fallback Plain Fields Custom Rules Maps[cite: 11] */
.mbilletech-live-code-sandbox-textarea-field {
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    color: #a9b7c6;
    font-family: "Consolas", monospace;
    font-size: 13px;
    padding: 16px;
    border: none;
    resize: none;
    outline: none;
}

/* -------------------------------------------------------------------------
   10. SECURITY COUNTERMEASURE SYSTEM OVERLAYS & HARD RUNTIME LOCKOUT PANELS
   ------------------------------------------------------------------------- */
.security-lockout-alert-screen-mask {
    text-align: center;
    padding: 48px 32px;
    border: 2px dashed var(--mbille-danger);
    background-color: var(--mbille-danger-bg);
    border-radius: var(--mbille-radius);
    color: var(--mbille-danger);
    margin: 30px 0;
    box-shadow: var(--mbille-shadow-md);
}

.security-lockout-alert-screen-mask h2 {
    margin: 0 0 14px 0;
    color: var(--mbille-danger);
    font-size: 24px;
    font-weight: 700;
}

.security-lockout-alert-screen-mask p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.terminal-feedback-message-block-view {
    text-align: center;
    padding: 64px 32px;
    max-width: 700px;
    margin: 40px auto;
}

.terminal-feedback-message-block-view .terminal-hero-icon {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 24px;
    display: block;
}

#terminal-success-message-block .terminal-hero-icon {
    color: var(--mbille-success);
}

#terminal-timeout-message-block .terminal-hero-icon {
    color: var(--mbille-danger);
}

.terminal-feedback-message-block-view h2 {
    font-size: 32px;
    margin: 0 0 16px 0;
    color: var(--mbille-text-color);
    font-weight: 700;
}

.terminal-feedback-message-block-view p {
    font-size: 16px;
    color: var(--mbille-text-color);
    line-height: 1.6;
}

/* ACTION PROCESSING AND BUTTON LAYOUT MATRIX DESIGNS */
.btn-mbille-action-trigger {
    background-color: var(--mbille-primary);
    color: #ffffff !important;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--mbille-radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), transform 0.1s ease;
    box-shadow: var(--mbille-shadow-sm);
}
.btn-mbille-action-trigger:hover {
    background-color: var(--mbille-primary-hover);
}
.btn-mbille-action-trigger:active {
    transform: scale(0.98);
}
.btn-mbille-action-trigger:focus {
    outline: 3px solid rgba(15, 76, 129, 0.3);
    outline-offset: 2px;
}

#manual-exam-submit-trigger-btn {
    background-color: var(--mbille-success);
}
#manual-exam-submit-trigger-btn:hover {
    background-color: var(--mbille-success-hover);
}
#manual-exam-submit-trigger-btn:focus {
    outline-color: rgba(30, 126, 52, 0.3);
}

.examination-canvas-footer-toolset {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    border-top: 2px solid var(--mbille-body-bg);
    padding-top: 30px;
}

/* -------------------------------------------------------------------------
   11. COMPREHENSIVE FLUID MULTI-AXIS RESPONSIVE VIEWPORT BREAKPOINT CONFIGURATIONS
   ------------------------------------------------------------------------- */

/* Tablet Optimization Layer Maps (Max-Width: 992px Screen Matrices)[cite: 11] */
@media (max-width: 992px) {
    .mbilletech-portal-container {
        padding: 0 16px 30px 16px;
    }
    
    .exam-sticky-hud-bar-layout {
        margin-left: -16px;
        margin-right: -16px;
        padding: 14px 20px;
    }

    .v2-ide-split-pane {
        height: 400px;
    }
    
    .v2-editor-pane {
        flex: 0 0 45%;
        width: 45%;
    }
}

/* Landscape/Mobile Optimization Layer Maps (Max-Width: 768px Screen Matrices)[cite: 11] */
@media (max-width: 768px) {
    .exam-form-grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .exam-panel-card {
        padding: 24px;
    }

    .hud-exam-meta-title-block h3 {
        font-size: 16px;
    }
    
    #active-exam-countdown-timer {
        font-size: 20px;
    }
}

/* Mobile Screen Tuning Phase A (520px Breakpoint Frame Optimization)[cite: 11] */
@media (max-width: 520px) {
    .exam-panel-card {
        padding: 16px !important;
        border-radius: var(--mbille-radius);
    }
    
    /* Transform Slider Pane Alignment Context onto Vertical Axis Coordinates Stack[cite: 11] */
    .v2-ide-split-pane {
        flex-direction: column !important;
        height: auto !important;
        overflow: visible;
    }
    
    .v2-editor-pane {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        height: 300px !important;
        border-right: none !important;
        border-bottom: 4px solid var(--v2-monaco-border);
        resize: vertical !important;
    }
    
    .v2-preview-pane {
        width: 100% !important;
        height: 250px !important;
        border-left: none !important;
        flex: none !important;
    }

    .v2-ide-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 12px;
    }

    .v2-ide-actions-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .mbilletech-live-code-sandbox-textarea-field {
        height: 300px;
    }
    
    .live-preview-sandbox-iframe-container {
        height: 250px;
    }
    
    .exam-sticky-hud-bar-layout {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px;
        padding: 16px;
        position: relative !important;
        border-radius: 0;
    }
    
    .hud-center-telemetry-panel {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .hud-countdown-clock-wrapper {
        width: 100%;
        justify-content: space-between;
    }
    
    .question-navigation-grid-layout {
        grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
        gap: 6px;
    }
    
    .grid-navigation-node-item {
        height: 36px;
        font-size: 12px;
    }
}

/* Mobile Screen Tuning Phase B (480px Micro-Viewport Tracking Matrix Layouts)[cite: 11] */
@media (max-width: 480px) {
    .countdown-clock-digits {
        font-size: 28px !important;
        padding: 10px 20px !important;
        width: 100%;
        text-align: center;
    }
    
    .camera-action-controls-row {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
    }
    
    #trigger-live-snapshot-btn {
        width: 100%;
    }

    #captured-photo-preview-thumbnail {
        width: 100%;
        height: 140px;
    }
    
    .examination-canvas-footer-toolset {
        flex-direction: column-reverse;
        gap: 16px;
        align-items: stretch;
    }
    
    .btn-mbille-action-trigger {
        width: 100%;
        text-align: center;
    }
    
    .terminal-feedback-message-block-view h2 {
        font-size: 24px;
    }
    
    .grid-status-legends-panel-row {
        flex-direction: column;
        gap: 10px;
    }
}