/* Stock & Market Predictive Analytics - Ultra Modern Neon Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #0B0E17;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-hover: rgba(28, 36, 56, 0.85);
    --border-glow: rgba(59, 130, 246, 0.2);
    
    --neon-green: #00E676;
    --neon-red: #FF1744;
    --neon-blue: #00E5FF;
    --neon-purple: #A855F7;
    --neon-pink: #FF007F;
    --neon-yellow: #FFD700;
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 230, 118, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Hardware Accelerated Fast Performance Panels */
.glass-panel {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.4);
    border-radius: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
    transform: translateZ(0);
    contain: layout style;
}

.glass-panel:hover {
    border-color: rgba(0, 229, 255, 0.3);
}

.glass-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    contain: layout style;
}

/* Autocomplete High Priority Stacking Context */
#searchForm {
    position: relative !important;
    z-index: 99999 !important;
}

#autocompleteDropdown {
    z-index: 999999 !important;
    box-shadow: 0 25px 60px 0 rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 229, 255, 0.25) !important;
}

/* Neon Glow Accents */
.glow-green {
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.35);
    border-color: var(--neon-green) !important;
}

.glow-red {
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.35);
    border-color: var(--neon-red) !important;
}

.glow-blue {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
    border-color: var(--neon-blue) !important;
}

.glow-purple {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
    border-color: var(--neon-purple) !important;
}

/* Text Glow Effects */
.text-glow-green {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

.text-glow-red {
    color: var(--neon-red);
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.5);
}

.text-glow-blue {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Pulse Animations */
@keyframes pulseGlowGreen {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 230, 118, 0.2); }
    50% { box-shadow: 0 0 30px rgba(0, 230, 118, 0.6); }
}

@keyframes pulseGlowRed {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 23, 68, 0.2); }
    50% { box-shadow: 0 0 30px rgba(255, 23, 68, 0.6); }
}

.animate-pulse-green {
    animation: pulseGlowGreen 2s infinite ease-in-out;
}

.animate-pulse-red {
    animation: pulseGlowRed 2s infinite ease-in-out;
}

/* Speedometer / Gauge Bar */
.pressure-bar-container {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.pressure-bar-buyer {
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #00E676 100%);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.7);
    transition: width 0.6s ease-out;
}

.pressure-bar-seller {
    height: 100%;
    background: linear-gradient(90deg, #FF1744 0%, #EF4444 100%);
    box-shadow: 0 0 12px rgba(255, 23, 68, 0.7);
    transition: width 0.6s ease-out;
}

/* Ticker Marquee Scroll */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: 200%;
    animation: marquee 35s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(11, 14, 23, 0.8);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.4);
}

/* TradingView Chart Container */
#chartContainer {
    width: 100%;
    height: 480px;
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Loader Spinner */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Badge Styles */
.badge-bullish {
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
}

.badge-bearish {
    background: rgba(255, 23, 68, 0.15);
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
}

.badge-sideways {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid var(--neon-yellow);
    color: var(--neon-yellow);
}

/* Speedometer Arc Gauge Styling */
.gauge-svg {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 14;
    stroke-linecap: round;
}

.gauge-fill {
    fill: none;
    stroke-width: 14;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease-out, stroke 0.4s ease;
}

/* =========================================================
   FULL MOBILE & TABLET RESPONSIVENESS ENHANCEMENTS
   ========================================================= */
@media (max-width: 640px) {
    #chartContainer {
        height: 360px !important;
    }

    .glass-panel {
        padding: 0.85rem !important;
        border-radius: 0.75rem !important;
    }

    #autocompleteDropdown {
        max-height: 280px !important;
    }

    #searchInput {
        font-size: 13px !important;
    }

    .auto-item {
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
    }
}
