/* ═══════════════════════════════════════════════════════════════════════════
   obsidian-glass.css — Obsidian Cyber Glass Design System
   Extracted from design_preview.html for full-site migration.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Global ── */
body {
  background-color: #070A11;
  color: #F3F4F6;
  font-family: 'Inter', sans-serif;
  background-image:
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
}

/* ── Glass Cards ── */
.glass-card {
  background: rgba(16, 23, 38, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-card-hover {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.glass-card-interactive {
  transition: all 0.2s;
}

.glass-card-interactive:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* ── Neon Glows ── */
.neon-glow-rose {
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.25);
}

.neon-glow-emerald {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.neon-glow-indigo {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.neon-glow-amber {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

/* ── Buttons ── */
.btn-primary {
  background: #4f46e5; /* indigo-600 */
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #6366f1;
  transform: scale(1.05);
}

.btn-primary-gradient {
  background: linear-gradient(to right, #6366f1, #8b5cf6);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
  border: none;
  cursor: pointer;
}
.btn-primary-gradient:hover {
  background: linear-gradient(to right, #818cf8, #a78bfa);
  transform: scale(1.05);
}

.btn-secondary {
  background: #101726;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(51, 65, 85, 0.8);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-secondary:hover {
  background: #1e293b;
  border-color: #6366f1;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* ── Form Inputs ── */
.input-glass {
  background: #0f172a;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: #e2e8f0;
  transition: border-color 0.2s;
}
.input-glass:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.input-glass::placeholder {
  color: #64748b;
}

/* ── Badges / Tags ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.badge-danger {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.badge-caution {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-safe {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-indigo {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ── Status Dot (animated) ── */
.status-dot {
  position: relative;
  display: inline-flex;
  height: 0.75rem;
  width: 0.75rem;
}
.status-dot::before {
  content: '';
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background: #10b981;
  opacity: 0.75;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.status-dot::after {
  content: '';
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  height: 100%;
  width: 100%;
  background: #10b981;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ── Risk Progress Bar ── */
.risk-bar {
  width: 5rem;
  background: #0f172a;
  border-radius: 9999px;
  height: 0.5rem;
  overflow: hidden;
  border: 1px solid #1e293b;
}
.risk-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}
.risk-bar-danger  { background: #f43f5e; }
.risk-bar-caution { background: #f59e0b; }
.risk-bar-safe    { background: #10b981; }

/* ── Telemetry Banner ── */
.telemetry-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 1rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: #6ee7b7;
  gap: 0.75rem;
}
.telemetry-banner .banner-stat {
  color: #94a3b8;
}
.telemetry-banner .banner-sep {
  color: #334155;
}

/* ── Navigation ── */
.nav-glass {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 17, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
  padding: 1rem 1.5rem;
}

.nav-pill-group {
  display: flex;
  align-items: center;
  background: rgba(11, 15, 25, 0.9);
  padding: 0.375rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(30, 41, 59, 0.9);
  gap: 0.375rem;
}

.nav-pill {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.15s;
  color: #94a3b8;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-pill:hover {
  color: white;
}
.nav-pill.active {
  background: #4f46e5;
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* ── Footer ── */
.footer-glass {
  border-top: 1px solid rgba(30, 41, 59, 0.8);
  padding: 1.5rem 0 2rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

/* ── Custom Scrollbar ── */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #0B0F19;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #1E2D47;
  border-radius: 9999px;
}

/* ── Table (glass variant) ── */
.table-glass {
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
}
.table-glass thead {
  background: rgba(2, 6, 23, 0.8);
  font-size: 0.6875rem;
  font-family: 'JetBrains Mono', monospace;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #1e293b;
}
.table-glass thead th {
  padding: 1rem 1.5rem;
}
.table-glass tbody {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}
.table-glass tbody tr {
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  transition: background-color 0.15s;
}
.table-glass tbody tr:hover {
  background: rgba(30, 41, 59, 0.3);
}
.table-glass tbody td {
  padding: 1rem 1.5rem;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1rem;
  background: #4f46e5;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toast.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Loading ── */
.dash-loading {
  text-align: center;
  padding: 2rem;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

/* ── Link styles ── */
a.glass-link {
  color: #818cf8;
  transition: color 0.15s;
}
a.glass-link:hover {
  color: #a5b4fc;
}

/* ── Divider ── */
.glass-divider {
  border-top: 1px solid rgba(30, 41, 59, 0.8);
}

/* ── Section padding helper ── */
.glass-section {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
  margin-top: 1.5rem;
}
