﻿/* CSS Reset & Variables */
:root {
    --bg-dark: #0a0e17;
    --card-bg: rgba(16, 24, 40, 0.85);
    --card-border: rgba(45, 62, 90, 0.6);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    /* Crimson Logo Accent */
    --logo-red: #ef4444;
    --logo-red-glow: rgba(239, 68, 68, 0.6);

    /* Gold / Amber Accents */
    --gold-glow: #eab308;
    --gold-gradient-start: #b8860b;
    --gold-gradient-end: #fbbf24;
    
    /* Cyan / Teal Accents */
    --cyan-glow: #06b6d4;
    --cyan-active: #22d3ee;
    
    /* Deep Slate Theme Tokens */
    --slate-deep: #1e293b;
    --slate-border: #334155;
    
    /* Risk / Status Colors */
    --status-green: #22c55e;
    --status-yellow: #eab308;
    --status-red: #ef4444;
    --status-red-bg: rgba(239, 68, 68, 0.15);
    --status-red-border: rgba(239, 68, 68, 0.35);

    /* Card styling */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 10%, rgba(239, 68, 68, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto; /* Re-enabled scrolling so all content & blockers are fully readable */
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main Dashboard Viewport */
.dashboard-viewport {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem;
}

/* Status Card Shell (Self-Contained Unit) */
.status-card {
    width: 100%;
    max-width: 440px;
    background: #0f1623;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(239, 68, 68, 0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    position: relative;
}

/* Card Integrated Header Bar */
.card-top-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Custom Husef Crimson Red Logo Badge */
.brand-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.brand-logo-img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.9);
}

/* Single Container Stacked Title (WEB DESIGN atop PROJECT APP) */
.brand-title-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 0.96;
    white-space: nowrap;
    flex-shrink: 0;
}

.brand-line-top {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan-active);
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.brand-line-bottom {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.92rem;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #f1f5f9;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Integrated Project Selector Container */
.project-selector-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.project-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 16px;
    padding: 0.25rem 0.65rem;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
    max-width: 215px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.project-selector-wrapper:hover {
    border-color: var(--cyan-active);
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.3);
}

.select-icon {
    color: var(--cyan-active);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.project-select-dropdown {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    outline: none;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.project-select-dropdown option {
    background: #0f1623;
    color: #ffffff;
    padding: 0.5rem;
}

.select-hint-label {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--cyan-active);
    letter-spacing: 0.03em;
    opacity: 0.85;
    text-align: center;
}

.card-gear-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.card-gear-btn:hover {
    color: #ffffff;
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--cyan-active);
    transform: rotate(45deg);
}

/* Buttons */
.btn {
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Gauge Section with Top-Left Percentage Display */
.gauge-section {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 0.25rem;
}

.gauge-top-left-display {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Percentage Display matching Inter Black (900) Title Typography */
.gauge-percentage {
    font-size: 2.85rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: baseline;
}

/* Red Number Count (Matching Logo Red) */
.gauge-num {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.6), 0 0 40px rgba(239, 68, 68, 0.3);
}

/* Pure White Percent Symbol % */
.percent-symbol {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin-left: 1px;
}

.gauge-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    margin-top: 0.15rem;
}

/* Speedometer Gauge Container */
.gauge-container {
    width: 100%;
    max-width: 320px;
    height: 170px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.gauge-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.gauge-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 16;
    stroke-linecap: round;
}

.gauge-fill {
    fill: none;
    stroke: url(#gaugeGradient);
    stroke-width: 16;
    stroke-linecap: round;
    stroke-dasharray: 282.7;
    stroke-dashoffset: 282.7;
    filter: drop-shadow(0px 0px 12px rgba(250, 204, 21, 0.8));
}

/* Automotive Speedometer Ticks & Labels */
.speed-tick-line {
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.speed-tick-line.major-tick {
    stroke: #ffffff;
    stroke-width: 2.2;
}

.speed-tick-line.minor-tick {
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 1;
}

.speed-tick-label {
    font-size: 7px;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    fill: #cbd5e1;
    text-anchor: middle;
    dominant-baseline: central;
    filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.95));
}

.speed-tick-label.phase-milestone {
    font-size: 8px;
    font-weight: 900;
    fill: #ffffff;
}

/* Movie Race Car Needle Shake */
.needle-group.race-car-shake {
    animation: raceCarEngineVibrate 0.08s infinite ease-in-out alternate;
}

@keyframes raceCarEngineVibrate {
    0% {
        filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.9));
    }
    100% {
        filter: drop-shadow(0 0 14px rgba(239, 68, 68, 1));
    }
}

.car-needle-blade {
    fill: #ef4444;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.9));
}

.car-needle-glow {
    stroke: #ff7878;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.needle-hub-outer {
    fill: #1e293b;
    stroke: rgba(239, 68, 68, 0.7);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.6));
}

