/* KHAOS-Researcher Dashboard Styles - COTOAGA.AI Design System */

:root {
    /* COTOAGA Primary Colors */
    --cotoaga-green: #00A86B;      /* Emerald depth - Primary brand */
    --cotoaga-blue: #0088FF;       /* Electric clarity - AI accent */
    --cotoaga-cyan: #00D4FF;       /* Dimensional bridge - Highlights */

    /* The Mathematical Greys */
    --cotoaga-black: #0A0A0A;      /* Near absolute zero */
    --cotoaga-charcoal: #1A1A1A;   /* Deep space */
    --cotoaga-grey-dark: #2D2D2D;  /* Eigengrau */
    --cotoaga-grey: #4A4A4A;       /* Neutral axis */
    --cotoaga-grey-light: #8A8A8A; /* Subtle variance */
    --cotoaga-smoke: #C4C4C4;      /* Whisper */
    --cotoaga-white: #FAFAFA;      /* Not quite white */

    /* Functional States */
    --success-green: #00A86B;      /* Same as primary green */
    --warning-orange: #FFB800;     /* Golden alert */
    --alert-red: #FF3B30;          /* System critical */
    --info-blue: #0088FF;          /* Same as primary blue */

    /* Semantic Aliases */
    --text-primary: #2D2D2D;
    --text-secondary: #4A4A4A;
    --text-tertiary: #8A8A8A;
    --background-light: #FAFAFA;
    --background-dark: #0A0A0A;
    --background-white: #FFFFFF;

    /* Spacing Scale (Elementor-compatible) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* COTOAGA Effects - Sharp & Mathematical */
    --border-radius: 0px;          /* Sharp, mathematical edges */
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-card: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 10px 30px rgba(0, 168, 107, 0.1);
    --shadow-card-hover: 0 20px 40px rgba(0, 168, 107, 0.2);
    --shadow-button: 0 10px 30px rgba(0, 168, 107, 0.3);

    /* Letter Spacing */
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    /* Line Heights */
    --leading-tight: 1.1;
    --leading-snug: 1.3;
    --leading-normal: 1.6;
    --leading-relaxed: 1.8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--background-light);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: var(--leading-normal);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: var(--tracking-normal);
}

.header {
    background: var(--background-white);
    padding: var(--spacing-xl);
    margin: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(47, 110, 186, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    transition: var(--transition-card);
}

.header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cotoaga-green);
    margin: 0;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition-standard);
}

.status-dot.online {
    background: var(--success-green);
    box-shadow: 0 0 10px var(--success-green);
}

.status-dot.working {
    background: var(--warning-orange);
    box-shadow: 0 0 10px var(--warning-orange);
    animation: pulse 1.5s infinite;
}

.status-dot.error {
    background: var(--alert-red);
    box-shadow: 0 0 10px var(--alert-red);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.controls {
    display: flex;
    gap: 10px;
}

.progress-container {
    margin-top: var(--spacing-md);
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(47, 110, 186, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--khaos-blue), var(--khaos-blue-light));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progress-pulse 1.5s infinite;
}

