/* CriOS Design System 2026
 * A futuristic cosmic-themed glass design system with quantum UI principles
 * Inspired by advanced space exploration interfaces from 2025-2026
 * ------------------------------------------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Modern 2026 Color Variables */
    --crios-bg-deep: #0a0e1a;  /* Deeper space background */
    --crios-bg-medium: #131a2c; /* Medium depth space */
    --crios-bg-light: #1c2540;  /* Lighter space background */
    
    /* Vibrant primary colors suitable for 2026 */
    --crios-primary: #8250ec;  /* Rich vibrant purple */
    --crios-secondary: #3a7bd5; /* Bright cosmic blue */
    --crios-accent: #00e6c3;   /* Quantum teal */
    --crios-success: #00cc88;  /* Bioluminescent green */
    --crios-warning: #ffb84d;  /* Neutron star yellow */
    --crios-error: #ff5e7d;    /* Cosmic radiation red */
    
    /* Text colors with improved readability */
    --crios-text-primary: #ffffff;
    --crios-text-secondary: #d0d9f0;
    --crios-text-tertiary: #8a96b5;
    
    /* Modern Ultra-Gradient System */
    --crios-gradient-primary: linear-gradient(135deg, #8250ec, #00e6c3);
    --crios-gradient-secondary: linear-gradient(135deg, #3a7bd5, #8250ec);
    --crios-gradient-accent: linear-gradient(135deg, #00e6c3, #3a7bd5);
    --crios-gradient-success: linear-gradient(135deg, #00cc88, #83f5c9);
    --crios-gradient-cosmic: linear-gradient(135deg, #6036ff, #00caf0);
    
    /* Neuomorphic & Glass Shadows for 2026 */
    --crios-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 3px rgba(130, 80, 236, 0.1);
    --crios-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 5px rgba(130, 80, 236, 0.2);
    --crios-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.3), 0 0 10px rgba(130, 80, 236, 0.25);
    
    /* Advanced Glass Card Variables */
    --crios-card-radius: 18px;
    --crios-card-border: 1px solid rgba(255, 255, 255, 0.08);
    --crios-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --crios-card-glow: 0 0 25px rgba(130, 80, 236, 0.25);
    --crios-glass-opacity: 0.85;
    --crios-glass-blur: 12px;
    
    /* Modern Typography System */
    --font-primary: 'Sora', 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-secondary: 'JetBrains Mono', monospace;
    
    /* Animation Timing - More Fluid */
    --timing-fast: 0.18s;
    --timing-medium: 0.35s;
    --timing-slow: 0.6s;
    
    /* Animation Curves */
    --curve-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --curve-smooth: cubic-bezier(0.33, 1, 0.68, 1);
    
    /* Common component variables */
    --header-height: 70px;
    --navbar-blur: 16px;
    --container-max-width: 1400px;
    
    /* Core variables for Crowe integration */
    --crowe-primary: #8250ec;
    --crowe-secondary: #3a7bd5;
    --crows-accent: #00e6c3;
}

/* Typography */
.crios-heading {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--crios-text-primary);
    margin-bottom: 1rem;
}

.crios-subheading {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--crios-text-primary);
}

.crios-body {
    font-size: 1rem;
    color: var(--crios-text-secondary);
    line-height: 1.6;
}

.crios-caption {
    font-size: 0.875rem;
    color: var(--crios-text-tertiary);
    font-family: var(--font-secondary);
    letter-spacing: 0.02em;
}

.crios-code {
    font-family: var(--font-secondary);
    padding: 0.2em 0.4em;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.875em;
}

/* Badges */
.crios-badge {
    display: inline-block;
    padding: 0.25em 0.75em;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.crios-badge-primary {
    background: rgba(110, 72, 170, 0.2);
    color: var(--crios-primary);
}

.crios-badge-secondary {
    background: rgba(76, 92, 138, 0.2);
    color: var(--crios-secondary);
}

.crios-badge-accent {
    background: rgba(55, 200, 235, 0.2);
    color: var(--crios-accent);
}

.crios-badge-success {
    background: rgba(46, 204, 113, 0.2);
    color: var(--crios-success);
}

.crios-badge-warning {
    background: rgba(255, 200, 55, 0.2);
    color: var(--crios-warning);
}

.crios-badge-error {
    background: rgba(255, 124, 124, 0.2);
    color: var(--crios-error);
}

/* Button Styles */
.crios-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all var(--timing-medium) ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.crios-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.crios-btn:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.crios-btn-primary {
    background: var(--crios-gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(110, 72, 170, 0.25);
}

.crios-btn-primary:hover {
    box-shadow: 0 6px 16px rgba(110, 72, 170, 0.35);
    transform: translateY(-2px);
    color: white;
}

.crios-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--crios-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.crios-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: var(--crios-text-primary);
}

.crios-btn-accent {
    background: var(--crios-accent);
    color: white;
}

.crios-btn-accent:hover {
    background: #4bd1f0;
    transform: translateY(-2px);
    color: white;
}

.crios-btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.crios-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Card Styles */
.crios-card {
    background: rgba(18, 30, 51, 0.4);
    backdrop-filter: blur(10px);
    border-radius: var(--crios-card-radius);
    border: var(--crios-card-border);
    box-shadow: var(--crios-card-shadow);
    transition: transform var(--timing-medium) ease,
              box-shadow var(--timing-medium) ease;
    overflow: hidden;
}

.crios-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--crios-card-shadow), var(--crios-card-glow);
}

