/* FuturisticShell.css — Sci-Fi Command Center Styles */
/* Wave 19: AppSurface Futuristic UI — Holographic Glass-Morphism Theme */

/* ── CSS Variables (Cyberpunk Palette) ── */
/* Token definitions live in wit-futuristic-theme.css (single source; loaded first).
   The former duplicate :root here shadowed the canonical values - reconciled 2026-09-15. */

/* ── Starfield Canvas ── */
.starfield-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ── Ambient Status Strip ── */
.ambient-strip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: rgba(10, 14, 23, 0.95);
    border-bottom: 1px solid var(--holo-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

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

.ambient-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-success);
    box-shadow: 0 0 6px var(--neon-success);
}
.ambient-dot.offline { background: var(--neon-danger); box-shadow: 0 0 6px var(--neon-danger); }

.ambient-separator { color: var(--holo-border); }

.ambient-text { color: var(--text-secondary); }
.ambient-text.neon-text { color: var(--neon-primary); text-shadow: 0 0 8px rgba(99, 102, 241, 0.5); }
.ambient-text.text-success { color: var(--neon-success); }
.ambient-text.text-warning { color: var(--neon-warning); }

/* ── Futuristic Shell Layout ── */
.futuristic-shell {
    display: flex;
    height: calc(100vh - 28px);
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

/* ── Holographic Panels ── */
.holo-panel {
    background: var(--holo-surface);
    border: 1px solid var(--holo-border);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.holo-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-primary), transparent);
    opacity: 0.5;
}

.holo-left {
    width: 240px;
    min-width: 240px;
    border-right: 1px solid var(--holo-border);
}
.holo-left.collapsed { width: 56px; min-width: 56px; }

.holo-right {
    width: 280px;
    min-width: 280px;
    border-left: 1px solid var(--holo-border);
}
.holo-right.collapsed { width: 56px; min-width: 56px; }

.holo-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 16px;
    gap: 12px;
}

/* ── Panel Header ── */
.holo-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--holo-border);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--neon-primary);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.holo-icon { font-size: 16px; }
.holo-title { flex: 1; }
.holo-collapse-btn {
    background: none;
    border: 1px solid var(--holo-border);
    color: var(--text-dim);
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 10px;
}
.holo-collapse-btn:hover { color: var(--text-primary); border-color: var(--holo-border-active); }

/* ── Navigation ── */
.holo-nav { display: flex; flex-direction: column; padding: 8px; gap: 2px; }

.holo-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.15s;
    position: relative;
}

.holo-nav-item:hover { background: var(--holo-surface-hover); color: var(--text-primary); }
.holo-nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--neon-primary);
    box-shadow: inset 0 0 0 1px var(--holo-border-active);
}

.holo-nav-icon { font-size: 16px; width: 22px; text-align: center; }
.holo-nav-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.holo-badge {
    background: var(--neon-primary);
    color: #fff;
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* ── Domain Chips ── */
.holo-section { padding: 8px; }

.holo-section-title {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    padding: 4px 10px;
    margin-bottom: 4px;
}

.holo-domain-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: none;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.holo-domain-chip:hover { background: var(--holo-surface-hover); }
.holo-domain-chip.active {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--holo-border-active);
    color: var(--neon-primary);
}

.holo-domain-chip small { margin-left: auto; color: var(--text-dim); font-size: 9px; }

/* ── Command Bar ── */
.command-bar {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 560px;
    max-width: 90vw;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.command-bar.visible { opacity: 1; pointer-events: all; }

.command-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(16, 20, 40, 0.95);
    border: 1px solid var(--holo-border-active);
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: var(--holo-glow-strong);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.command-prefix {
    color: var(--neon-primary);
    font-family: var(--font-mono);
    font-size: 16px;
    margin-right: 10px;
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.command-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    font-family: var(--font-mono);
}

.command-input::placeholder { color: var(--text-dim); }

.command-hint {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--holo-border);
}

.command-suggestions {
    margin-top: 4px;
    background: rgba(16, 20, 40, 0.95);
    border: 1px solid var(--holo-border);
    border-radius: 12px;
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.command-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: background 0.1s;
}

