/* Global Anchor AI | HahuStudio Pro Design System */
:root {
    --studio-bg: #050505;
    --studio-surface: #0f0f11;
    --studio-violet: #9333ea;
    --studio-violet-glow: rgba(147, 51, 234, 0.4);
    --studio-emerald: #10b981;
    --studio-blue: #0ea5e9;
    --studio-accent: #a855f7;
    --glass-bg: rgba(15, 15, 17, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    --font-main: 'Outfit', 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background: linear-gradient(to bottom right, var(--studio-bg), #000000);
    color: #f3f4f6;
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* --- Premium Background Glows --- */
body::before {
    content: '';
    position: fixed;
    top: -15%;
    left: -15%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--studio-violet-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(120px);
    opacity: 0.35;
}

body::after {
    content: '';
    position: fixed;
    bottom: -15%;
    right: -15%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    z-index: -1;
    filter: blur(120px);
    opacity: 0.25;
}

/* --- Foundation Components --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.9);
}

.studio-card {
    background: var(--glass-highlight);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.studio-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

/* --- Interactive Elements --- */
.btn-studio-primary {
    background: var(--studio-violet);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 14px;
    padding: 16px 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-studio-primary:hover:not(:disabled) {
    background: #a78bfa;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-studio-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.btn-studio-primary:hover::after {
    transform: translateX(100%);
}

.tab-btn {
    position: relative;
    padding: 12px 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 10px;
}

.tab-btn.active {
    color: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--studio-red), transparent);
    box-shadow: 0 0 12px var(--studio-red);
    border-radius: 4px;
}

/* Animations */
.live-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px #fff;
    animation: studio-pulse 2s infinite;
}

@keyframes studio-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 5px #fff;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.6;
        box-shadow: 0 0 15px #fff;
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 5px #fff;
    }
}

.news-ticker {
    overflow: hidden;
    white-space: nowrap;
    background: var(--studio-red);
    color: white;
    padding: 16px 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: clamp(1.2rem, 2.8vw, 2.2rem);
    line-height: 1.1;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.news-ticker-content {
    display: inline-block;
    padding-left: 100%;
    padding-right: 2rem;
    animation: ticker-scroll 40s linear infinite;
}

@keyframes ticker-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* --- Enhanced Glassmorphism & Micro-interactions --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.95);
}

.studio-card {
    background: var(--glass-highlight);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.studio-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px rgba(220, 38, 38, 0.15);
}

/* --- Production Status Glow --- */
.status-glow {
    position: relative;
}

.status-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--studio-red), var(--studio-blue));
    z-index: -1;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.status-glow.active::after {
    opacity: 0.3;
}

/* --- Premium Inputs --- */
.input-dark {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.input-dark:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--studio-red);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    outline: none;
}

/* --- News Animation Overrides --- */
@keyframes studio-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 10px var(--studio-red);
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
        box-shadow: 0 0 25px var(--studio-red);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 10px var(--studio-red);
    }
}

.live-pulse {
    width: 8px;
    height: 8px;
    background: var(--studio-red);
    box-shadow: 0 0 10px var(--studio-red);
}

/* --- Section Transitions --- */
.accordion-content {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

/* --- Typography Polish --- */
.font-display {
    font-family: 'Outfit', sans-serif;
}

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

/* 
   Prevent browser-default focus rings for a cleaner "app" feel 
*/
*:focus {
    outline: none;
}

/* --- Super Admin Dashboard Styles --- */
.stat-card {
    background: var(--glass-highlight);
    border: 1px solid var(--glass-border);
    padding: 1.25rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(220, 38, 38, 0.2);
    background: rgba(220, 38, 38, 0.02);
}

.stat-card .label {
    font-size: 8px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: white;
    letter-spacing: -0.02em;
}

/* --- Micro-Animations --- */
@keyframes pulse-amber {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

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

.tab-content {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-98 {
    transform: scale(0.98);
}

/* Custom Scrollbar for Master Look */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--studio-red);
}
/* --- Spectral Laboratory (Surgical DNA v3) --- */
@keyframes meter-glow {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(168, 85, 247, 0.2)); }
    50% { filter: drop-shadow(0 0 8px rgba(168, 85, 247, 1.0)); }
}

#meter-entropy, #meter-crest, #meter-warmth {
    animation: meter-glow 3s infinite ease-in-out;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.pro-chip-surgical {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 2px 6px;
    border-radius: 4px;
}
