/* AI Agent Lifestyle CSS Design System - Cyberpunk Glassmorphic Premium Aesthetic */

:root {
    /* Color Palette */
    --bg-dark: hsl(225, 28%, 6%);
    --bg-darker: hsl(225, 30%, 4%);
    --bg-panel: hsla(225, 20%, 12%, 0.6);
    --bg-panel-hover: hsla(225, 20%, 16%, 0.85);
    
    --primary: hsl(263, 90%, 62%);
    --primary-glow: hsla(263, 90%, 62%, 0.3);
    --secondary: hsl(190, 95%, 50%);
    --secondary-glow: hsla(190, 95%, 50%, 0.35);
    --accent: hsl(142, 90%, 45%);
    --accent-glow: hsla(142, 90%, 45%, 0.3);
    
    --text-main: hsl(210, 20%, 98%);
    --text-muted: hsl(215, 15%, 72%);
    --text-dim: hsl(220, 10%, 45%);
    
    --border-glow: hsla(190, 95%, 50%, 0.15);
    --border-standard: hsla(220, 20%, 98%, 0.06);
    --border-active: hsla(190, 95%, 50%, 0.5);
    
    /* Layout Variables */
    --sidebar-width: 280px;
    --drawer-width: 320px;
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--border-glow) transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text, .section-title {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Scrollbars styling */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: hsla(190, 95%, 50%, 0.1);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* APP CONTAINER LAYOUT */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
    background-image: 
        radial-gradient(circle at 10% 20%, hsla(263, 90%, 62%, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, hsla(190, 95%, 50%, 0.05) 0%, transparent 45%);
}

/* GLASSMORPHISM GLOBAL STYLES */
.sidebar, .main-header, .controls-panel, .filmstrip-container, .details-drawer, .modal-card {
    background-color: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-standard);
}

/* ICON BUTTONS & CONTROLS */
.icon-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.icon-btn:hover {
    color: var(--text-main);
    background-color: var(--bg-panel-hover);
    border-color: var(--border-standard);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.icon-btn.active {
    color: var(--secondary);
    background-color: hsla(190, 95%, 50%, 0.08);
    border-color: rgba(190, 95%, 50%, 0.2);
}

.control-btn {
    background: var(--bg-panel-hover);
    border: 1px solid var(--border-standard);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.control-btn:hover {
    background: hsla(220, 20%, 98%, 0.08);
    border-color: var(--text-muted);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.control-btn.accent {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.control-btn.accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(190, 95, 50, 0.4), 0 0 15px var(--primary-glow);
    filter: brightness(1.1);
}

/* SIDEBAR (LEFT) */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), margin-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: none;
    border-top: none;
    border-bottom: none;
}

.sidebar.collapsed {
    transform: translateX(-100%);
    margin-left: calc(-1 * var(--sidebar-width));
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-standard);
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.01em;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 8px;
    font-size: 22px;
}

.accent-text {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 12px;
    padding-left: 8px;
    font-weight: 700;
}

.slide-list {
    list-style: none;
}

.slide-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.slide-item:hover {
    background-color: var(--bg-panel-hover);
    color: var(--text-main);
}

.slide-item.active {
    background-color: hsla(263, 90%, 62%, 0.12);
    border-color: rgba(263, 90%, 62%, 0.25);
    color: var(--text-main);
    box-shadow: inset 0 0 10px rgba(263, 90%, 62%, 0.05);
}

.slide-item-num {
    font-weight: 700;
    font-size: 12px;
    color: var(--secondary);
    background-color: hsla(190, 95%, 50%, 0.08);
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.slide-item.active .slide-item-num {
    background-color: var(--primary);
    color: var(--text-main);
}

.slide-item-title {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-standard);
}

.shortcuts-trigger-btn {
    width: 100%;
    background: transparent;
    border: 1px dashed var(--border-standard);
    color: var(--text-muted);
    font-size: 12px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.shortcuts-trigger-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* MAIN VIEWPORT */
.main-viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* HEADER */
.main-header {
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
    border-top: none;
    border-left: none;
    border-right: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-btn {
    display: none; /* Hide unless sidebar collapsed */
}

.menu-btn.active {
    display: inline-flex;
}

.slide-title-area {
    display: flex;
    flex-direction: column;
}

.slide-current-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hud-badges {
    display: flex;
    gap: 8px;
}

.badge {
    background-color: var(--bg-panel-hover);
    border: 1px solid var(--border-standard);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.glow-badge {
    color: var(--accent);
    background-color: hsla(142, 90%, 45%, 0.08);
    border-color: rgba(142, 90%, 45%, 0.3);
    box-shadow: 0 0 10px rgba(142, 90%, 45%, 0.15);
    animation: badge-pulse 2s infinite ease-in-out;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; filter: brightness(1.2); }
}

/* PRESENTATION AREA (CENTER STAGE) */
.presentation-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    position: relative;
}

.stage-outer-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 16:9 LOCKED CANVAS CONTAINER */
.stage-container {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 90vw;
    max-height: 65vh;
    background-color: var(--bg-darker);
    border-radius: 12px;
    position: relative;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(190, 95, 50, 0.03),
        inset 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-standard);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.stage-container.laser-pointer-active {
    cursor: none; /* Hide default cursor if laser active */
}

/* Canvas layers (Static vs Interactive) */
.stage-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 11px;
    pointer-events: none;
}