.progress-text {
    font-size: 0.9em;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* COTOAGA Button System - Klein Bottle Style */
button, .btn-primary {
    background: linear-gradient(135deg, #00A86B, #00C27D);
    border: none;
    color: white;
    padding: 14px 32px;
    border-radius: var(--border-radius); /* 0 - sharp edges */
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    transition: var(--transition-standard);
    min-height: 44px; /* Accessibility touch target */
}

button:hover, .btn-primary:hover {
    background: linear-gradient(135deg, #00C27D, #00A86B);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

button:focus, .btn-primary:focus {
    outline: 2px solid var(--cotoaga-blue);
    outline-offset: 2px;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--cotoaga-blue);
    color: var(--cotoaga-blue);
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    transition: var(--transition-standard);
}

.btn-secondary:hover {
    background: var(--cotoaga-blue);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg);
}

/* KHAOS Card System */
.stat-card, .khaos-card {
    background: var(--background-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(47, 110, 186, 0.1);
    text-align: center;
    transition: var(--transition-card);
}

.stat-card:hover, .khaos-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.stat-card h3, .khaos-card h3 {
    font-family: var(--font-display);
    color: var(--cotoaga-green);
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    line-height: var(--leading-tight);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cotoaga-green);
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg);
}

.chart-section {
    background: var(--background-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(47, 110, 186, 0.1);
    transition: var(--transition-card);
}

.chart-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.chart-section h2 {
    font-family: var(--font-display);
    margin-bottom: var(--space-lg);
    color: var(--cotoaga-green);
    font-size: 2rem;
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

.models-section {
    margin: var(--space-lg);
    background: var(--background-white);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 168, 107, 0.1);
}

.models-section h2 {
    font-family: var(--font-display);
    margin-bottom: var(--space-lg);
    color: var(--cotoaga-green);
    font-size: 2rem;
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

.filter-controls {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.filter-controls select,
.filter-controls input {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid rgba(47, 110, 186, 0.2);
    border-radius: var(--border-radius);
    background: var(--background-white);
    font-family: inherit;
    font-size: 1em;
    transition: var(--transition-standard);
}

.filter-controls select:focus,
.filter-controls input:focus {
    outline: 2px solid var(--khaos-blue);
    outline-offset: 2px;
    border-color: var(--khaos-blue);
}

.filter-controls input {
    flex: 1;
    min-width: 200px;
}

#model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.model-card {
    background: var(--background-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--cotoaga-green);
    box-shadow: var(--shadow-card);
    transition: var(--transition-card);
}

.model-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-left-color: var(--cotoaga-cyan);
}

.model-card h3 {
    font-family: var(--font-display);
    color: var(--cotoaga-green);
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: var(--leading-tight);
}

.model-card p {
    margin: var(--spacing-xs) 0;
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.6;
}

.empty-state {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-lg);
    color: var(--text-tertiary);
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cotoaga-green);
    margin-bottom: var(--space-sm);
    line-height: var(--leading-tight);
}

.empty-state p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

.empty-state button {
    margin-top: var(--spacing-lg);
    font-size: 1.1em;
    padding: var(--spacing-md) var(--spacing-xl);
}

.footer {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-tertiary);
    font-size: 0.9em;
    background: var(--background-white);
    margin: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    line-height: 1.6;
}

.footer a {
    color: var(--cotoaga-green);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    color: var(--cotoaga-cyan);
    text-decoration: underline;
}
/* KHAOS Responsive Design - Mobile First */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

/* Mobile Base (up to 768px) */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
        padding: var(--spacing-lg);
        margin: var(--spacing-sm);
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
        margin: var(--spacing-sm);
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        margin: var(--spacing-sm);
    }
    
    .models-section {
        margin: var(--spacing-sm);
        padding: var(--spacing-lg);
    }
    
    .filter-controls {
        flex-direction: column;
    }
    
    .filter-controls input {
        min-width: 100%;
    }
    
    #model-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: var(--spacing-xl);
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
    .container {
        padding: var(--spacing-xxl);
    }
}

/* KHAOS D3 Chart Styles */
svg {
    background: var(--background-white);
    border-radius: var(--border-radius);
    border: 1px solid rgba(47, 110, 186, 0.1);
}

.axis {
    font-size: 12px;
    font-family: inherit;
}

.axis path,
.axis line {
    fill: none;
    stroke: var(--text-tertiary);
    shape-rendering: crispEdges;
}

.axis text {
    fill: var(--text-secondary);
}

/* Chart bars and elements */
.chart-bar {
    fill: var(--khaos-blue);
    transition: var(--transition-standard);
}

.chart-bar:hover {
    fill: var(--khaos-blue-light);
}

/* Provider Chart Enhancements */
.bar {
    transition: opacity 0.2s ease;
}

.bar:hover {
    opacity: 0.8;
    cursor: pointer;
}

.value-label {
    pointer-events: none;
}

.provider-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.grid line {
    shape-rendering: crispEdges;
}

.grid .domain {
    stroke: none;
}

/* Chart container styling */
#provider-chart {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* KHAOS Special Components */

/* TARS Insight Block */
.tars-insight {
    background: var(--background-white);
    border-left: 4px solid var(--insight-purple);
    padding: var(--spacing-lg);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    box-shadow: var(--shadow-card);
    margin: var(--spacing-lg) 0;
}

.tars-insight::before {
    content: "TARS: ";
    color: var(--insight-purple);
    font-weight: bold;
    font-style: normal;
}

