/* =====================================================================
   ARGUS HUD theme overlay — aplicado depois de styles.css para
   reskinnar o orchestrator dashboard com o look do argus.html (JARVIS-style).
   Apenas overrides — não mexe na estrutura.
   ===================================================================== */

:root {
  --cyan: #00e5ff;
  --cyan-dim: #00b8d4;
  --cyan-glow: rgba(0, 229, 255, 0.6);

  /* Re-mapeia as variáveis do styles.css para a paleta argus */
  --bg-primary: #000814;
  --bg-secondary: #001220;
  --bg-card: #001a2e;
  --bg-hover: #002442;
  --text-primary: #e0f7fa;
  --text-secondary: #80deea;
  --text-muted: #4d8b9a;
  --accent-primary: #00e5ff;
  --accent-secondary: #00b8d4;
  --success: #00e676;
  --warning: #ffb74d;
  --danger: #ff5252;
  --info: #00e5ff;
  --border-color: rgba(0, 229, 255, 0.18);
  --shadow: 0 4px 14px -2px rgba(0, 229, 255, 0.18);
  --radius: 4px;
  --radius-sm: 3px;
}

* { -webkit-font-smoothing: antialiased; }

body {
  font-family: 'SF Mono', 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Hex grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at center, transparent 0%, var(--bg-primary) 80%),
    repeating-linear-gradient(60deg, transparent 0 39px, rgba(0,229,255,0.04) 39px 40px),
    repeating-linear-gradient(-60deg, transparent 0 39px, rgba(0,229,255,0.04) 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(0,229,255,0.04) 39px 40px);
  pointer-events: none;
  z-index: 0;
}

/* Scan lines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,229,255,0.06) 50%, transparent 100%);
  background-size: 100% 4px;
  pointer-events: none;
  animation: argus-scanlines 8s linear infinite;
  z-index: 1;
  opacity: 0.35;
}
@keyframes argus-scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 100vh; }
}

#app, .login-screen { position: relative; z-index: 2; }

/* ============ Login screen ============ */
.login-screen {
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at center, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at center, transparent 0%, var(--bg-primary) 80%);
}

.login-container {
  background: rgba(0, 26, 46, 0.6);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  position: relative;
}
.login-container::before, .login-container::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border: 1px solid var(--cyan);
  opacity: 0.5;
}
.login-container::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.login-container::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.login-logo { color: var(--cyan); filter: drop-shadow(0 0 12px var(--cyan-glow)); }

.login-title {
  font-family: 'SF Mono', 'JetBrains Mono', 'Consolas', monospace;
  letter-spacing: 8px;
  background: none;
  -webkit-text-fill-color: var(--cyan);
  color: var(--cyan);
  text-shadow: 0 0 16px var(--cyan-glow);
  font-weight: 300;
  font-size: 1.5rem;
}

.login-subtitle {
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.form-group input {
  background: rgba(0, 26, 46, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  color: var(--text-primary);
  letter-spacing: 1px;
}
.form-group input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
}

.btn-login {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 400;
  border-radius: 4px;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-login:hover {
  background: rgba(0, 229, 255, 0.2);
  box-shadow: 0 0 20px var(--cyan-glow);
}

/* ============ Header ============ */
.header {
  background: rgba(0, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}
.header h1 {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  letter-spacing: 6px;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
  font-weight: 300;
  font-size: 1.1rem;
}
.connection-status {
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--cyan-dim);
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-icon:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255, 82, 82, 0.4);
  color: #ff8a8a;
  font-family: inherit;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-logout:hover {
  background: rgba(255, 82, 82, 0.12);
  border-color: var(--danger);
  color: var(--danger);
}

/* ============ Tabs ============ */
.tabs {
  background: rgba(0, 18, 32, 0.6);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  z-index: 50;
}
.tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 12px 16px;
  position: relative;
  transition: color 0.2s;
}
.tab:hover { color: var(--text-secondary); }
.tab.active {
  color: var(--cyan);
  background: transparent;
}
.tab.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* ============ Cards ============ */
.stat-card, .project-card, .recovery-history-item, .quarantine-card,
.assistant-sidebar, .assistant-message, .alert-card, .agent-card,
.health-card, .log-entry, .approval-card {
  background: rgba(0, 26, 46, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  backdrop-filter: blur(4px);
  position: relative;
}
.stat-card:hover, .project-card:hover, .agent-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.12);
}

/* ============ Buttons ============ */
.btn-primary, .btn-success, .btn-warning, .btn-danger, .btn-info {
  font-family: inherit;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: 400;
}
.btn-primary {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid var(--cyan);
  color: var(--cyan);
}
.btn-primary:hover {
  background: rgba(0, 229, 255, 0.22);
  box-shadow: 0 0 14px var(--cyan-glow);
}
.btn-success {
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}
.btn-success:hover { box-shadow: 0 0 14px rgba(0, 230, 118, 0.5); }
.btn-warning {
  background: rgba(255, 183, 77, 0.1);
  border: 1px solid var(--warning);
  color: var(--warning);
}
.btn-warning:hover { box-shadow: 0 0 14px rgba(255, 183, 77, 0.5); }
.btn-danger {
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}
.btn-danger:hover { box-shadow: 0 0 14px rgba(255, 82, 82, 0.5); }

/* ============ Inputs / Selects ============ */
input, select, textarea {
  background: rgba(0, 26, 46, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
  outline: none;
}

/* ============ Status indicators ============ */
.status-dot, .health-status, .badge {
  font-family: inherit;
  letter-spacing: 1px;
}

/* Online/healthy → cyan, not green */
.status-online, .status-healthy, .status-running {
  color: var(--cyan);
}
.status-warning { color: var(--warning); }
.status-offline, .status-error, .status-failed { color: var(--danger); }

/* ============ Headings ============ */
h1, h2, h3, h4 {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
  font-weight: 400;
}
h2 { font-size: 1rem; }
h3 { font-size: 0.85rem; }
h4 { font-size: 0.75rem; color: var(--text-secondary); text-shadow: none; letter-spacing: 3px; }

/* ============ Misc tweaks ============ */
.voice-feedback {
  background: rgba(0, 26, 46, 0.85);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 30px var(--cyan-glow);
}

table {
  background: transparent;
}
table th {
  color: var(--cyan-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.7rem;
  border-bottom: 1px solid var(--border-color);
}
table td {
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
  color: var(--text-primary);
}

/* Loading spinner — cyan */
.spinner circle, .spinner path { stroke: var(--cyan); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-dim); }

/* Selection */
::selection { background: rgba(0, 229, 255, 0.35); color: #fff; }

/* HUD corners — opcionais, decorativos */
.app-hud-corner {
  position: fixed;
  width: 50px;
  height: 50px;
  border: 1px solid var(--cyan);
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}
.app-hud-corner.tl { top: 60px; left: 8px; border-right: none; border-bottom: none; }
.app-hud-corner.tr { top: 60px; right: 8px; border-left: none; border-bottom: none; }
.app-hud-corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.app-hud-corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }
@media (max-width: 720px) { .app-hud-corner { display: none; } }