.static-canvas {
    display: none;
    object-fit: contain;
    pointer-events: auto;
}

/* INTERACTIVE COMPONENTS ENGINE */
.interactive-canvas {
    display: block;
    pointer-events: auto;
}

/* The actual positioned layer pieces */
.slide-component {
    position: absolute;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s ease;
    cursor: pointer;
    z-index: 2;
    border-radius: 4px;
}

/* Subtle Hover zoom for interactive layer elements */
.slide-component:hover {
    transform: scale(1.025);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--secondary-glow);
    z-index: 10 !important;
}

.slide-component.bg-component:hover {
    transform: none;
    box-shadow: none;
    z-index: 1 !important;
    cursor: default;
}

/* Layer Highlighter (pulse animation when clicked in tree) */
.slide-component.highlighted {
    animation: component-pulse-glow 1.5s infinite alternate ease-in-out !important;
    box-shadow: 0 0 25px var(--secondary), 0 0 0 2px var(--secondary) !important;
    z-index: 100 !important;
}

@keyframes component-pulse-glow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2) drop-shadow(0 0 15px var(--secondary)); }
}

/* Diagnostic layout grids styling */
.stage-container.show-guides::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(190, 95, 50, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(190, 95, 50, 0.08) 1px, transparent 1px);
    background-size: 5% 8.888%;
    pointer-events: none;
    z-index: 99;
}

/* DIAGNOSTIC COMPONENT BOXES (visual grid) */
.slide-component-guide {
    position: absolute;
    border: 1px dashed var(--secondary);
    background-color: rgba(190, 95, 50, 0.04);
    pointer-events: none;
    z-index: 98;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2px 4px;
    font-size: 9px;
    font-family: monospace;
    color: var(--secondary);
    font-weight: 700;
}

/* FLOATING PRESENTATION BAR CONTROLS */
.controls-panel {
    height: 64px;
    margin: 0 24px 16px 24px;
    border-radius: 12px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.controls-center {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hud-btn {
    background: var(--bg-panel-hover);
    border: 1px solid var(--border-standard);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.hud-btn:hover {
    color: var(--text-main);
    border-color: var(--border-glow);
    background: hsla(190, 95%, 50%, 0.03);
}

.hud-btn.active {
    color: var(--secondary);
    border-color: rgba(190, 95, 50, 0.4);
    background-color: hsla(190, 95%, 50%, 0.08);
    box-shadow: 0 0 15px rgba(190, 95, 50, 0.1);
}

.small-hud-btn {
    width: 34px;
    height: 34px;
}

/* Laser Indicator Dot */
.laser-dot-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--text-dim);
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
    transition: var(--transition-smooth);
}

.hud-btn.active .laser-dot-indicator {
    background-color: hsl(0, 100%, 55%);
    box-shadow: 0 0 8px hsl(0, 100%, 55%);
    animation: laser-pulse-indicator 1.2s infinite;
}

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

/* Autoplay Progress Bar */
.progress-bar-container {
    width: 80px;
    height: 4px;
    background-color: var(--bg-darker);
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 99px;
    transition: width 0.1s linear;
}

/* FILMSTRIP FILM CAROUSEL (BOTTOM) */
.filmstrip-container {
    height: 110px;
    display: flex;
    flex-direction: column;
    border-bottom: none;
    border-left: none;
    border-right: none;
    padding: 8px 24px 0 24px;
    z-index: 5;
    transition: var(--transition-smooth);
}

.filmstrip-container.collapsed {
    height: 32px;
    padding-top: 4px;
}

.filmstrip-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
    cursor: pointer;
}

.filmstrip-container.collapsed .filmstrip-scroll-area {
    display: none;
}

.filmstrip-scroll-area {
    flex: 1;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    align-items: center;
}

.thumb-card {
    height: 62px;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-darker);
    border-radius: 6px;
    border: 1px solid var(--border-standard);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: var(--transition-smooth);
}

.thumb-card:hover {
    transform: translateY(-2px);
    border-color: var(--text-muted);
}

.thumb-card:hover img {
    opacity: 0.85;
}

.thumb-card.active {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(190, 95, 50, 0.35);
    transform: translateY(-2px);
}

.thumb-card.active img {
    opacity: 1;
}

.thumb-num {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 9px;
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-main);
    padding: 1px 4px;
    border-radius: 3px;
    font-family: monospace;
}