.needle-hub-logo {
    box-shadow: 0 0 10px #ef4444;
}

/* Automotive Miles / Hours Digital Odometer Box */
.odometer-box {
    position: absolute;
    bottom: -15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.8), 0 4px 10px rgba(0,0,0,0.4);
    z-index: 6;
}

.odometer-label {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 2px;
}

.odometer-digits {
    display: flex;
    align-items: center;
    gap: 3px;
    font-family: 'Share Tech Mono', 'Orbitron', monospace;
}

.digit-box {
    background: #141c2b;
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.8);
    transition: transform 0.2s ease;
}

.digit-box.organic-spin {
    animation: organicDigitSpin 0.12s infinite ease-in-out;
}

@keyframes organicDigitSpin {
    0% { transform: rotateX(0deg); opacity: 1; }
    50% { transform: rotateX(-90deg); opacity: 0.4; }
    100% { transform: rotateX(-180deg); opacity: 1; }
}

.digit-box.decimal {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.digit-dot {
    color: #facc15;
    font-weight: 800;
    font-size: 0.9rem;
}

.odometer-unit {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-left: 4px;
}

/* SEGMENTED PROGRESS BAR PHASE TRACKER */
.phase-stepper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-top: 0.75rem;
}

.phase-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.step-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #94a3b8;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-transform: uppercase;
}

.step-bar {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.step-bar-fill {
    height: 100%;
    border-radius: 6px;
    width: 0%;
    position: relative;
    overflow: hidden;
}

.liquid-wave {
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.45) 40%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0.45) 60%, 
        rgba(255, 255, 255, 0) 100%
    );
    animation: liquidFlow 2.2s infinite linear;
    mix-blend-mode: overlay;
}

@keyframes liquidFlow {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(50%) rotate(360deg); }
}

.phase-step.completed .step-label {
    color: #4ade80;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.3);
}
.phase-step.completed .step-bar {
    border-color: rgba(34, 197, 94, 0.6);
}
.phase-step.completed .step-bar-fill {
    background: linear-gradient(90deg, #15803d 0%, #22c55e 70%, #4ade80 100%);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.phase-step.active .step-label {
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}
.phase-step.active .step-bar {
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}
.phase-step.active .step-bar-fill {
    background: linear-gradient(90deg, #0284c7 0%, #06b6d4 60%, #38bdf8 100%);
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.6), 0 0 12px rgba(6, 182, 212, 0.6);
}

.phase-step.upcoming .step-label {
    color: #94a3b8;
    opacity: 0.85;
}
.phase-step.upcoming .step-bar-fill {
    width: 0% !important;
}

/* RISK INDICATOR BADGE & DELAYED REVEAL */
.risk-badge-container {
    display: flex;
    justify-content: center;
    margin-top: -0.1rem;
    min-height: 32px;
}

.risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.risk-badge.hidden-risk {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(0.8) translateY(-4px) !important;
}

.risk-badge.reveal-risk {
    opacity: 1 !important;
    visibility: visible !important;
    animation: riskFadeInPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes riskFadeInPop {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(-6px);
        filter: brightness(2);
    }
    70% {
        opacity: 1;
        transform: scale(1.15) translateY(0);
        filter: brightness(1.3);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: brightness(1);
    }
}

.risk-yellow {
    color: #facc15;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.3);
}

.risk-yellow .risk-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #facc15;
    box-shadow: 0 0 10px #facc15, 0 0 20px #facc15;
}

.risk-green {
    color: #4ade80;
}
.risk-green .risk-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
}

.risk-red {
    color: #f87171;
}
.risk-red .risk-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f87171;
    box-shadow: 0 0 10px #f87171;
}

/* Metrics Grid (2x2) */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.metric-card {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 96px;
    transition: transform 0.2s, border-color 0.2s;
}

.metric-card:hover {
    border-color: rgba(56, 189, 248, 0.5);
}

.metric-card.card-alert {
    border-color: var(--status-red-border);
    background: rgba(239, 68, 68, 0.06);
}

.card-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-main-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0.2rem 0;
}

