/**
 * INFOSSEL CRUSHER 360 — Ultra-Premium Industrial Design System & Dynamic Aesthetics
 * High-performance styles: Glassmorphism, Neon Telemetry, Gradient Mesh, Micro-animations
 */

:root {
    --brand-primary: #0f172a;
    --brand-dark: #090d16;
    --brand-amber: #f59e0b;
    --brand-amber-glow: rgba(245, 158, 11, 0.4);
    --brand-emerald: #10b981;
    --brand-emerald-glow: rgba(16, 185, 129, 0.35);
    --brand-cyan: #06b6d4;
    --brand-cyan-glow: rgba(6, 182, 212, 0.35);
    --brand-rose: #f43f5e;
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-card: rgba(255, 255, 255, 0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Radiant Glow Orbs & Backgrounds */
.ambient-glow-bg {
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(217, 119, 6, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 1) 0%, #030712 100%);
    overflow: hidden;
}

.ambient-glow-bg::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.18), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Glassmorphic Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

/* Industrial Card 2.0 with Dynamic Glow */
.industrial-card {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 1.25rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
}

.industrial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--card-accent, #d97706), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.industrial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.industrial-card:hover::after {
    opacity: 1;
}

/* Metric Counter Glow */
.metric-glow-amber {
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}
.metric-glow-emerald {
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}
.metric-glow-cyan {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
}

/* Live Weighbridge LED Indicator Box */
.weighbridge-led-box {
    background: #030712;
    border: 2px solid #1f2937;
    border-radius: 1rem;
    padding: 1.25rem;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(16, 185, 129, 0.15);
}

.weighbridge-led-box::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: blink-live 1.5s infinite;
}

@keyframes blink-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.85); }
}

.led-digits {
    font-family: 'Outfit', 'Courier New', monospace;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #10b981;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.7);
    line-height: 1;
}

.led-digits.warning {
    color: #f59e0b;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.7);
}

/* Floating "How to Use" Button */
.floating-guide-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1060;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    padding: 0.75rem 1.4rem;
    box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.5), 0 8px 10px -6px rgba(217, 119, 6, 0.3);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    animation: breathe-guide 3s infinite ease-in-out;
    text-decoration: none;
}

.floating-guide-btn:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 15px 30px rgba(217, 119, 6, 0.6);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

@keyframes breathe-guide {
    0%, 100% { box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.5); }
    50% { box-shadow: 0 10px 35px 2px rgba(245, 158, 11, 0.8); }
}

/* Keyboard Shortcut Keycap */
.kbd-cap {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    color: #e2e8f0;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 0.35rem;
    box-shadow: 0 2px 0 #0f172a;
    font-family: inherit;
}

/* Feature Spotlight Card */
.feature-spotlight-card {
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1.75rem;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
}

.feature-spotlight-card:hover {
    border-color: #d97706;
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(217, 119, 6, 0.12);
}

.feature-icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: var(--transition-smooth);
}

.feature-spotlight-card:hover .feature-icon-badge {
    transform: scale(1.1) rotate(-5deg);
}

/* Interactive Aggregate Selector Pill */
.aggregate-pill {
    padding: 0.65rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.aggregate-pill:hover, .aggregate-pill.active {
    background: #0f172a;
    color: #f8fafc;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.aggregate-pill.active {
    border-color: #f59e0b;
    outline: 2px solid rgba(245, 158, 11, 0.5);
}

/* Step Progression Connector in How to Use */
.guide-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.75rem;
    position: relative;
    height: 100%;
    transition: var(--transition-smooth);
}

.guide-step-card:hover {
    border-color: #0d9488;
    box-shadow: 0 15px 30px rgba(13, 148, 136, 0.1);
    transform: translateY(-4px);
}

.guide-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0f172a;
    color: #f59e0b;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Quick Demo Selector Chips in Login */
.login-demo-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: #f8fafc;
    transition: var(--transition-fast);
    margin-bottom: 0.65rem;
}

.login-demo-chip:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: #f59e0b;
    color: #ffffff;
    transform: translateX(4px);
}

.login-demo-chip .badge {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.6rem;
}

/* Toast/Alert Animations */
.animate-slide-up {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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