/* OSINT Dashboard — Layout (Header, Sidebar, Container, Panels) */

/* Header */
.header{background:linear-gradient(135deg,rgba(15,23,41,.85),rgba(26,39,68,.85));backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.08);padding:16px 24px;display:flex;align-items:center;gap:16px;position:relative}
.header svg{width:32px;height:32px;fill:var(--accent)}
.header h1{font-size:22px;font-weight:700;letter-spacing:1px}
.header h1 span{color:var(--accent)}
.header .tag{font-size:11px;background:var(--accent);color:#000;padding:2px 8px;border-radius:10px;font-weight:700;margin-left:8px}
.header-right{margin-left:auto;display:flex;align-items:center;gap:12px}
.header-right .shortcut-hint{font-size:11px;color:var(--text2);background:var(--surface2);padding:4px 10px;border-radius:6px;border:1px solid var(--border)}
.header-right .shortcut-hint kbd{background:var(--border);padding:1px 5px;border-radius:3px;font-size:10px;font-family:inherit}
.hamburger{display:none;background:none;border:none;color:var(--text);font-size:24px;cursor:pointer;padding:10px 12px;min-width:44px;min-height:44px;touch-action:manipulation;-webkit-tap-highlight-color:rgba(255,255,255,.2)}

/* Threat Status Bar */
.threat-bar{background:rgba(17,24,39,.7);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.06);padding:4px 24px;display:flex;align-items:center;gap:8px;font-size:11px;color:var(--text2);overflow-x:auto;white-space:nowrap}
.tb-clock{color:var(--accent);font-weight:700;font-family:'Courier New',monospace;font-size:12px}
.tb-sep{color:var(--border)}
.tb-item{cursor:pointer;transition:.15s;padding:2px 6px;border-radius:4px}
.tb-item:hover{background:var(--surface2);color:var(--text)}
.threat-bar.tb-critical{animation:tbPulse 2s ease-in-out infinite;border-bottom-color:var(--danger)}
.threat-bar.tb-high{border-bottom-color:#f97316;border-bottom-width:2px}

/* Container & Sidebar */
.container{display:flex;min-height:calc(100vh - 90px)}
.sidebar{width:240px;background:rgba(17,24,39,.7);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-right:1px solid rgba(255,255,255,.06);padding:12px 0;flex-shrink:0;display:flex;flex-direction:column;overflow-y:auto;max-height:calc(100vh - 90px)}
.sidebar-section{padding:6px 16px;font-size:10px;text-transform:uppercase;letter-spacing:1.5px;color:var(--text2);margin-top:12px}
.sidebar button{display:flex;align-items:center;gap:10px;width:100%;padding:11px 20px;border:none;background:none;color:var(--text2);font-size:13.5px;cursor:pointer;text-align:left;transition:.15s;touch-action:manipulation;-webkit-tap-highlight-color:rgba(0,212,170,.2)}
.sidebar button:hover{background:var(--surface2);color:var(--text)}
.sidebar button.active{background:var(--surface2);color:var(--accent);border-left:3px solid var(--accent)}
.sidebar button .icon{font-size:16px;width:22px;text-align:center}
.sidebar button .kbd{margin-left:auto;font-size:10px;color:var(--border);background:var(--bg);padding:2px 6px;border-radius:3px}
.sidebar-bottom{margin-top:auto;padding:12px 16px;border-top:1px solid var(--border)}
.sidebar-bottom .stats{font-size:11px;color:var(--text2);line-height:1.8}
.sidebar-bottom .stats span{color:var(--accent);font-weight:600}
.main{flex:1;padding:28px 32px;overflow-y:auto;max-height:calc(100vh - 90px)}

/* Tab panels */
.panel{display:none}.panel.active{display:block}
.panel-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;flex-wrap:wrap;gap:8px}
.panel-title{font-size:20px;font-weight:700}
.panel-actions{display:flex;gap:8px}
.panel-desc{color:var(--text2);font-size:13.5px;margin-bottom:24px}

/* Sidebar result badges */
.sidebar-badge{background:var(--accent);color:#000;font-size:9px;font-weight:800;min-width:18px;height:18px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;margin-left:auto;padding:0 5px}
.sidebar-badge.empty{display:none}

/* Splash screen */
#loading-splash{position:fixed;top:0;left:0;width:100%;height:100%;background:#0a0e17;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:99999;transition:opacity .5s ease}
#loading-splash svg{width:64px;height:64px;fill:#3b82f6;margin-bottom:20px;animation:splashPulse 2s ease-in-out infinite}
.splash-title{color:#e2e8f0;font-size:20px;font-weight:700;letter-spacing:1px;margin-bottom:8px}
.splash-sub{color:#64748b;font-size:13px;margin-bottom:24px}
.splash-bar-wrap{width:200px;height:3px;background:#1e293b;border-radius:4px;overflow:hidden}
.splash-bar-fill{width:0%;height:100%;background:linear-gradient(90deg,#3b82f6,#06b6d4);border-radius:4px;transition:width .3s ease}
.splash-status{color:#475569;font-size:11px;margin-top:10px}

/* SOS button */
.btn-sos{background:var(--danger);color:#fff;border:2px solid #ff6666;border-radius:8px;padding:4px 12px;font-size:13px;font-weight:800;cursor:pointer;animation:tbPulse 3s ease-in-out infinite}