.card-sub-foot {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.assignee-name {
    color: var(--text-muted);
}

.lead-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* FLIP CLOCK ANIMATIONS */
.flip-clock-wrapper {
    perspective: 700px;
    display: inline-block;
    width: 100%;
}

.flip-card-down {
    transform-origin: center top;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    display: inline-block;
}

.flip-card-down.fast-spin-stage {
    animation: organicFastTumble 0.12s infinite ease-in-out;
}

@keyframes organicFastTumble {
    0% {
        transform: rotateX(0deg);
        filter: brightness(1.2) blur(0.5px);
    }
    50% {
        transform: rotateX(-90deg);
        filter: brightness(0.6) blur(1.5px);
        opacity: 0.5;
    }
    100% {
        transform: rotateX(-180deg);
        filter: brightness(1) blur(0.5px);
    }
}

.flip-card-down.decel-flap-step {
    animation: organicDecelFlap 0.25s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes organicDecelFlap {
    0% {
        transform: rotateX(0deg);
        filter: brightness(1);
    }
    20% {
        transform: rotateX(10deg);
        filter: brightness(1.1);
    }
    80% {
        transform: rotateX(-100deg);
        filter: brightness(0.7);
    }
    100% {
        transform: rotateX(-90deg);
        filter: brightness(0.6);
        opacity: 0.4;
    }
}

.flip-card-down.soft-swing-settle {
    animation: pendulumSwingSettle 2.0s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes pendulumSwingSettle {
    0% {
        transform: rotateX(-90deg);
        filter: brightness(0.5);
        opacity: 0.3;
    }
    25% {
        transform: rotateX(24deg);
        filter: brightness(1.2);
        opacity: 1;
    }
    45% {
        transform: rotateX(-14deg);
        filter: brightness(0.9);
    }
    65% {
        transform: rotateX(8deg);
        filter: brightness(1.05);
    }
    82% {
        transform: rotateX(-3deg);
    }
    94% {
        transform: rotateX(1deg);
    }
    100% {
        transform: rotateX(0deg);
        filter: brightness(1);
        opacity: 1;
    }
}

.current-phase-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
}

/* Budget tile */
.budget-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0.3rem;
}

.dim {
    color: var(--text-dim);
    font-size: 0.72rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d97706 0%, #facc15 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Due Date Alert */
.due-date-val {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0.2rem 0;
}

.due-date-val.overdue {
    color: #f87171;
}

/* MOVIE TYPEWRITER DRAMA (BLOCKERS & RISKS CARD) */
.blockers-card {
    background: #ffffff;
    color: #0f172a;
    border-radius: var(--radius-md);
    padding: 1.1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
}

.blockers-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: inline-block;
}

.typewriter-cursor {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background-color: #ef4444;
    margin-left: 3px;
    vertical-align: middle;
    animation: typewriterBlink 0.6s infinite alternate;
}

@keyframes typewriterBlink {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.blockers-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.blockers-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #334155;
    font-weight: 500;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    min-height: 1.35em;
}

.blocker-icon {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.positive-icon {
    color: #16a34a;
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.blockers-list li.positive-item {
    color: #15803d;
    background: rgba(34, 197, 94, 0.08);
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #22c55e;
}

.blockers-list li.positive-item strong {
    color: #166534;
    font-weight: 800;
}

.blockers-list strong {
    color: #dc2626;
    font-weight: 800;
}

/* Control Drawer */
.control-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: #111827;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    z-index: 100;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.control-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
}

.icon-btn:hover {
    color: #fff;
}

.drawer-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.drawer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0.5rem 0;
}

.section-subtitle {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--cyan-active);
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* Form Controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-row {
    display: flex;
    gap: 0.75rem;
}

.form-group.col {
    flex: 1;
}

.form-label, label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.85rem;
    transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--cyan-active);
}

.code-font {
    font-family: monospace;
    font-size: 0.75rem;
    background: #090d16;
}

.range-slider {
    width: 100%;
    accent-color: var(--gold-glow);
    cursor: pointer;
}

/* Segmented button */
.segmented-control {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.segment-btn {
    flex: 1;
    padding: 0.4rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.segment-btn.active {
    background: var(--cyan-active);
    color: #0f172a;
}

.help-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.full-width {
    width: 100%;
    justify-content: center;
}

.margin-top {
    margin-top: 0.5rem;
}

.hidden {
    display: none !important;
}

/* Header Action Button (Envelope / Contact Icon) */
.card-gear-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--cyan-active);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.card-gear-btn:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.4) 0%, rgba(56, 189, 248, 0.4) 100%);
    border-color: #38bdf8;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.7), 0 0 35px rgba(56, 189, 248, 0.4);
}

/* Control Drawer Slide-out Panel */
.control-drawer {
    position: fixed;
    top: 0;
    right: -440px;
    width: 400px;
    height: 100vh;
    background: #0b111e;
    border-left: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.85);
    z-index: 9999;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.control-drawer.open {
    right: 0 !important;
}

.drawer-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.drawer-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    transform: scale(1.1) rotate(90deg);
}

.drawer-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive queries */
@media (max-width: 480px) {
    .status-card {
        padding: 1.25rem;
    }
    .card-top-header {
        flex-wrap: wrap;
    }
    .project-selector-container {
        max-width: 100%;
        order: 3;
        width: 100%;
        margin-top: 0.25rem;
    }
    .control-drawer {
        width: 100%;
        right: -100%;
    }
}
