:root {
    --brand-primary: #008751; /* Official Nigerian Emerald Green */
    --brand-dark: #005a36;
    --accent-gold: #FFB000;
    --background-slate: #F8FAFC;
    --surface-pure: #FFFFFF;
    --text-slate-heavy: #0F172A;
    --text-slate-muted: #64748B;
    --border-slate-light: #E2E8F0;
    --danger-crimson: #EF4444;
    --radius-standard: 12px;
    --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --font-stack: 'Plus Jakarta Sans', sans-serif;
}

* { margin:0; padding:0; box-sizing: border-box; font-family: var(--font-stack); }
body { background: var(--background-slate); color: var(--text-slate-heavy); overflow-x: hidden; }

/* Dashboard Structural Layout Map */
.app-layout { display: flex; min-height: 100vh; }
.app-sidebar { width: 280px; background: var(--surface-pure); border-right: 1px solid var(--border-slate-light); padding: 32px 24px; display: flex; flex-direction: column; position: fixed; height: 100vh; }
.app-main { margin-left: 280px; flex: 1; padding: 40px; max-width: 1200px; }

.sidebar-brand h2 { color: var(--brand-primary); font-weight: 800; font-size: 24px; margin-bottom: 40px; }
.sidebar-brand span { color: var(--text-slate-heavy); }
.sidebar-menu { display: flex; flex-direction: column; gap: 8px; }