/* Status indicators for content */
.success {
    color: var(--success-green);
}

.success-bg {
    background: rgba(102, 187, 106, 0.1);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
}

.warning {
    color: var(--warning-orange);
}

.warning-bg {
    background: rgba(255, 167, 38, 0.1);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
}

.error {
    color: var(--alert-red);
}

.error-bg {
    background: rgba(239, 83, 80, 0.1);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
}

.insight {
    color: var(--insight-purple);
}

.insight-bg {
    background: rgba(155, 89, 182, 0.1);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
}

/* Accessibility and Focus States */
*:focus {
    outline: 2px solid var(--cotoaga-blue);
    outline-offset: 2px;
}

.khaos-card:focus {
    border-color: var(--cotoaga-green);
    box-shadow: 0 0 0 2px rgba(0, 168, 107, 0.2);
}

/* Loading animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideInTimeline {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.slide-in {
    animation: slideInTimeline 0.4s ease-out;
}

.context-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.context-item {
    line-height: 1.6;
    color: var(--text-secondary);
}

.context-item strong {
    color: var(--khaos-blue);
    display: block;
    margin-bottom: var(--spacing-xs);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .context-grid {
        grid-template-columns: 1fr;
    }
    

/* Ecosystem Context Styles */
.ecosystem-context {
    margin: var(--spacing-lg);
    background: linear-gradient(135deg, 
        rgba(47, 110, 186, 0.08) 0%, 
        rgba(110, 193, 228, 0.08) 100%);
    border: 2px solid var(--khaos-blue-light);
    position: relative;
    overflow: hidden;
}

.ecosystem-context::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--khaos-blue), 
        var(--khaos-blue-light), 
        var(--khaos-blue));
}

.context-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.context-header h2 {
    color: var(--khaos-blue);
    margin: 0;
    font-size: 1.8em;
}

.ecosystem-badge {
    background: var(--success-green);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px var(--success-green); }
    50% { box-shadow: 0 0 15px var(--success-green); }
}

.ecosystem-stats {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.stat-highlight {
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius);
    border: 1px solid rgba(47, 110, 186, 0.2);
}

.big-number {
    font-size: 3.5em;
    font-weight: bold;
    background: linear-gradient(135deg, var(--khaos-blue), var(--khaos-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1em;
    font-weight: 500;
}

.curation-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.curation-stat {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
}

.curation-number {
    font-size: 2em;
    font-weight: bold;
    color: var(--khaos-blue);
}

.curation-label {
    color: var(--text-secondary);
    font-size: 1.1em;
}

.curation-note {
    background: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--khaos-blue-light);
    line-height: 1.6;
    color: var(--text-secondary);
}

.curation-note strong {
    color: var(--khaos-blue);
}

.data-source {
    display: block;
    margin-top: var(--spacing-sm);
    font-style: italic;
    font-size: 0.9em;
    color: var(--text-tertiary);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ecosystem-stats {
        grid-template-columns: 1fr;
    }
    
    .big-number {
        font-size: 2.5em;
    }
    
    .curation-stat {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* System Status Block */
.system-status {
    margin: var(--spacing-lg);
    background: var(--background-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(47, 110, 186, 0.1);
}

.system-status h2 {
    color: var(--khaos-blue);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5em;
    font-weight: bold;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: rgba(47, 110, 186, 0.05);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--khaos-blue);
}

.status-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.status-value {
    color: var(--khaos-blue);
    font-weight: bold;
    font-size: 1.1em;
}

.status-value.success {
    color: var(--success-green);
}

.status-value.warning {
    color: var(--warning-orange);
}

.status-value.error {
    color: var(--alert-red);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
}

/* Performance optimizations for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* Working Chaos Star SVG Logo */
.chaos-logo {
    display: inline-block;
}

.chaos-star-svg {
    animation: chaosRotate 8s linear infinite;
    filter: drop-shadow(0 0 4px rgba(47, 110, 186, 0.3));
}

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

.chaos-logo:hover .chaos-star-svg {
    animation-duration: 2s;
    filter: drop-shadow(0 0 8px rgba(47, 110, 186, 0.6));
}

/* Pulse effect for central hub - target the green circle */
.chaos-star-svg circle:nth-child(2) {
    animation: chaosPulse 3s ease-in-out infinite;
}

@keyframes chaosPulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Responsive sizing */
@media (max-width: 768px) {
    .chaos-star-svg {
        width: 24px;
        height: 24px;
    }
}

/* CLEAN Strategic Dashboard Styling */
.strategic-dashboard-container {
    margin: 20px;
    margin-bottom: 40px;
}

.strategic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Command Center Card */
.command-center-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    border: 1px solid rgba(47, 110, 186, 0.15);
    border-left: 4px solid #2F6EBA;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(47, 110, 186, 0.08);
    transition: all 0.3s ease;
}

.command-center-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(47, 110, 186, 0.12);
}

/* Ecosystem Intelligence Card */
.ecosystem-intelligence-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid rgba(102, 187, 106, 0.15);
    border-left: 4px solid #66BB6A;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(102, 187, 106, 0.08);
    transition: all 0.3s ease;
}

