/* Mock Test Attempt Portal Stylesheet */

/* Portal View Container */
.portal-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f1f5f9;
    overflow: hidden;
}

/* Portal Top Navigation */
.portal-header {
    background-color: var(--secondary);
    color: var(--text-white);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--accent);
}

.portal-header-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.portal-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.portal-timer {
    background-color: rgba(255,255,255,0.1);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.timer-running {
    animation: flash 1s ease infinite alternate;
}

@keyframes flash {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Main Split View */
.portal-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Left Main Area */
.portal-workspace {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
}

/* Subject Sections Tab Bar */
.portal-section-tabs {
    display: flex;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 16px 0 16px;
    gap: 5px;
}

.portal-section-tab {
    padding: 10px 20px;
    background-color: #e2e8f0;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.portal-section-tab.active {
    background-color: var(--bg-card);
    color: var(--primary);
    border-top: 3px solid var(--primary);
    padding-top: 8px;
    height: auto;
}

/* Question Area */
.question-pane {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.question-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
}

.question-marking {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

.marking-badge {
    background-color: var(--bg-page);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.marking-positive { color: var(--success); }
.marking-negative { color: var(--danger); }

.question-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 25px;
    white-space: pre-wrap;
}

/* Options/Answers Wrapper */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-wrapper {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: var(--bg-page);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.option-wrapper:hover {
    border-color: var(--primary-medium);
    background-color: var(--primary-light);
}

.option-wrapper.selected {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.option-radio {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.option-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Bottom Actions Control Bar */
.portal-actions-footer {
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-actions-left {
    display: flex;
    gap: 10px;
}

/* Sidebar Backdrop Overlay on Mobile, hidden on desktop */
.portal-sidebar-backdrop {
    display: none;
}

/* Right Sidebar Panel */
.portal-sidebar {
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.candidate-card {
    padding: 20px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.candidate-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--primary);
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.candidate-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.candidate-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Question Palette Container */
.palette-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.palette-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.palette-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    background-color: #e2e8f0; /* Default: Not visited */
    color: #475569;
}

/* Palette Status Colors */
.palette-btn.not-visited {
    background-color: #e2e8f0;
    color: #475569;
}

.palette-btn.not-answered {
    background-color: var(--danger);
    color: white;
}

.palette-btn.answered {
    background-color: var(--success);
    color: white;
}

.palette-btn.marked {
    background-color: var(--marked);
    color: white;
}

.palette-btn.answered-marked {
    background-color: var(--marked);
    color: white;
    position: relative;
}

.palette-btn.answered-marked::after {
    content: '';
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--success);
    border: 1px solid white;
}

.palette-btn.active {
    box-shadow: 0 0 0 3px var(--info);
    transform: scale(1.05);
}

/* Palette Legend / Summary */
.legend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 15px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.legend-color {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Sidebar Submit Box */
.portal-sidebar-footer {
    padding: 20px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

/* Result & Analysis View */
.result-container {
    max-width: 900px;
    margin: 40px auto;
}

.result-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    margin-bottom: 30px;
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
}

.result-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.result-header p {
    color: var(--text-muted);
}

.result-score-ring {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    border: 10px solid var(--primary-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px auto;
    box-shadow: var(--shadow-md);
}

.result-score-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

.result-score-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Result Summary Breakdown Stats */
.result-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    text-align: center;
    margin-bottom: 40px;
}

.result-stat-box {
    background-color: var(--bg-page);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-color);
}

.result-stat-val {
    font-size: 1.5rem;
    font-weight: 700;
}

.result-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.val-correct { color: var(--success); }
.val-incorrect { color: var(--danger); }
.val-skipped { color: var(--visited); }

/* Review Solutions Area */
.solutions-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.solution-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.solution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 0.95rem;
}

.solution-status {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

.status-badge-correct { background-color: var(--success-light); color: var(--success); }
.status-badge-incorrect { background-color: var(--danger-light); color: var(--danger); }
.status-badge-skipped { background-color: #f1f5f9; color: var(--text-muted); }

.solution-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.solution-option.correct-choice {
    background-color: var(--success-light);
    border-color: var(--success);
    color: var(--success);
    font-weight: 600;
}

.solution-option.incorrect-choice {
    background-color: var(--danger-light);
    border-color: var(--danger);
    color: var(--danger);
    font-weight: 600;
}

.solution-explanation {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 16px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-top: 15px;
    font-size: 0.88rem;
}

.explanation-title {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

/* Instructions Screen before starting test */
.instructions-card {
    max-width: 700px;
    margin: 40px auto;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 30px;
}

.instructions-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.instructions-list {
    margin-bottom: 30px;
    padding-left: 20px;
}

.instructions-list li {
    margin-bottom: 10px;
    list-style-type: decimal;
    font-size: 0.95rem;
}

/* Mobile elements hidden by default on desktop */
.portal-mobile-header, .portal-sidebar-pull-tab, .mobile-palette-toggle, .mobile-sidebar-close-btn, .portal-fab-palette-toggle {
    display: none !important;
}

/* Floating Question Palette Toggle Button for Mobile (Testbook Style) */
.portal-fab-palette-toggle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 54px;
    border-radius: 30px 0 0 30px; /* Semi-oval shape protruding from the right edge */
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #8b1c1c));
    color: #ffffff;
    border: none;
    align-items: center;
    justify-content: center;
    padding-left: 6px; /* Offset to center the icon on the protruding part */
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: -3px 0 12px rgba(15, 23, 42, 0.25);
    z-index: 1000;
    transition: transform var(--transition-normal, 0.2s), width var(--transition-normal, 0.2s), background var(--transition-normal, 0.2s);
}

.portal-fab-palette-toggle:hover {
    width: 50px;
    background: linear-gradient(135deg, var(--primary-medium, #a82020), var(--primary-dark, #8b1c1c));
}

.portal-fab-palette-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.portal-fab-palette-toggle .fab-badge {
    position: absolute;
    top: -6px;
    left: -4px; /* Protruding corner/edge of the tab */
    background-color: var(--danger, #ef4444);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Collapsible portal views on small screen */
@media(max-width: 768px) {
    .portal-fab-palette-toggle {
        display: none !important;
    }

    .portal-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        background-color: white !important;
        z-index: 1500 !important;
    }
    
    .portal-container.hidden {
        display: none !important;
    }
    
    .portal-header {
        display: none !important;
    }
    
    .portal-mobile-header {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        flex-shrink: 0 !important;
        border-bottom: 1.5px solid #cbd5e1 !important;
        background-color: #f1f5f9 !important;
    }
    
    .mobile-header-top {
        background-color: #2d3250 !important; /* dark blue top bar */
        padding: 8px 12px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 44px !important;
        box-sizing: border-box !important;
    }
    
    .mobile-header-title {
        color: white !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.3px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        max-width: 55% !important;
    }
    
    .mobile-header-timer-pill {
        background-color: white !important;
        color: #1e293b !important;
        padding: 4px 10px !important;
        border-radius: 4px !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    }
    
    .mobile-header-section-bar {
        display: none !important;
    }
    
    .mobile-header-subject-bar {
        background-color: #f1f5f9 !important;
        padding: 8px 12px !important;
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
    }
    
    .mobile-select-wrapper {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .mobile-select-wrapper select {
        width: 100% !important;
        height: 34px !important;
        padding: 4px 30px 4px 10px !important;
        background-color: white !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 4px !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        color: #334155 !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23475569'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='6%209%2012%2015%2018%209'%3E%3C/polyline%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 10px center !important;
        background-size: 14px !important;
    }
    
    .full-width {
        width: 100% !important;
    }
    
    .subject-select-col {
        flex: 3 !important;
    }
    
    .lang-select-col {
        flex: 1.2 !important;
    }
    
    .mobile-header-info-bar {
        background-color: white !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 8px 12px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 38px !important;
        box-sizing: border-box !important;
    }
    
    .info-bar-left {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
    }
    
    .mobile-q-number {
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        color: #1e293b !important;
    }
    
    .mobile-q-timer {
        display: none !important;
    }
    
    .info-bar-right {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    
    .mobile-marks-label {
        font-size: 0.8rem !important;
        color: #475569 !important;
        font-weight: 600 !important;
    }
    
    .mobile-marks-badge {
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        padding: 2px 6px !important;
        border-radius: 3px !important;
        color: white !important;
        min-width: 24px !important;
        text-align: center !important;
    }
    
    .mobile-marks-badge.positive {
        background-color: #2ecc71 !important; /* light green matching +3 screenshot */
    }
    
    .mobile-marks-badge.negative {
        background-color: #e74c3c !important; /* red matching -1 screenshot */
    }
    
    .mobile-marks-info-btn {
        font-size: 0.9rem !important;
        color: #64748b !important;
        display: inline-flex !important;
        align-items: center !important;
        cursor: pointer !important;
    }
    
    .portal-body {
        display: flex !important;
        flex-direction: row !important;
        flex: 1 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    .portal-workspace {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
        border-right: none !important;
    }
    
    .portal-section-tabs {
        display: none !important;
    }
    
    .question-meta {
        display: none !important;
    }
    
    .question-pane {
        flex: 1 !important;
        overflow-y: auto !important;
        min-height: 0 !important;
        padding: 15px 15px 25px 15px !important;
        background-color: white !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .question-text {
        font-size: 1.05rem !important;
        margin-bottom: 20px !important;
        font-weight: 500 !important;
        line-height: 1.5 !important;
        color: #1e293b !important;
    }
    
    .options-list {
        gap: 12px !important;
        margin-top: 15px !important;
    }
    
    .option-wrapper {
        background-color: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 10px 0 !important;
        box-shadow: none !important;
        margin-bottom: 5px !important;
        display: flex !important;
        align-items: center !important;
        cursor: pointer !important;
    }
    
    .option-wrapper:hover {
        background-color: transparent !important;
    }
    
    .option-wrapper.selected {
        background-color: transparent !important;
    }
    
    .option-radio {
        margin-right: 12px !important;
        width: 20px !important;
        height: 20px !important;
        accent-color: #2196f3 !important; /* nice standard blue bullet color */
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }
    
    .option-label {
        font-size: 1.02rem !important;
        font-weight: 500 !important;
        color: #334155 !important;
        cursor: pointer !important;
        display: inline-flex !important;
        align-items: center !important;
        line-height: 1.4 !important;
    }
    
    /* Hide letters option-prefix (A., B., C., D.) to match flat list in screenshot */
    .option-prefix {
        display: none !important;
    }
    
    .portal-actions-footer {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 12px 10px !important;
        background-color: #f1f5f9 !important;
        border-top: 1.5px solid #cbd5e1 !important;
        margin-top: 0 !important;
        height: 64px !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }
    
    .footer-actions-left, .footer-actions-right {
        display: contents !important;
    }
    
    #btn-portal-prev {
        display: none !important;
    }
    
    #btn-portal-mark-review {
        display: flex !important;
        flex: 1.3 !important;
        background-color: #dbe2ef !important;
        color: #2b3a60 !important;
        border: none !important;
        border-radius: 4px !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        height: 40px !important;
        padding: 0 4px !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: none !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
    
    #btn-portal-mark-review i {
        display: none !important;
    }
    
    #btn-portal-clear {
        display: flex !important;
        flex: 1 !important;
        background-color: #dbe2ef !important;
        color: #2b3a60 !important;
        border: none !important;
        border-radius: 4px !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        height: 40px !important;
        padding: 0 4px !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: none !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
    
    #btn-portal-save-next {
        display: flex !important;
        flex: 1.5 !important;
        background-color: #2ecc71 !important;
        color: white !important;
        border: none !important;
        border-radius: 4px !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        height: 40px !important;
        padding: 0 4px !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: none !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
    
    #btn-portal-save-next i {
        display: none !important;
    }
    
    /* Sliding drawer layout for sidebar on mobile */
    .portal-sidebar {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        right: -300px !important; /* Hidden offscreen */
        width: 300px !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 2000 !important;
        background-color: white !important;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15) !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-left: 1px solid var(--border-color) !important;
        padding-top: 0 !important;
        overflow: visible !important;
    }
    
    .portal-sidebar.active {
        right: 0 !important; /* Slide in */
    }
    
    .portal-sidebar-backdrop {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: transparent !important; /* Completely transparent to ensure the background is 100% bright, clear, and readable */
        z-index: 1999 !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
        pointer-events: none !important;
    }
    
    .portal-sidebar-backdrop.active {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .portal-sidebar-pull-tab {
        display: flex !important;
        position: absolute !important;
        left: -32px !important;
        top: auto !important;
        bottom: 140px !important;
        transform: none !important;
        width: 32px !important;
        height: 60px !important;
        background-color: #3b4266 !important;
        border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
        border-right: none !important;
        border-radius: 8px 0 0 8px !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.22) !important;
        z-index: 2010 !important;
        transition: all 0.2s ease !important;
    }
    
    .mobile-sidebar-close-btn {
        display: none !important;
    }
    
    .candidate-card {
        padding: 15px 20px !important;
    }
    
    .palette-container {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 15px 20px !important;
    }
    
    .portal-sidebar-footer {
        padding: 15px 20px !important;
        flex-shrink: 0 !important;
    }

    /* Results page mobile responsive optimizations */
    .result-container {
        padding: 0 15px !important;
        margin: 20px auto !important;
    }
    .result-card {
        padding: 20px !important;
    }
    .result-header h2 {
        font-size: 1.6rem !important;
    }
    .result-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .result-stat-box {
        padding: 10px !important;
    }
    .result-stat-val {
        font-size: 1.25rem !important;
    }
    /* Wrap buttons and details at bottom of results */
    .result-card > div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: stretch !important;
    }
    .result-card > div[style*="display:flex"] div {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .result-card > div[style*="display:flex"] .btn {
        width: 100% !important;
    }
    .solution-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .instructions-card {
        margin: 15px auto !important;
        padding: 20px !important;
        border-radius: var(--radius-md) !important;
    }
    #view-result .question-pane {
        padding: 15px !important;
        flex: none !important;
        overflow-y: visible !important;
        height: auto !important;
    }
    .question-text {
        font-size: 1.05rem !important;
        margin-bottom: 15px !important;
    }
    .option-wrapper {
        padding: 12px 15px !important;
    }
}

/* Extra mobile styles for compact screens */
@media(max-width: 580px) {
    .portal-header {
        padding: 8px 10px;
        gap: 6px 8px;
    }
    
    .portal-header-title {
        font-size: 0.9rem;
    }
    
    .portal-timer {
        padding: 3px 8px;
        font-size: 0.8rem;
    }

    .portal-language-btn {
        padding: 4px 6px;
        font-size: 0.68rem;
    }
    
    .mobile-palette-toggle {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    #btn-portal-submit {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    /* Result card attempts table pruning (hide performance progress bar column) */
    .result-card .attempts-table th:nth-child(6),
    .result-card .attempts-table td:nth-child(6) {
        display: none !important;
    }
}

/* Glassmorphic Portal Loading Overlay */
#portal-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#portal-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.portal-loading-box {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    max-width: 340px;
    width: 90%;
}

.portal-loading-ring {
    width: 55px;
    height: 55px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.portal-loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.portal-loading-subtext {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   2-PAGE CBT PRE-EXAM INSTRUCTION VIEW STYLES
   ========================================================================== */

.instruction-view {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background-color: #ffffff;
    color: #333333;
    font-family: var(--font-primary);
}

.instruction-header {
    height: 60px;
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 2px solid #cbd5e1;
    background-color: #ffffff;
}

.instruction-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #ffffff;
    position: relative;
}

.instruction-content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 40px;
    overflow: hidden;
}

.sub-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.lang-dropdown {
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
    background-color: #ffffff;
}

.scrollable-instruction-area {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #334155;
}

.instructions-ordered-list {
    padding-left: 20px;
    margin: 0 0 20px 0;
}

.instructions-ordered-list li {
    margin-bottom: 12px;
    font-weight: 500;
}

.cbt-legend-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    padding-left: 10px;
}

.cbt-legend-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cbt-legend-box {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 4px;
    display: inline-block;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    border: 1px solid #94a3b8;
}

.cbt-legend-box.answered {
    background-color: #2b8a3e;
    border-color: #2b8a3e;
}

.cbt-legend-box.not-answered {
    background-color: #e03131;
    border-color: #e03131;
}

.cbt-legend-box.marked {
    background-color: #fcc419;
    border-color: #fcc419;
}

.cbt-legend-box.answered-marked {
    background-color: #fcc419;
    border-color: #fcc419;
    position: relative;
}

.cbt-legend-box.answered-marked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2b8a3e;
    font-weight: 900;
    font-size: 14px;
}

.cbt-legend-box.not-visited {
    background-color: #ffffff;
    border-color: #cbd5e1;
}

.cbt-legend-desc {
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
}

.instruction-footer {
    height: 55px;
    min-height: 55px;
    border-top: 2px solid #cbd5e1;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 15px;
}

.instruction-nav-btn {
    padding: 6px 30px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid #b0bec5;
    background-color: #dddfeb;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
}

.instruction-nav-btn:hover {
    background-color: #cbd5e1;
    border-color: #90a4ae;
}

.instruction-nav-btn.primary-nav {
    background-color: #dddfeb;
    color: #1e293b;
    border-color: #b0bec5;
}

.instruction-nav-btn.primary-nav:hover {
    background-color: #cbd5e1;
    border-color: #90a4ae;
}

.instruction-nav-btn.start-btn {
    background-color: #e2e8f0;
    color: #94a3b8;
    border-color: #cbd5e1;
    cursor: not-allowed;
}

.instruction-nav-btn.start-btn:not(:disabled) {
    background-color: #dddfeb;
    color: #1e293b;
    border-color: #b0bec5;
    cursor: pointer;
}

.instruction-nav-btn.start-btn:not(:disabled):hover {
    background-color: #cbd5e1;
    border-color: #90a4ae;
}

.exam-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.exam-details-table th, .exam-details-table td {
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
    text-align: left;
}

.exam-details-table th {
    background-color: #f1f5f9;
    font-weight: 700;
    color: #1e293b;
}

.consent-container {
    margin-top: 25px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.default-lang-section {
    margin-bottom: 20px;
}

.bold-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1e293b;
    display: inline-block;
    margin-right: 10px;
}

.inline-dropdown {
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
}

.warning-text {
    color: #ef4444;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 6px;
}

.declaration-checkbox-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 15px;
}

.declaration-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

.consent-label {
    font-size: 0.82rem;
    color: #475569;
    cursor: pointer;
    line-height: 1.5;
    font-weight: 500;
}

/* Responsive Overrides for Instructions */
@media (max-width: 768px) {
    .instruction-content-container {
        padding: 15px 15px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        flex: 1 !important;
        height: calc(100% - 60px) !important;
    }
    .instruction-header {
        padding: 0 15px;
    }
    .scrollable-instruction-area {
        font-size: 0.8rem !important;
        flex: 1 !important;
        overflow-y: auto !important;
    }
    .consent-container {
        flex-shrink: 0 !important;
        padding-top: 10px !important;
        margin-top: 10px !important;
        border-top: 1px solid #e2e8f0 !important;
    }
    .consent-label {
        font-size: 0.78rem;
    }
}

/* Dark Mode Overrides for Instructions */
[data-theme="dark"] .instruction-view,
[data-theme="dark"] .instruction-page,
[data-theme="dark"] .instruction-header {
    background-color: #1e293b;
    color: #f8fafc;
}
[data-theme="dark"] .test-title {
    color: #94a3b8 !important;
}
[data-theme="dark"] .main-title {
    color: #f8fafc !important;
}
[data-theme="dark"] .instruction-header,
[data-theme="dark"] .sub-header-row,
[data-theme="dark"] .instruction-footer,
[data-theme="dark"] .exam-details-table th,
[data-theme="dark"] .exam-details-table td,
[data-theme="dark"] .inline-dropdown,
[data-theme="dark"] .lang-dropdown {
    border-color: #334155;
}
[data-theme="dark"] .instruction-footer {
    background-color: #0f172a;
}
[data-theme="dark"] .section-title,
[data-theme="dark"] .bold-label {
    color: #f8fafc;
}
[data-theme="dark"] .scrollable-instruction-area,
[data-theme="dark"] .consent-label {
    color: #cbd5e1;
}
[data-theme="dark"] .lang-dropdown,
[data-theme="dark"] .inline-dropdown {
    background-color: #334155;
    color: #f8fafc;
}
[data-theme="dark"] .exam-details-table th {
    background-color: #0f172a;
    color: #f8fafc;
}
[data-theme="dark"] .cbt-legend-box.not-visited {
    background-color: #334155;
}
[data-theme="dark"] .cbt-legend-desc {
    color: #94a3b8;
}
[data-theme="dark"] .instruction-nav-btn {
    background-color: #334155;
    color: #f8fafc;
    border-color: #475569;
}
[data-theme="dark"] .instruction-nav-btn:hover {
    background-color: #475569;
}

/* Fullscreen Warning Modal Backdrop */
.warning-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.25s ease;
}

/* Fullscreen Warning Modal Box */
.warning-modal-box {
    background-color: #ffffff;
    width: 520px;
    max-width: 90%;
    border-radius: 8px;
    padding: 30px 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: warningModalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes warningModalScaleIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Warning Icon */
.warning-modal-icon {
    font-size: 3.5rem;
    color: #f59e0b;
    margin-bottom: 20px;
}

/* Warning Message Text */
.warning-modal-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #b91c1c;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 0 10px;
}

/* Agree Action Button */
.warning-modal-btn {
    background-color: #4caf50;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 35px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.warning-modal-btn:hover {
    background-color: #388e3c;
}

/* Dark Mode Overrides for Fullscreen Warning Modal */
[data-theme="dark"] .warning-modal-box {
    background-color: #1e293b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .warning-modal-text {
    color: #f87171;
}

/* ==========================================================================
   PREMIUM CBT ACTIVE PORTAL SIDEBAR DRAWER OVERHAUL (HIGH-FIDELITY SCREENSHOT)
   ========================================================================== */

/* Overhaul core portal sidebar structure to be a fixed vertical flex drawer */
.portal-sidebar {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    border-left: 1.5px solid #cbd5e1 !important;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05) !important;
    z-index: 1000 !important;
}

/* Combined Sidebar Header - Single Top Dark Slate Container */
.portal-sidebar-header {
    background-color: #3b4266 !important;
    color: #ffffff !important;
    padding: 15px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    border-bottom: 2px solid #252a42 !important;
}

/* Horizontal card wrapping candidate avatar and names */
.sidebar-candidate-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Rounded white container wrapping candidate first letter logo */
.portal-sidebar-header .candidate-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    background-color: #ffffff !important;
    color: #2e354f !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
}

/* Candidate names label and subtitles */
.portal-sidebar-header .candidate-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: left !important;
}

.portal-sidebar-header .candidate-name-red {
    color: #ff5252 !important; /* Vibrant bold red text pops on dark slate */
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    letter-spacing: 0.2px !important;
}

.portal-sidebar-header .candidate-subtitle {
    color: #cbd5e1 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    margin: 2px 0 0 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Bilingual CBT States Legend in 2x2 grid + 1 full-width row */
.cbt-legend-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 8px !important;
    margin-top: 4px !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    padding-top: 12px !important;
}

.cbt-legend-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.cbt-legend-item.full-width {
    grid-column: span 2 !important;
}

.cbt-legend-box {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.cbt-legend-box.answered {
    background-color: #2ecc71 !important; /* Green attempted */
    border: 1px solid #27ae60 !important;
}

.cbt-legend-box.marked {
    background-color: #f1c40f !important; /* Yellow marked */
    border: 1px solid #d4ac0d !important;
}

.cbt-legend-box.not-visited {
    background-color: #ffffff !important; /* White not visited with border */
    border: 1px solid #94a3b8 !important;
}

.cbt-legend-box.not-answered {
    background-color: #e74c3c !important; /* Red not answered, circular */
    border: 1px solid #c0392b !important;
    border-radius: 50% !important; /* Circular red indicator */
}

.cbt-legend-box.answered-marked {
    background-color: #f1c40f !important; /* Yellow with green checkmark */
    border: 1px solid #d4ac0d !important;
}

.cbt-legend-box.answered-marked::after {
    content: '✓' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #27ae60 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}

.cbt-legend-label {
    color: #e2e8f0 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    text-align: left !important;
}

/* Lavender banner displaying current active section name */
.sidebar-section-banner {
    background-color: #e0e7ff !important; /* Elegant lavender */
    color: #312e81 !important;
    padding: 10px 18px !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    text-align: left !important;
    border-bottom: 1.5px solid #c7d2fe !important;
    letter-spacing: 0.2px !important;
}

/* Palette numbers grid area */
.palette-container {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 18px !important;
    background-color: #f8fafc !important;
}

.palette-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 12px 10px !important;
    margin: 0 !important;
}

/* Palette index buttons */
.palette-btn {
    width: 100% !important;
    aspect-ratio: 1 !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.palette-btn:hover {
    filter: brightness(0.92) !important;
    transform: translateY(-1px) !important;
}

/* Standard state button shapes */
.palette-btn.not-visited {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
    border-radius: 4px !important;
}

.palette-btn.not-answered {
    background-color: #e74c3c !important;
    border: 1.5px solid #c0392b !important;
    color: #ffffff !important;
    border-radius: 50% !important; /* Distinct circular red button */
}

.palette-btn.answered {
    background-color: #2ecc71 !important;
    border: 1.5px solid #27ae60 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
}

.palette-btn.marked {
    background-color: #f1c40f !important;
    border: 1.5px solid #d4ac0d !important;
    color: #ffffff !important;
    border-radius: 4px !important;
}

.palette-btn.answered-marked {
    background-color: #f1c40f !important;
    border: 1.5px solid #d4ac0d !important;
    color: #ffffff !important;
    border-radius: 4px !important;
}

/* Green check badge at bottom right corner for Marked & Answered */
.palette-btn.answered-marked::after {
    content: '✓' !important;
    position: absolute !important;
    bottom: -3px !important;
    right: -3px !important;
    width: 15px !important;
    height: 15px !important;
    background-color: #2ecc71 !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15) !important;
}

/* Ring outline highlight for active current question */
.palette-btn.active {
    outline: 2.5px solid #1e3a8a !important;
    outline-offset: 1.5px !important;
    font-weight: 900 !important;
    z-index: 2 !important;
}

/* Sidebar action controllers bottom stacked block */
.portal-sidebar-footer {
    padding: 15px 18px !important;
    background-color: #ffffff !important;
    border-top: 1.5px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* Gray-blue Instructions Button */
.portal-sidebar-footer .btn-instructions {
    background-color: #cbd5e1 !important;
    color: #334155 !important;
    border: 1.5px solid #94a3b8 !important;
    font-weight: 700 !important;
    padding: 10px 15px !important;
    width: 100% !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.portal-sidebar-footer .btn-instructions:hover {
    background-color: #94a3b8 !important;
    color: #1e293b !important;
}

/* Vibrant Navy Blue SUBMIT TEST Action Button */
.portal-sidebar-footer #btn-portal-submit {
    background-color: #1d2b53 !important; /* Deep vibrant Navy Blue matching the screenshot */
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    padding: 12px 15px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(29, 43, 83, 0.2) !important;
}

.portal-sidebar-footer #btn-portal-submit:hover {
    background-color: #14203e !important;
    transform: translateY(-0.5px);
}

/* Over overhaul for the Sidebar Show/Hide pull-tab handle */
@media (max-width: 768px) {
    .portal-sidebar-pull-tab {
        position: absolute !important;
        left: -30px !important; /* Float pull tab sticking left */
        top: auto !important;
        bottom: 160px !important; /* Ergonomic bottom position matching screenshot */
        transform: none !important;
        width: 30px !important;
        height: 60px !important;
        background-color: #3b4266 !important; /* matching header container background */
        border: 1.5px solid #4f5682 !important;
        border-right: none !important;
        border-radius: 8px 0 0 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.22) !important;
        z-index: 1010 !important;
        transition: all 0.2s ease !important;
    }

    .portal-sidebar-pull-tab:hover {
        background-color: #4f5682 !important;
    }

    .portal-sidebar-pull-tab i {
        color: #ffffff !important;
        font-size: 16px !important; /* Bolder, clearer chevron matching the screenshot */
    }
}

/* ==========================================================================
   ELEGANT DARK MODE SCHEMES OVERRIDES FOR OVERHAULED SIDEBAR ELEMENTS
   ========================================================================== */

[data-theme="dark"] .portal-sidebar {
    background-color: #111827 !important;
    border-left-color: #1f2937 !important;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .portal-sidebar-header {
    background-color: #1f2937 !important;
    border-bottom-color: #111827 !important;
}

[data-theme="dark"] .portal-sidebar-header .candidate-avatar {
    background-color: #111827 !important;
    color: #f9fafb !important;
    border-color: #374151 !important;
}

[data-theme="dark"] .portal-sidebar-header .candidate-subtitle {
    color: #9ca3af !important;
}

[data-theme="dark"] .cbt-legend-container {
    border-top-color: #374151 !important;
}

[data-theme="dark"] .cbt-legend-box.not-visited {
    background-color: #1f2937 !important;
    border-color: #4b5563 !important;
}

[data-theme="dark"] .cbt-legend-label {
    color: #9ca3af !important;
}

[data-theme="dark"] .sidebar-section-banner {
    background-color: #1e1b4b !important; /* Dark indigo */
    color: #e0e7ff !important;
    border-bottom-color: #312e81 !important;
}

[data-theme="dark"] .palette-container {
    background-color: #0f172a !important;
}

[data-theme="dark"] .palette-btn.not-visited {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .palette-btn.active {
    outline-color: #38bdf8 !important;
}

[data-theme="dark"] .portal-sidebar-footer {
    background-color: #111827 !important;
    border-top-color: #1f2937 !important;
}

[data-theme="dark"] .portal-sidebar-footer .btn-instructions {
    background-color: #374151 !important;
    color: #cbd5e1 !important;
    border-color: #4b5563 !important;
}

[data-theme="dark"] .portal-sidebar-footer .btn-instructions:hover {
    background-color: #4b5563 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .portal-sidebar-footer #btn-portal-submit {
    background-color: #3b4266 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .portal-sidebar-footer #btn-portal-submit:hover {
    background-color: #4f5682 !important;
}

[data-theme="dark"] .portal-sidebar-pull-tab {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
}

[data-theme="dark"] .portal-sidebar-pull-tab:hover {
    background-color: #374151 !important;
}

/* ==========================================================================
   PORTAL-ACTIVE & FULLSCREEN GLOBAL HEADER/FOOTER HIDING SECURITY OVERRIDES
   ========================================================================== */

/* Absolutely hide any main site navigation headers, admin bars, and footers when inside active exam views */
body.portal-active header:not(.portal-header):not(.portal-mobile-header),
body.portal-active .site-header,
body.portal-active #masthead,
body.portal-active #wpadminbar,
body.portal-active .wpadminbar,
body.portal-active footer:not(.portal-sidebar-footer):not(.portal-actions-footer) {
    display: none !important;
}

/* Force-hide standard headers, admin bars, and footers when in browser fullscreen mode */
:fullscreen header:not(.portal-header):not(.portal-mobile-header),
:fullscreen .site-header,
:fullscreen #masthead,
:fullscreen #wpadminbar,
:fullscreen .wpadminbar,
:fullscreen footer:not(.portal-sidebar-footer):not(.portal-actions-footer) {
    display: none !important;
}

:-webkit-full-screen header:not(.portal-header):not(.portal-mobile-header),
:-webkit-full-screen .site-header,
:-webkit-full-screen #masthead,
:-webkit-full-screen #wpadminbar,
:-webkit-full-screen .wpadminbar,
:-webkit-full-screen footer:not(.portal-sidebar-footer):not(.portal-actions-footer) {
    display: none !important;
}

/* Ensure Question Palette pull tab is unclipped on mobile screens and has correct z-index above backdrop */
@media (max-width: 768px) {
    .portal-sidebar {
        overflow: visible !important;
        z-index: 2015 !important; /* Higher than backdrop's 1999 to allow clicks on all sidebar contents */
    }
}

/* ==========================================================================
   PREMIUM GLASSMORPHIC CUSTOM POPUP MODAL STYLES (ALERT & CONFIRM)
   ========================================================================== */

.premium-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(15, 23, 42, 0); /* starts fully transparent */
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999 !important; /* extremely high z-index to overlay everything */
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease, -webkit-backdrop-filter 0.25s ease;
}

.premium-modal-backdrop.active {
    background-color: rgba(15, 23, 42, 0.45); /* modern glass dim */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.premium-modal-backdrop.fade-out {
    background-color: rgba(15, 23, 42, 0) !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
}

.premium-modal-card {
    background-color: #ffffff;
    width: 440px;
    max-width: 90%;
    border-radius: 16px;
    padding: 30px 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.premium-modal-card.active {
    transform: scale(1);
    opacity: 1;
}

.premium-modal-card.scale-out {
    transform: scale(0.9) !important;
    opacity: 0 !important;
}

/* Icon Wrapper Styles */
.premium-modal-icon-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
}

/* Color Themes for Icons */
.premium-modal-icon-wrapper.info {
    background-color: #eff6ff;
    color: #3b82f6;
}
.premium-modal-icon-wrapper.success {
    background-color: #ecfdf5;
    color: #10b981;
}
.premium-modal-icon-wrapper.warning {
    background-color: #fffbeb;
    color: #f59e0b;
}
.premium-modal-icon-wrapper.danger {
    background-color: #fef2f2;
    color: #ef4444;
}
.premium-modal-icon-wrapper.question {
    background-color: #eef2ff;
    color: #6366f1;
}

/* Title Styles */
.premium-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

/* Body / Message Content */
.premium-modal-body {
    font-size: 0.95rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 26px;
    text-align: center;
    white-space: normal;
    word-break: break-word;
}

/* Actions Container */
.premium-modal-actions {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 12px;
}

.premium-modal-actions.dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Premium Buttons */
.premium-modal-btn {
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    outline: none;
}

.premium-modal-btn:active {
    transform: scale(0.97);
}

.premium-modal-btn.btn-cancel {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.premium-modal-btn.btn-cancel:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

/* Button variants based on modal type */
.premium-modal-btn.btn-confirm.info {
    background-color: #3b82f6;
    color: #ffffff;
}
.premium-modal-btn.btn-confirm.info:hover {
    background-color: #2563eb;
}

.premium-modal-btn.btn-confirm.success {
    background-color: #10b981;
    color: #ffffff;
}
.premium-modal-btn.btn-confirm.success:hover {
    background-color: #059669;
}

.premium-modal-btn.btn-confirm.warning {
    background-color: #f59e0b;
    color: #ffffff;
}
.premium-modal-btn.btn-confirm.warning:hover {
    background-color: #d97706;
}

.premium-modal-btn.btn-confirm.danger {
    background-color: #ef4444;
    color: #ffffff;
}
.premium-modal-btn.btn-confirm.danger:hover {
    background-color: #dc2626;
}

.premium-modal-btn.btn-confirm.question {
    background-color: #6366f1;
    color: #ffffff;
}
.premium-modal-btn.btn-confirm.question:hover {
    background-color: #4f46e5;
}

/* Dark Theme overrides */
[data-theme="dark"] .premium-modal-card {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .premium-modal-title {
    color: #f8fafc;
}

[data-theme="dark"] .premium-modal-body {
    color: #94a3b8;
}

[data-theme="dark"] .premium-modal-btn.btn-cancel {
    background-color: #334155;
    color: #cbd5e1;
    border: 1px solid #475569;
}

[data-theme="dark"] .premium-modal-btn.btn-cancel:hover {
    background-color: #475569;
    color: #ffffff;
}

/* Mobile Responsiveness for Modal actions */
@media (max-width: 480px) {
    .premium-modal-card {
        padding: 24px 18px;
    }
    .premium-modal-actions.dual {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .premium-modal-btn {
        width: 100%;
        padding: 10px 16px;
    }
}

/* ==========================================================================
   STATIC PREMIUM MODAL ANIMATION SYSTEM (.hidden override)
   ========================================================================== */

/* Smooth fade and blur when static modal is visible (i.e. not .hidden) */
.premium-modal-backdrop:not(.hidden) {
    background-color: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Smooth spring scale-in when static modal is visible */
.premium-modal-backdrop:not(.hidden) .premium-modal-card {
    transform: scale(1);
    opacity: 1;
    animation: warningModalScaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ==========================================================================
   IMAGE UPLOAD & CLIPBOARD DISPLAY IN CBT PORTAL
   ========================================================================== */

.portal-question-image-wrapper {
    margin-top: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.portal-question-image {
    max-height: 280px;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-md, 8px);
    border: 1.5px solid var(--border-color, #e2e8f0);
    background: var(--bg-card, #ffffff);
    padding: 6px;
    cursor: zoom-in;
    transition: all var(--transition-fast, 0.2s) ease;
    box-shadow: var(--shadow-sm);
}

.portal-question-image:hover {
    border-color: var(--primary, #a82020);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.portal-option-image-wrapper {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.portal-option-image {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm, 4px);
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-card, #ffffff);
    padding: 4px;
    cursor: zoom-in;
    transition: all var(--transition-fast, 0.2s) ease;
}

.portal-option-image:hover {
    border-color: var(--primary, #a82020);
    transform: translateY(-1px);
}

.portal-explanation-image-wrapper {
    margin-top: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.portal-explanation-image {
    max-height: 200px;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-md, 8px);
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-card, #ffffff);
    padding: 4px;
    cursor: zoom-in;
    transition: all var(--transition-fast, 0.2s) ease;
}

.portal-explanation-image:hover {
    border-color: var(--primary, #a82020);
    transform: translateY(-1px);
}

/* Lightbox preview styling for CBT Student Portal */
.img-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.9);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.img-lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.img-lightbox-content {
    max-width: 92%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-lightbox-modal.active .img-lightbox-content {
    transform: scale(1);
}

.img-lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.85;
}

.img-lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1) rotate(90deg);
}

.portal-image-no-zoom {
    cursor: default !important;
}

/* ==========================================
   PREMIUM EXAM ANALYTICS DASHBOARD CARD
   ========================================== */
.analytics-dashboard-card {
    transition: transform var(--transition-normal);
}

.analytics-visuals-grid {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 24px;
    margin-bottom: 25px;
}

@media (max-width: 900px) {
    .analytics-visuals-grid {
        grid-template-columns: 1fr;
    }
}

.gauges-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gauge-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all var(--transition-normal);
}

.gauge-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.03);
}

.standing-gauge-box {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.02) 0%, rgba(30, 41, 59, 0.05) 100%);
}

.stats-gauge-box {
    background: #ffffff;
}

.glowing-ring-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto;
}

.ring-center-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ring-val-percent {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
}

.ring-val-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.progress-ring-bar {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 1s ease-out;
}

.gauge-details {
    margin-top: 10px;
}

.micro-stat {
    width: 100%;
}

.micro-stat-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 600;
}

.micro-stat-header strong {
    color: var(--text-main);
}

.micro-stat-bar-bg {
    background-color: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.micro-stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
}

.accuracy-fill {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.speed-fill {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.bell-curve-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

.bell-curve-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.bell-curve-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
}

.bell-curve-insight {
    font-size: 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.bell-curve-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 5px;
    padding: 0 10px;
}

.pulse-marker {
    transform-origin: center;
    animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.performance-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    border: 1px solid transparent;
}

.badge-platinum {
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    color: #334155;
    border-color: #cbd5e1;
}

.badge-gold {
    background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 100%);
    color: #78350f;
    border-color: #f59e0b;
}

.badge-silver {
    background: linear-gradient(135deg, #f3f4f6 0%, #9ca3af 100%);
    color: #1f2937;
    border-color: #9ca3af;
}

.badge-bronze {
    background: linear-gradient(135deg, #ffedd5 0%, #b45309 100%);
    color: #78350f;
    border-color: #d97706;
}

.badge-needs-improvement {
    background: linear-gradient(135deg, #fee2e2 0%, #ef4444 100%);
    color: #7f1d1d;
    border-color: #fca5a5;
}

.analytics-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.insight-tag {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.insight-tag i {
    font-size: 0.85rem;
}

.insight-tag.positive {
    border-color: rgba(16, 185, 129, 0.2);
    background-color: rgba(16, 185, 129, 0.04);
    color: #065f46;
}

.insight-tag.neutral {
    border-color: rgba(59, 130, 246, 0.2);
    background-color: rgba(59, 130, 246, 0.04);
    color: #1e40af;
}

.insight-tag.warning {
    border-color: rgba(245, 158, 11, 0.2);
    background-color: rgba(245, 158, 11, 0.04);
    color: #92400e;
}

/* Mobile responsive card layouts for Sectional Performance Breakdown Table */
@media (max-width: 768px) {
    /* Reset table wrapper styling on mobile */
    .result-card .attempts-table-wrapper {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .sectional-breakdown-table, 
    .sectional-breakdown-table tbody, 
    .sectional-breakdown-table tr, 
    .sectional-breakdown-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .sectional-breakdown-table thead {
        display: none !important;
    }

    .sectional-breakdown-table tr {
        background: var(--bg-card) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: var(--radius-lg) !important;
        padding: 18px !important;
        margin-bottom: 16px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    }

    .sectional-breakdown-table tr:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.05) !important;
        border-color: var(--primary-light) !important;
    }

    /* Section Header Row */
    .sectional-breakdown-table td:nth-child(1) {
        font-size: 1.12rem !important;
        font-weight: 800 !important;
        color: var(--secondary) !important;
        border-bottom: 2px solid var(--primary-light) !important;
        padding: 0 0 10px 0 !important;
        margin-bottom: 12px !important;
        text-align: left !important;
    }

    /* Row Content Keys/Values */
    .sectional-breakdown-table td:not(:first-child) {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        font-size: 0.88rem !important;
        border: none !important;
        text-align: right !important;
    }

    /* Inject custom responsive labels on the left */
    .sectional-breakdown-table td:nth-child(2)::before { content: "Total Questions"; font-weight: 700; color: var(--text-muted); }
    .sectional-breakdown-table td:nth-child(3)::before { content: "Correct Answers"; font-weight: 700; color: var(--text-muted); }
    .sectional-breakdown-table td:nth-child(4)::before { content: "Incorrect Answers"; font-weight: 700; color: var(--text-muted); }
    .sectional-breakdown-table td:nth-child(5)::before { content: "Accuracy Rate"; font-weight: 700; color: var(--text-muted); }
    .sectional-breakdown-table td:nth-child(6)::before { content: "Subject Rating"; font-weight: 700; color: var(--text-muted); }
    .sectional-breakdown-table td:nth-child(7)::before { content: "Performance Gauge"; font-weight: 700; color: var(--text-muted); }

    /* Fix the global nth-child(6) hidden selector on mobile results tables */
    .result-card .sectional-breakdown-table th:nth-child(6),
    .result-card .sectional-breakdown-table td:nth-child(6) {
        display: flex !important;
    }

    /* Align and scale dynamic gauge progress bar inside td */
    .sectional-breakdown-table td:nth-child(7) > div {
        width: 140px !important;
        margin: 0 !important;
    }
}