.menu-item { background: transparent; border: none; padding: 14px 16px; border-radius: var(--radius-standard); text-align: left; font-size: 15px; font-weight: 600; color: var(--text-slate-muted); cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.menu-item:hover, .menu-item.active { background: #F0FDF4; color: var(--brand-primary); }
.menu-item.login-btn { margin-top: auto; background: var(--text-slate-heavy); color: var(--surface-pure); justify-content: center; }
.menu-item.login-btn:hover { background: var(--brand-primary); color: var(--surface-pure); }

/* Grid Panels and Hero Callouts */
.hero-card { background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark)); color: var(--surface-pure); padding: 40px; border-radius: var(--radius-standard); margin-bottom: 32px; box-shadow: var(--shadow-premium); }
.hero-card h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 32px; }
.panel-card { background: var(--surface-pure); border-radius: var(--radius-standard); padding: 32px; border: 1px solid var(--border-slate-light); box-shadow: var(--shadow-premium); }

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.badge { padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.badge.live { background: #FEF2F2; color: var(--danger-crimson); }
.badge.verified { background: #ECFDF5; color: var(--brand-primary); }

/* Data Feeds list */
.data-feed { list-style: none; }
.data-feed li { padding: 16px 0; border-bottom: 1px solid var(--border-slate-light); font-weight: 500; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.data-feed li:last-child { border: none; }

/* Form Elements */
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.input-wrap { flex: 1; display: flex; flex-direction: column; margin-bottom: 20px; }
.input-wrap label { font-size: 14px; font-weight: 600; color: var(--text-slate-heavy); margin-bottom: 8px; }
input, select { padding: 14px; border: 1.5px solid var(--border-slate-light); border-radius: 8px; font-size: 15px; font-weight: 500; transition: all 0.2s ease; background-color: #FAFAFA; width: 100%; }
input:focus, select:focus { border-color: var(--brand-primary); outline: none; background: var(--surface-pure); }

/* Unified Enterprise Action Triggering Arrays */
.action-btn { background: var(--brand-primary); color: var(--surface-pure); padding: 14px 28px; border: none; border-radius: 8px; font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.2s ease; text-align: center; }
.action-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.action-btn.outline { background: transparent; border: 2px solid var(--brand-primary); color: var(--brand-primary); }
.action-btn.outline:hover { background: #F0FDF4; }
.action-btn.outline.warning { border-color: var(--accent-gold); color: var(--accent-gold); }
.action-btn.outline.warning:hover { background: #FFFBEB; }
.action-btn.danger { background: var(--danger-crimson); }
.action-btn.danger:hover { background: #DC2626; }
.full-width { width: 100%; display: block; }

/* Real JAMB CBT Split Workspace Mapping UI */
.cbt-grid-interface { display: grid; grid-template-columns: 1fr 340px; gap: 32px; animation: fadeIn 0.4s ease; }
.cbt-header-stats { display: flex; justify-content: space-between; margin-bottom: 20px; }
.stat-pill { background: #F1F5F9; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.stat-pill.timer-alert { background: #FEF2F2; color: var(--danger-crimson); }
.question-number-tag { font-size: 13px; font-weight: 800; text-transform: uppercase; color: var(--brand-primary); letter-spacing: 0.5px; margin-bottom: 12px; }
.main-question { font-size: 18px; font-weight: 600; margin-bottom: 24px; line-height: 1.5; }

.options-vertical-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.cbt-option-wrapper { display: flex; align-items: center; padding: 16px; border: 1.5px solid var(--border-slate-light); border-radius: 8px; cursor: pointer; transition: all 0.2s ease; font-weight: 500; }
.cbt-option-wrapper:hover { border-color: var(--brand-primary); background: #F0FDF4; }
.cbt-option-wrapper.selected { border-color: var(--brand-primary); background: var(--brand-primary); color: white; }
.cbt-option-wrapper input { width: auto; margin-right: 14px; display: none; }

.workspace-actions { display: flex; justify-content: space-between; gap: 16px; }
.matrix-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.matrix-node { padding: 12px 0; background: #F1F5F9; border: none; border-radius: 6px; font-weight: 700; font-size: 14px; text-align: center; cursor: pointer; transition: all 0.2s ease; }
.matrix-node.answered { background: var(--brand-primary); color: white; }
.matrix-node.flagged { background: var(--accent-gold); color: white; }
.matrix-node.current { border-right: 2px solid var(--text-slate-heavy); box-shadow: 0 0 0 2px var(--text-slate-heavy); }

/* Navigation Routing Views Mapping logic */
.portal-panel { display: none; }
.portal-panel.active { display: block; animation: fadeIn 0.3s ease; }
.hidden { display: none !important; }
.divider { border: 0; border-top: 1px solid var(--border-slate-light); margin: 24px 0; }

/* Calculations Framework Presentation Panel components */
.calc-row-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.action-row-group { display: flex; gap: 16px; margin-top: 20px; margin-bottom: 24px; }
.result-display-panel { background: #F8FAFC; border: 1.5px dashed var(--brand-primary); padding: 18px; border-radius: 8px; font-size: 18px; font-weight: 800; text-align: center; color: var(--brand-primary); }

/* ==========================================================================
   UPDATED PREMIUM RESPONSIVE ENGINE (Fixes Missing Mobile Menu)
   ========================================================================== */

@media(max-width: 992px) {
    /* 1. Transform Vertical Sidebar into a Modern App Bottom Navigation Bar */
    .app-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 68px;
        background: var(--surface-pure);
        border-right: none;
        border-top: 1px solid var(--border-slate-light);
        padding: 0 8px;
        flex-direction: row;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    }
    
    /* Hide branding layout on bottom menu to save space */
    .sidebar-brand { 
        display: none; 
    }
    
    /* Align buttons horizontally across the mobile viewport */
    .sidebar-menu {
        flex-direction: row;
        width: 100%;
        height: 100%;
        gap: 2px;
        justify-content: space-around;
        align-items: center;
    }
    
    /* Format buttons into uniform touch-friendly mobile app navigation tabs */
    .menu-item {
        flex: 1;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        padding: 6px 2px;
        font-size: 10px;
        font-weight: 700;
        text-align: center;
        border-radius: 8px;
        height: calc(100% - 10px);
        white-space: nowrap;
    }
    
    .menu-item .icon {
        font-size: 18px;
        margin: 0;
    }
    
    /* Match structural login style with other navigation tabs on mobile screens */
    .menu-item.login-btn {
        margin-top: 0;
        background: transparent;
        color: var(--text-slate-muted);
    }
    .menu-item.login-btn:hover, .menu-item.login-btn.active {
        background: #F0FDF4;
        color: var(--brand-primary);
    }

    /* 2. Adjust content workspace to prevent layout overlapping behind fixed navbar */
    .app-main { 
        margin-left: 0; 
        padding: 20px 16px 90px 16px; /* 90px padding at bottom keeps text safe from navbar overlay */
    }
    
    /* 3. Drop layout containers into responsive single-column feeds */
    .cbt-grid-interface { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; gap: 24px; }
    
    .hero-card { padding: 32px 20px; }
    .hero-card h1 { font-size: 26px; }
}

/* 4. Fine-Tuning Optimization Layer for Smart Phone Layouts */
@media(max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .calc-row-inputs {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .workspace-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }
    .workspace-actions .action-btn {
        width: 100%;
    }
    .matrix-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.adsbygoogle{
    display:block; 
    width:100%; 
    height:90px;
}

@keyframes colors {
    0%{
        color: blue;
    }
    25%{
        color: green;
    }
    50%{
        color: red;
    }
    75%{
        color: chartreuse;
    }
}

.sidebar-brand h2 span{
    animation: colors 8s linear .5s infinite alternate both ;
}