.crios-card-content {
    padding: 1.5rem;
}

/* Icon Badge */
.crios-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(110, 72, 170, 0.15);
    color: var(--crios-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Glowing Card */
.crios-card-glow {
    position: relative;
    border-radius: var(--crios-card-radius);
    border: var(--crios-card-border);
    background: rgba(18, 30, 51, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: var(--crios-card-shadow);
    overflow: hidden;
    z-index: 1;
}

.crios-card-glow::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--crios-gradient-primary);
    z-index: -1;
    border-radius: inherit;
    opacity: 0.2;
    filter: blur(8px);
    transition: opacity var(--timing-medium) ease;
}

.crios-card-glow:hover::before {
    opacity: 0.4;
}

.card-content {
    position: relative;
    z-index: 1;
}

/* Cosmic Animation Keyframes - Fixed console errors */
@keyframes rotateWave {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes energyRingPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.4; }
}

@keyframes energyParticleFloat {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-10px) translateX(10px); }
}

@keyframes energyBeamRotate {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

@keyframes quantumParticleMove {
    0% { transform: translate(0, 0); }
    25% { transform: translate(5px, -5px); }
    50% { transform: translate(-5px, 5px); }
    75% { transform: translate(5px, 5px); }
    100% { transform: translate(0, 0); }
}

@keyframes quantumWavePulse {
    0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.5; transform: scale(0.95); }
}

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

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes path {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

@keyframes streamData {
    0% { transform: translateY(100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

@keyframes dataFlow {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px); opacity: 0; }
}

@keyframes neuronOrbit1 {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes neuronOrbit2 {
    0% { transform: rotateX(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateZ(360deg); }
}

@keyframes neuronOrbit3 {
    0% { transform: rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateY(360deg) rotateZ(360deg); }
}

@keyframes pulse-neuron {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes dataPulse {
    0% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.3; transform: scale(0.8); }
}

/* Form Elements */
.crios-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--crios-text-primary);
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all var(--timing-medium) ease;
}

.crios-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--crios-primary);
    box-shadow: 0 0 0 3px rgba(110, 72, 170, 0.2);
    outline: none;
}

.crios-input::placeholder {
    color: var(--crios-text-tertiary);
}

.crios-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--crios-text-secondary);
}

/* Progress Indicators */
.crios-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.crios-progress-bar {
    height: 100%;
    border-radius: 3px;
    background: var(--crios-gradient-primary);
    transition: width var(--timing-medium) ease;
}

/* Loading Spinner */
.crios-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(110, 72, 170, 0.1);
    border-top-color: var(--crios-primary);
    animation: spin 1s infinite linear;
    display: inline-block;
}

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

/* Alerts */
.crios-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    position: relative;
    margin-bottom: 1rem;
}

.crios-alert-primary {
    background: rgba(110, 72, 170, 0.1);
    border-left: 3px solid var(--crios-primary);
    color: var(--crios-primary);
}

.crios-alert-success {
    background: rgba(46, 204, 113, 0.1);
    border-left: 3px solid var(--crios-success);
    color: var(--crios-success);
}

.crios-alert-warning {
    background: rgba(255, 200, 55, 0.1);
    border-left: 3px solid var(--crios-warning);
    color: var(--crios-warning);
}

.crios-alert-error {
    background: rgba(255, 124, 124, 0.1);
    border-left: 3px solid var(--crios-error);
    color: var(--crios-error);
}

/* Tooltips */
.crios-tooltip {
    position: relative;
    display: inline-block;
}

.crios-tooltip-text {
    visibility: hidden;
    background: rgba(18, 30, 51, 0.95);
    color: var(--crios-text-primary);
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity var(--timing-medium) ease;
    box-shadow: var(--crios-shadow-md);
    white-space: nowrap;
}

.crios-tooltip:hover .crios-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Dividers */
.crios-divider {
    margin: 2rem 0;
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.crios-divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--crios-text-tertiary);
    font-size: 0.875rem;
    margin: 2rem 0;
}

.crios-divider-text::before,
.crios-divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.crios-divider-text::before {
    margin-right: 1rem;
}

.crios-divider-text::after {
    margin-left: 1rem;
}

/* Additional animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.crios-pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* Ripple Effect for Buttons */
.crios-btn-ripple {
    position: relative;
    overflow: hidden;
}

.crios-btn-ripple span {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    animation: ripple-animation 0.8s ease-out;
    pointer-events: none;
}