/* GradeUP PRO - Unified Dashboard Design System (White & Blue Palette) */
:root {
    --gu-blue-900: #1e3a8a;
    --gu-blue-800: #1e40af;
    --gu-blue-600: #2563eb;
    --gu-blue-500: #3b82f6;
    --gu-blue-100: #dbeafe;
    --gu-blue-50: #eff6ff;
    --gu-slate-900: #0f172a;
    --gu-slate-700: #334155;
    --gu-slate-500: #64748b;
    --gu-slate-200: #e2e8f0;
    --gu-slate-100: #f1f5f9;
    --gu-slate-50: #f8fafc;
    --gu-emerald-600: #059669;
    --gu-emerald-500: #10b981;
    --gu-amber-500: #f59e0b;
    --gu-amber-100: #fef3c7;
    --gu-red-500: #ef4444;
}

.gu-dashboard-wrapper {
    background-color: var(--gu-slate-50);
    min-height: 100vh;
    padding-bottom: 5rem;
}

/* Mobile-Specific Canvas Background (#F6F8FC) & Elevation (1:1 with AI Design Reference) */
@media (max-width: 991.98px) {
    body,
    .app-main,
    .app-content,
    .gu-dashboard-wrapper {
        background-color: #f6f8fc !important;
    }
    .app-content {
        padding: 0 !important;
    }
    .gu-dashboard-wrapper {
        padding: 12px 18px 80px 18px !important;
    }
    .app-topbar {
        background-color: #ffffff !important;
        border-bottom: 1px solid #f1f5f9 !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02) !important;
        padding: 0 18px !important;
    }
}

/* Card Foundations */
.gu-dash-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 6px 16px -2px rgba(15, 23, 42, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gu-dash-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 20px -2px rgba(37, 99, 235, 0.08);
}

/* Mobile Royal Blue Dominant Hero Card (1:1 with AI Design Reference) */
.gu-mobile-hero-blue {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 22px !important;
    box-shadow: 0 10px 25px -4px rgba(29, 78, 216, 0.35) !important;
}

.gu-mobile-hero-blue h1,
.gu-mobile-hero-blue h2,
.gu-mobile-hero-blue h3,
.gu-mobile-hero-blue h4,
.gu-mobile-hero-blue h5,
.gu-mobile-hero-blue h6,
.gu-mobile-hero-blue p,
.gu-mobile-hero-blue span,
.gu-mobile-hero-blue div {
    color: #ffffff !important;
}

/* Mobile Active Course Pill (1:1 with AI Design Reference) */
.gu-active-course-pill {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25) !important;
}

.gu-active-course-pill span,
.gu-active-course-pill div,
.gu-active-course-pill i {
    color: #ffffff !important;
}

/* Top Hero & CBT Banner (Royal Blue) */
.gu-cbt-hero-banner {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.22);
}

.gu-cbt-countdown-box {
    background: rgba(255, 255, 255, 0.95);
    color: #1e3a8a;
    font-weight: 800;
    padding: 0.5rem 0.85rem;
    border-radius: 0.5rem;
    letter-spacing: 0.05em;
    font-size: 1.15rem;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Unified Segmented Metric Capsule (Apple Health / Revolut style) */
.gu-segmented-capsule {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 6px 16px -2px rgba(15, 23, 42, 0.04);
    padding: 0.75rem 0.5rem;
    transition: all 0.2s ease;
}

.gu-segmented-capsule:hover {
    box-shadow: 0 4px 20px -2px rgba(37, 99, 235, 0.08);
    border-color: #cbd5e1;
}

.gu-segment-divider {
    border-right: 1px solid #f1f5f9;
}

/* Universal Premium Card Token across Dashboards */
.gu-card-premium {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 6px 16px -2px rgba(15, 23, 42, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gu-card-premium:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 20px -2px rgba(37, 99, 235, 0.08);
}

/* Micro-Metrics (Legacy & Fallback) */
.gu-metric-card {
    background: #ffffff;
    border: 1px solid var(--gu-slate-200);
    border-radius: 0.875rem;
    padding: 0.85rem 0.5rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.gu-metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--gu-blue-500);
}

.gu-metric-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gu-slate-900);
    line-height: 1.2;
}