.command-suggestion:hover { background: var(--holo-surface-hover); color: var(--text-primary); }

.suggestion-icon { font-size: 16px; width: 22px; }
.suggestion-label { flex: 1; }
.suggestion-shortcut {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
}

/* ── HUD KPI Strip ── */
.hud-kpi-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hud-kpi {
    flex: 1;
    min-width: 140px;
    background: var(--holo-surface);
    border: 1px solid var(--holo-border);
    border-radius: 10px;
    padding: 12px 14px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: all 0.2s;
}

.hud-kpi:hover { border-color: var(--holo-border-active); box-shadow: var(--holo-glow); }
.hud-kpi.alert { border-color: rgba(245, 158, 11, 0.4); }
.hud-kpi.alert .hud-kpi-value { color: var(--neon-warning); }

.hud-kpi-value {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.hud-kpi-label {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.hud-kpi-bar {
    height: 3px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
}

.hud-kpi-fill {
    height: 100%;
    background: var(--neon-primary);
    border-radius: 2px;
    transition: width 0.6s ease;
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.4);
}

.hud-kpi.alert .hud-kpi-fill { background: var(--neon-warning); }

/* ── Glass Panel ── */
.glass-panel {
    background: var(--holo-surface);
    border: 1px solid var(--holo-border);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    flex: 1;
    overflow-y: auto;
}

.holo-content { padding: 20px; }

/* ── Predicted Actions ── */
.holo-action-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--holo-border);
    border-radius: 8px;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    margin-bottom: 4px;
    transition: all 0.15s;
}

.holo-action-card:hover { background: var(--holo-surface-hover); border-color: var(--holo-border-active); }
.holo-action-card.urgent { border-color: rgba(239, 68, 68, 0.4); }

.action-confidence {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--neon-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 36px;
    text-align: center;
}

.action-icon { font-size: 18px; }

.action-info { flex: 1; min-width: 0; }

.action-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-desc {
    font-size: 10px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Recent Entities ── */
.holo-recent-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: background 0.1s;
}

.holo-recent-item:hover { background: var(--holo-surface-hover); }

.recent-icon { font-size: 14px; }
.recent-info { flex: 1; min-width: 0; }

.recent-name {
    font-size: 12px;
    color: var(--text-primary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-type {
    font-size: 9px;
    color: var(--text-dim);
}

.recent-time {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-dim);
}

/* ── System Status ── */
.holo-status { padding: 8px 12px; }

.status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    padding: 3px 0;
}

.status-row span:first-child { width: 32px; color: var(--text-secondary); }
.status-row span:last-child { text-align: right; min-width: 60px; }

.status-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
}

.status-fill {
    height: 100%;
    background: var(--neon-primary);
    border-radius: 2px;
    transition: width 0.5s;
    box-shadow: 0 0 4px rgba(99, 102, 241, 0.3);
}

.status-row .text-success { color: var(--neon-success); }
.status-row .text-warning { color: var(--neon-warning); }
.status-row .text-danger { color: var(--neon-danger); }

/* ── Gesture Zones ── */
.gesture-zone {
    position: fixed;
    z-index: 300;
    pointer-events: none;
}

.gesture-zone.gesture-left { left: 0; top: 28px; bottom: 0; width: 24px; pointer-events: all; }
.gesture-zone.gesture-right { right: 0; top: 28px; bottom: 0; width: 24px; pointer-events: all; }
.gesture-zone.gesture-bottom { left: 0; right: 0; bottom: 0; height: 24px; pointer-events: all; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .holo-left { width: 56px; min-width: 56px; }
    .holo-right { display: none; }
    .hud-kpi { min-width: 100px; }
    .hud-kpi-value { font-size: 16px; }
    .command-bar { width: 95vw; }
}

/* ── Animations ── */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.15); }
    50% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.3); }
}

.holo-panel { animation: pulse-glow 4s ease-in-out infinite; }

@keyframes scan-line {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}