/* LASER POINTER LAYER */
.laser-pointer-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.laser-glow {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: hsl(0, 100%, 55%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 10px hsl(0, 100%, 55%),
        0 0 20px hsl(0, 100%, 55%),
        0 0 35px hsl(0, 100%, 65%);
    filter: blur(1px);
    transition: opacity 0.2s;
    opacity: 0;
}

.laser-click-ring {
    position: absolute;
    border: 2px solid hsl(0, 100%, 55%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: laser-click-wave 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    pointer-events: none;
}

@keyframes laser-click-wave {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 80px; height: 80px; opacity: 0; }
}

/* DETAILS & LAYERS DRAWER (RIGHT) */
.details-drawer {
    width: var(--drawer-width);
    flex-shrink: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), margin-right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: none;
    border-top: none;
    border-bottom: none;
}

.details-drawer.collapsed {
    transform: translateX(100%);
    margin-right: calc(-1 * var(--drawer-width));
}

.drawer-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-standard);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.drawer-section {
    margin-bottom: 24px;
}

.drawer-section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: 12px;
    font-weight: 700;
    border-bottom: 1px solid rgba(190, 95, 50, 0.15);
    padding-bottom: 6px;
}

.drawer-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.layers-tree-list {
    list-style: none;
    font-family: monospace;
    font-size: 11px;
}

.layer-tree-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-standard);
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.layer-tree-item:hover {
    border-color: var(--secondary);
    background-color: var(--bg-panel-hover);
}

.layer-tree-item.active {
    border-color: var(--secondary);
    background-color: hsla(190, 95%, 50%, 0.08);
}

.layer-name {
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 170px;
}

.layer-coords {
    color: var(--text-dim);
    font-size: 10px;
}

.diagnostics-box {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-standard);
    border-radius: 8px;
    padding: 12px;
    font-family: monospace;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    max-height: 150px;
    overflow-y: auto;
}

.metadata-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.metadata-table td {
    padding: 8px 4px;
    border-bottom: 1px solid var(--border-standard);
}

.metadata-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

.metadata-table td:last-child {
    color: var(--text-main);
    text-align: right;
    font-weight: 600;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--accent);
    margin-right: 4px;
}

/* KEYBOARD SHORTCUTS MODAL overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 480px;
    max-width: 90vw;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 30px rgba(263, 90%, 62%, 0.1);
    border: 1px solid rgba(263, 90%, 62%, 0.2);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-standard);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-main), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.shortcut-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shortcut-row {
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.shortcut-row:last-child {
    border-bottom: none;
}

.key {
    background: var(--bg-panel-hover);
    border: 1px solid var(--text-muted);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-family: monospace;
    font-weight: 700;
    color: var(--secondary);
    box-shadow: 0 2px 0 rgba(0,0,0,0.5);
    margin-right: 6px;
}

.desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-standard);
    display: flex;
    justify-content: flex-end;
}

/* STAGE CANVAS NOTIFIER */
.hud-notifier {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background-color: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--secondary);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 99px;
    pointer-events: none;
    z-index: 200;
    opacity: 0;
    box-shadow: 0 4px 20px rgba(190, 95, 50, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.hud-notifier.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* COMPONENT ENTRANCE ANIMATIONS (Directional Staggered) */

/* Background components simply fade in */
.anim-fade-in {
    animation: comp-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes comp-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Left panel columns slide from left */
.anim-slide-in-left {
    animation: comp-slide-in-left 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes comp-slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-80px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Right panel columns slide from right */
.anim-slide-in-right {
    animation: comp-slide-in-right 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes comp-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(80px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Bottom banner bars slide up */
.anim-slide-in-bottom {
    animation: comp-slide-in-bottom 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes comp-slide-in-bottom {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Center elements pop and bounce */
.anim-pop-in {
    animation: comp-pop-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

@keyframes comp-pop-in {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* Top elements slide from top */
.anim-slide-in-top {
    animation: comp-slide-in-top 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes comp-slide-in-top {
    from {
        opacity: 0;
        transform: translateY(-80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* INTERACTIVE EXPLAINER DRAWER CUSTOM STYLES */
.explainer-card {
    background: rgba(190, 95, 50, 0.04);
    border: 1px solid rgba(190, 95, 50, 0.15);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    animation: comp-fade-in 0.4s ease forwards;
    box-shadow: inset 0 0 15px rgba(190, 95, 50, 0.05);
}

.explainer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.explainer-tag {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: var(--secondary);
    color: var(--bg-darker);
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.explainer-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 12px;
    border-left: 3px solid var(--secondary);
    padding-left: 8px;
}

.explainer-desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.insight-box {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--primary);
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.insight-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 4px;
    display: block;
}

.view-overview-btn {
    width: 100%;
    margin-top: 8px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-standard);
    color: var(--text-muted);
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.view-overview-btn:hover {
    border-color: var(--secondary);
    color: var(--text-main);
    background-color: var(--bg-panel-hover);
}