.gu-metric-label {
    font-size: 0.72rem;
    color: var(--gu-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.25rem;
}

/* Checklist Items */
.gu-mission-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid var(--gu-slate-200);
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    transition: background 0.15s ease;
}

.gu-mission-item:hover {
    background: var(--gu-blue-50);
}

.gu-mission-item.completed {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Floating AI Doubt Button */
.gu-floating-doubt-btn {
    position: fixed;
    right: 1.25rem;
    bottom: 5.5rem;
    z-index: 10040;
    background: #f59e0b;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gu-floating-doubt-btn:hover {
    transform: scale(1.04);
    color: #000000;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
}

/* Radar & Canvas Containers */
.gu-radar-container {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

/* Frosted Glass Acrylic Topbar */
.app-topbar {
    background: rgba(255, 255, 255, 0.90) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02) !important;
    overflow: visible !important;
}

/* Pulsing Status Dot */
@keyframes guPulseAnimation {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.gu-pulse-live-red {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    animation: guPulseAnimation 2s infinite;
}

@keyframes guPulseGreenAnimation {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.gu-pulse-live-green {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    animation: guPulseGreenAnimation 2s infinite;
}

/* Tactile Button Micro-Interactions */
.gu-btn-tactile {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gu-btn-tactile:hover {
    transform: translateY(-1px);
}
.gu-btn-tactile:active {
    transform: translateY(1px) scale(0.98);
}

/* Responsive Container Queries */
@container (min-width: 768px) {
    .gu-split-col {
        display: flex;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Cross-Platform High-Contrast Hero & Contained Metric KPI Safety Invariants
   ========================================================================== */
.gu-hero-high-contrast {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #1e40af 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.gu-hero-high-contrast h1,
.gu-hero-high-contrast h2,
.gu-hero-high-contrast h3,
.gu-hero-high-contrast h4,
.gu-hero-high-contrast h5,
.gu-hero-high-contrast h6 {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

.gu-hero-high-contrast p {
    color: #f8fafc !important;
    font-weight: 500 !important;
}

.gu-kpi-clamp-val {
    font-size: clamp(1.4rem, 2vw, 1.85rem) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
}

.gu-kpi-badge-pill {
    white-space: nowrap !important;
    max-width: 100% !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
}

/* ==========================================================================
   Live Mock Hero Card — Option 1 Institutional White Cockpit Invariants
   ========================================================================== */
.gu-live-mock-hero-white {
    background: #ffffff !important;
    border: 1.5px solid #bfdbfe !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08) !important;
}

.gu-live-mock-hero-white h2 {
    color: #0f172a !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

.gu-live-mock-hero-white p {
    color: #475569 !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
}

.gu-live-mock-hero-white .badge-live-pulse {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
    font-weight: 700 !important;
}

.gu-meta-pill-blue {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1e40af !important;
    font-weight: 700 !important;
}

.gu-meta-pill-amber {
    background: #fefce8 !important;
    border: 1px solid #fef08a !important;
    color: #854d0e !important;
    font-weight: 700 !important;
}

.gu-meta-pill-green {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
    font-weight: 700 !important;
}

.gu-meta-pill-red {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
    font-weight: 700 !important;
}

/* Desktop Topbar Layout & Profile Dropdown Hardening */
.app-topbar {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
}

.gu-header-container {
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-right: 0.75rem !important;
}

.gu-topbar-right {
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.gu-topbar-right .dropdown {
    flex-shrink: 0 !important;
}

.gu-user-profile-btn,
.gu-user-avatar-mobile {
    flex-shrink: 0 !important;
}