.ecosystem-intelligence-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 187, 106, 0.12);
}

/* Card Headers */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(47, 110, 186, 0.1);
}

.card-header h2 {
    color: #2F6EBA;
    font-size: 1.3em;
    font-weight: 700;
    margin: 0;
}

/* Status Indicators */
.status-indicator-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.pulse-dot.active {
    background: #66BB6A;
}

.pulse-dot.growth {
    background: #FFA726;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.status-text {
    font-size: 0.85em;
    color: #666;
    font-weight: 600;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.metric-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(47, 110, 186, 0.1);
    transition: all 0.2s ease;
}

.metric-box:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.metric-icon {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

.metric-info {
    flex: 1;
}

.metric-label {
    font-size: 0.8em;
    color: #666;
    font-weight: 500;
    margin-bottom: 2px;
}

.metric-value {
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Indicator Dots */
.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.indicator-dot.green {
    background: #66BB6A;
    box-shadow: 0 0 6px rgba(102, 187, 106, 0.4);
}

.indicator-dot.blue {
    background: #2F6EBA;
    box-shadow: 0 0 6px rgba(47, 110, 186, 0.4);
}

/* Countdown Display */
.countdown-display {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #FFA726;
    font-size: 0.95em;
}

/* Progress Section */
.progress-section {
    margin-top: 16px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 0.8em;
    color: #666;
    font-weight: 500;
}

.progress-percentage {
    font-size: 0.8em;
    color: #2F6EBA;
    font-weight: 600;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(47, 110, 186, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2F6EBA 0%, #6EC1E4 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Intelligence Metrics */
.intelligence-metrics {
    margin-bottom: 20px;
}

.primary-metric {
    text-align: center;
    margin-bottom: 16px;
}

.big-number {
    font-size: 2.4em;
    font-weight: 800;
    color: #2F6EBA;
    line-height: 1;
    margin-bottom: 6px;
}

.metric-description {
    text-align: center;
}

.metric-main-label {
    font-size: 0.95em;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.metric-sub-label {
    font-size: 0.8em;
    color: #666;
}

.secondary-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.metric-item {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(102, 187, 106, 0.1);
}

.metric-number {
    font-size: 1.4em;
    font-weight: 700;
    color: #66BB6A;
    margin-bottom: 4px;
}

.metric-item .metric-label {
    font-size: 0.8em;
    color: #666;
    font-weight: 500;
}

/* Intelligence Summary */
.intelligence-summary {
    background: rgba(255, 255, 255, 0.6);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(102, 187, 106, 0.2);
}

.summary-highlight {
    font-size: 0.95em;
    line-height: 1.5;
    color: #333;
    margin-bottom: 12px;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-row {
    display: flex;
    font-size: 0.85em;
}

.detail-label {
    font-weight: 600;
    color: #2F6EBA;
    min-width: 60px;
    margin-right: 8px;
}

.detail-text {
    color: #555;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .strategic-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .secondary-metrics {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .strategic-dashboard-container {
        margin: 15px;
    }
    
    .command-center-card,
    .ecosystem-intelligence-card {
        padding: 20px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .big-number {
        font-size: 2em;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 2px;
    }
    
    .detail-label {
        min-width: auto;
        margin-right: 0;
    }
}
/* Ecosystem Context Grid */
.ecosystem-context-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--khaos-blue-light);
}

.ecosystem-context-grid .context-item {
    line-height: 1.6;
    color: var(--text-secondary);
}

.ecosystem-context-grid .context-item strong {
    color: var(--khaos-blue);
    display: block;
    margin-bottom: var(--spacing-xs);
}

/* Mobile responsive for ecosystem context grid */
@media (max-width: 768px) {
    .ecosystem-context-grid {
        grid-template-columns: 1fr;
    }
}

/* Date Legend Styles */
.date-legend {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(47, 110, 186, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(47, 110, 186, 0.1);
}

.date-legend h3 {
    color: var(--khaos-blue);
    margin: 0 0 var(--spacing-md) 0;
    font-size: 1.2em;
    font-weight: bold;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.6);
    border-radius: calc(var(--border-radius) / 2);
    border: 1px solid rgba(47, 110, 186, 0.1);
}

.legend-icon {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.legend-text {
    font-size: 0.9em;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Mobile responsive for legend */
@media (max-width: 768px) {
    .legend-grid {
        grid-template-columns: 1fr;
    }
}

/* BULLETPROOF capability tag styles */
.capability-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 4px !important;
}

.capability-tag {
    display: inline-block !important;
    padding: 6px 12px !important;
    margin: 3px !important;
    border-radius: 15px !important;
    font-size: 0.8em !important;
    font-weight: 700 !important;
    text-transform: lowercase !important;
    white-space: nowrap !important;
    border: 2px solid #333 !important;
    transition: all 0.2s ease !important;
    /* GUARANTEED visible default styling */
    background: #FF6B6B !important;
    color: white !important;
    min-height: 20px !important;
    min-width: 40px !important;
    text-align: center !important;
}

/* Specific capability colors - Override the default red */
span.capability-tag.text-generation {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB) !important;
    color: #1976D2 !important;
    border-color: #2196F3 !important;
}

span.capability-tag.community-hosted,
span.capability-tag.community {
    background: linear-gradient(135deg, #E8F5E8, #C8E6C9) !important;
    color: #388E3C !important;
    border-color: #4CAF50 !important;
}

span.capability-tag.reasoning {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2) !important;
    color: #F57C00 !important;
    border-color: #FF9800 !important;
}

span.capability-tag.code {
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7) !important;
    color: #7B1FA2 !important;
    border-color: #9C27B0 !important;
}

span.capability-tag.image-generation {
    background: linear-gradient(135deg, #FCE4EC, #F8BBD9) !important;
    color: #C2185B !important;
    border-color: #E91E63 !important;
}

span.capability-tag.image-classification {
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7) !important;
    color: #7B1FA2 !important;
    border-color: #9C27B0 !important;
}

span.capability-tag.open-source {
    background: linear-gradient(135deg, #E0F2F1, #B2DFDB) !important;
    color: #00695C !important;
    border-color: #009688 !important;
}

span.capability-tag.democratized-ai {
    background: linear-gradient(135deg, #FFF8E1, #FFECB3) !important;
    color: #FF8F00 !important;
    border-color: #FFC107 !important;
}

span.capability-tag.vision {
    background: linear-gradient(135deg, #E0F2F1, #B2DFDB) !important;
    color: #00695C !important;
    border-color: #009688 !important;
}

span.capability-tag.audio {
    background: linear-gradient(135deg, #FCE4EC, #F8BBD9) !important;
    color: #C2185B !important;
    border-color: #E91E63 !important;
}

span.capability-tag.enterprise {
    background: linear-gradient(135deg, #F1F8E9, #DCEDC8) !important;
    color: #558B2F !important;
    border-color: #689F38 !important;
}

span.capability-tag.multimodal {
    background: linear-gradient(135deg, #FFF8E1, #FFECB3) !important;
    color: #FF8F00 !important;
    border-color: #FFC107 !important;
}

/* Capability Tags - Working Version */
.capability-tag {
    display: inline-block !important;
    padding: 6px 12px !important;
    margin: 3px !important;
    border-radius: 15px !important;
    font-size: 0.8em !important;
    font-weight: 700 !important;
    text-transform: lowercase !important;
    white-space: nowrap !important;
    border: 2px solid #333 !important;
    background: #FF6B6B !important;
    color: white !important;
    min-height: 20px !important;
    min-width: 40px !important;
    text-align: center !important;
}

/* Hover effects */
.capability-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Model card layout adjustments */
.model-info {
    margin-top: 12px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 8px;
}

.info-label {
    font-weight: 600;
    color: #666;
    min-width: 80px;
    font-size: 0.85em;
}

.info-value {
    color: #333;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.date-icon {
    font-size: 0.9em;
}

/* Responsive adjustments for capability tags */
@media (max-width: 768px) {
    .capability-tags {
        gap: 4px;
    }

    .capability-tag {
        font-size: 0.7em;
        padding: 2px 6px;
    }

    .info-row {
        flex-direction: column;
        gap: 4px;
    }

    .info-label {
        min-width: auto;
    }
}

/* AI Model Release Timeline Styles */
#timeline-container {
    position: relative;
    padding: 20px 10px;
    overflow-x: auto;
    min-height: 600px;
    background: rgba(47, 110, 186, 0.02);
    border-radius: 8px;
}

.timeline-year-marker {
    position: absolute;
    left: 0;
    font-size: 1.1em;
    font-weight: 700;
    color: #2F6EBA;
    background: white;
    padding: 4px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 10;
}

.timeline-swimlane {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.timeline-swimlane:hover {
    background: rgba(47, 110, 186, 0.02);
}

.timeline-year-line {
    position: absolute;
    left: 80px;
    right: 0;
    height: 100%;
    border-top: 2px dashed #e0e0e0;
    pointer-events: none;
}

.timeline-event-node {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.timeline-event-node .node-dot {
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.timeline-event-node:hover .node-dot {
    transform: scale(1.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 100;
}

.timeline-event-node.active .node-dot {
    transform: scale(1.5);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    z-index: 100;
}

/* Event type shapes */
.node-dot.model-release {
    border-radius: 50%;
}

.node-dot.product-launch {
    border-radius: 3px;
    transform: rotate(45deg);
}

.node-dot.announcement {
    border-radius: 0;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Provider colors */
.provider-openai { background: #10A37F; }
.provider-google { background: #4285F4; }
.provider-anthropic { background: #D97757; }
.provider-xai { background: #000000; }

/* Event hover card */
.timeline-event-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(47, 110, 186, 0.2);
    width: 320px;
    max-width: 350px;
    z-index: 1000;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid #2F6EBA;
    box-sizing: border-box;
}

.timeline-event-card.show {
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.timeline-event-card.pinned {
    border-left-width: 6px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.event-card-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #2F6EBA;
    line-height: 1.3;
    flex: 1;
}

.event-card-close {
    background: none;
    border: none;
    font-size: 1.3em;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.event-card-close:hover {
    background: #f0f0f0;
    color: #333;
}

.event-card-body {
    font-size: 0.9em;
    line-height: 1.6;
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.event-card-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-card-label {
    font-weight: 600;
    color: #666;
    min-width: 80px;
}

.event-card-value {
    color: #333;
}

.event-card-provider {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    color: white;
}

.event-card-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    background: #f0f0f0;
    color: #666;
}

.event-card-notes {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    color: #555;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Provider badge colors */
.event-card-provider.openai { background: #10A37F; }
.event-card-provider.google { background: #4285F4; }
.event-card-provider.anthropic { background: #D97757; }
.event-card-provider.xai { background: #000000; }

/* Event Card Icon Wrapper */
.event-card-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.event-card-icon {
    width: 28px;
    height: 28px;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

/* Icon shapes */
.event-card-icon.circle {
    border-radius: 50%;
}

.event-card-icon.diamond {
    transform: rotate(45deg);
    border-radius: 4px;
}

.event-card-icon.triangle {
    border-radius: 0;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

/* Mobile responsive timeline */
@media (max-width: 768px) {
    .timeline-year-marker {
        font-size: 0.9em;
        padding: 3px 8px;
    }

    .timeline-event-card {
        width: 280px;
        max-width: 90vw;
        padding: 12px;
    }

    .event-card-title {
        font-size: 1em;
    }

    #timeline-provider-filter,
    #timeline-year-filter {
        font-size: 0.8em !important;
        padding: 4px 8px !important;
    }

    .event-card-icon-wrapper {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .event-card-icon {
        width: 24px;
        height: 24px;
        border: 2px solid white;
    }
}