/* ==========================================================================
   OMEGA VAULT GLOBAL FUTURISTIC CORE STYLE SHEET
   ========================================================================== */

:root {
  --color-obsidian: #030303;
  --color-cyan: #00F0FF;
  --color-magenta: #FF2E9A;
  --color-silver: #E8F1FF;
  --color-firebase: #FF9100;
  
  --color-cyan-glow: rgba(0, 240, 255, 0.45);
  --color-magenta-glow: rgba(255, 46, 154, 0.45);
  --color-firebase-glow: rgba(255, 145, 0, 0.45);
  --color-glass-bg: rgba(3, 3, 3, 0.85);
  --color-glass-border: rgba(232, 241, 255, 0.08);

  --font-header: 'Orbitron', sans-serif;
  --font-body: 'Inter', 'Poppins', sans-serif;
}

/* Reset and Core Base styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--color-cyan) rgba(3, 3, 3, 0.2);
}

body {
  background-color: var(--color-obsidian);
  color: var(--color-silver);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Background Animated Canvas Layer */
#neural-grid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  pointer-events: auto;
}

/* cyber scanlines overlay */
.cyber-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    rgba(232, 241, 255, 0) 50%, 
    rgba(3, 3, 3, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 4px, 3px 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.85;
}

.holographic-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 50%, rgba(232, 241, 255, 0.03) 0%, rgba(3, 3, 3, 0.8) 100%);
  z-index: -1;
  pointer-events: none;
}

.moving-glow {
  position: fixed;
  top: -20%;
  left: -20%;
  width: 140vw;
  height: 140vh;
  background: radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.08) 0%, rgba(255, 46, 154, 0.06) 40%, rgba(3, 3, 3, 0) 70%);
  z-index: -2;
  pointer-events: none;
  animation: slowAmbientFlow 28s infinite alternate ease-in-out;
}

/* Animations */
@keyframes slowAmbientFlow {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(8%, -6%) rotate(15deg);
  }
  100% {
    transform: translate(-5%, 8%) rotate(-10deg);
  }
}

/* SYSTEM BOOT PRELOADER */
.boot-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-obsidian);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

.boot-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.boot-terminal {
  width: 100%;
  max-width: 580px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 4px;
  padding: 30px;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.boot-logo {
  font-family: var(--font-header);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--color-cyan);
  text-shadow: 0 0 10px var(--color-cyan-glow);
  text-align: center;
  margin-bottom: 25px;
}

.boot-scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
  animation: scanSweeper 2.2s infinite ease-in-out;
}

@keyframes scanSweeper {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.boot-text-container {
  height: 160px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.82rem;
  color: rgba(232, 241, 255, 0.7);
  padding: 10px;
  background: rgba(3, 3, 3, 0.8);
  border: 1px solid rgba(232, 241, 255, 0.05);
  border-radius: 2px;
  margin-bottom: 25px;
  line-height: 1.5;
}

.boot-log {
  margin-bottom: 5px;
}

.boot-log.info { color: var(--color-cyan); }
.boot-log.warn { color: var(--color-magenta); }
.boot-log.success { color: #00FF66; }

.boot-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(232, 241, 255, 0.05);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}

.boot-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-magenta));
  box-shadow: 0 0 8px var(--color-cyan);
  transition: width 0.08s ease;
}

.boot-status-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-header);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: rgba(232, 241, 255, 0.5);
}

/* SYSTEM LAYOUT CONTAINER */
.system-container {
  max-width: 1550px;
  margin: 0 auto;
  padding: 30px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.system-container.hidden {
  display: none;
}

/* HEADER STYLE */
.system-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(232, 241, 255, 0.05);
}

.header-logo-group {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-family: var(--font-header);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 8px;
  color: var(--color-silver);
  position: relative;
  text-transform: uppercase;
}

/* Cybernetic Glitch reveal effect */
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--color-cyan);
  background: transparent;
  clip: rect(0, 0, 0, 0);
  animation: glitchText 4s infinite linear alternate-reverse;
}

@keyframes glitchText {
  0% { clip: rect(10px, 9999px, 45px, 0); }
  5% { clip: rect(32px, 9999px, 12px, 0); }
  10% { clip: rect(0, 0, 0, 0); }
  90% { clip: rect(0, 0, 0, 0); }
  95% { clip: rect(15px, 9999px, 50px, 0); }
  100% { clip: rect(2px, 9999px, 20px, 0); }
}

.hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: rgba(232, 241, 255, 0.45);
  margin-top: 5px;
  text-transform: uppercase;
  font-family: var(--font-header);
}

/* GLOBAL SYSTEM STATUS BADGE */
.security-status-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: var(--font-header);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  background: rgba(3, 3, 3, 0.6);
  border: 1px solid rgba(232, 241, 255, 0.06);
}

.security-status-badge.online-mode {
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--color-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}

.security-status-badge.sandbox-mode {
  border-color: rgba(255, 46, 154, 0.3);
  color: var(--color-magenta);
  box-shadow: 0 0 10px rgba(255, 46, 154, 0.05);
}

.security-status-badge.firebase-mode {
  border-color: rgba(255, 145, 0, 0.35);
  color: var(--color-firebase);
  box-shadow: 0 0 10px rgba(255, 145, 0, 0.08);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: statusPulse 1.8s infinite ease-in-out;
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* GLASS PANEL WIDGET STYLE */
.glass-panel {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 
              inset 0 1px 1px rgba(232, 241, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 241, 255, 0.15), transparent);
}

.glass-inner {
  background: rgba(3, 3, 3, 0.4);
  border: 1px solid rgba(232, 241, 255, 0.03);
  border-radius: 4px;
  padding: 15px;
}

/* MAIN DASHBOARD GRID LAYOUT */
.dashboard-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 25px;
  flex: 1;
  margin-bottom: 25px;
}

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* LEFT COLUMN: AUTH PANEL */
.auth-card {
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.auth-card:hover {
  border-color: rgba(0, 240, 255, 0.18);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 
              0 0 25px rgba(0, 240, 255, 0.04);
}

/* Auth Navigation Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(232, 241, 255, 0.05);
  margin-bottom: 25px;
  gap: 5px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 10px;
  font-family: var(--font-header);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(232, 241, 255, 0.4);
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.tab-btn:hover {
  color: var(--color-silver);
}

.tab-btn.active {
  color: var(--color-cyan);
}

.tab-btn.active::after {
  background-color: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
}

/* Forms views transitions */
.tab-content-container {
  position: relative;
  flex: 1;
}

.auth-form-view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.auth-form-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-family: var(--font-header);
  font-size: 1.15rem;
  letter-spacing: 2px;
  color: var(--color-silver);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 0.8rem;
  color: rgba(232, 241, 255, 0.4);
  margin-bottom: 25px;
  line-height: 1.4;
}

/* Form Input Elements */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-family: var(--font-header);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: rgba(232, 241, 255, 0.45);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  background: rgba(3, 3, 3, 0.7);
  border: 1px solid rgba(232, 241, 255, 0.08);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-silver);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.input-wrapper input:focus {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.08);
  background: rgba(3, 3, 3, 0.9);
}

.input-decor {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(232, 241, 255, 0.15);
  pointer-events: none;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.input-wrapper input:focus + .input-decor {
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
}

/* BIOMETRIC SCANNER GRAPHICS WIDGET */
.biometric-trigger-container {
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(3, 3, 3, 0.5);
  border: 1px dashed rgba(232, 241, 255, 0.08);
  border-radius: 4px;
}

.biometric-trigger-container label {
  display: block;
  font-family: var(--font-header);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: rgba(232, 241, 255, 0.45);
  margin-bottom: 12px;
}

.scanner-status {
  background: rgba(3, 3, 3, 0.8);
  border: 1px solid rgba(232, 241, 255, 0.05);
  color: rgba(232, 241, 255, 0.35);
  padding: 10px;
  font-family: monospace;
  font-size: 0.72rem;
  text-align: center;
  border-radius: 2px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.scanner-status.complete {
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--color-cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.03);
}

.scanner-widget-box {
  display: flex;
  gap: 15px;
  align-items: center;
  background: rgba(3, 3, 3, 0.8);
  border: 1px solid rgba(232, 241, 255, 0.05);
  border-radius: 3px;
  padding: 15px;
  margin-bottom: 15px;
}

/* Retinal scan circles */
.scanner-circle {
  width: 60px;
  height: 60px;
  border: 1.5px solid rgba(232, 241, 255, 0.1);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
}

.scanner-circle::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  border: 1px dashed rgba(232, 241, 255, 0.15);
  border-radius: 50%;
}

.scanner-core {
  width: 14px;
  height: 14px;
  background: rgba(232, 241, 255, 0.2);
  border-radius: 50%;
  position: relative;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.scanner-circle.active {
  border-color: var(--color-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.scanner-circle.active .scanner-core {
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
}

.scanner-circle.scanning-run .scanner-sweep {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 240, 255, 0) 60%, rgba(0, 240, 255, 0.45));
  animation: sweepMotion 1.5s infinite linear;
}

.scanner-circle.scanning-run.complete-run .scanner-sweep {
  animation: none;
  background: none;
}

.scanner-circle.scanning-run.complete-run {
  border-color: #00FF66;
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.25);
}

.scanner-circle.scanning-run.complete-run .scanner-core {
  background: #00FF66;
  box-shadow: 0 0 10px #00FF66;
}

@keyframes sweepMotion {
  0% { transform: translateY(0%); }
  100% { transform: translateY(200%); }
}

.scanner-metrics {
  flex: 1;
  font-family: monospace;
  font-size: 0.68rem;
  color: rgba(232, 241, 255, 0.5);
  line-height: 1.6;
}

.scanner-metrics p {
  white-space: nowrap;
}

.scanner-metrics span {
  font-weight: bold;
}

.status-warning { color: var(--color-magenta); }
.status-scanning { color: var(--color-cyan); animation: labelBlink 0.6s infinite alternate; }
.status-complete { color: #00FF66; }

@keyframes labelBlink {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.scan-trigger-btn {
  width: 100%;
  background: transparent;
  padding: 10px;
  font-family: var(--font-header);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
}

.scan-trigger-btn.cyan-btn {
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
}

.scan-trigger-btn.cyan-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.scan-trigger-btn.magenta-btn {
  border: 1px solid var(--color-magenta);
  color: var(--color-magenta);
}

.scan-trigger-btn.magenta-btn:hover {
  background: rgba(255, 46, 154, 0.08);
  box-shadow: 0 0 15px rgba(255, 46, 154, 0.15);
}

/* Master authentication action submit btn */
.submit-auth-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--color-cyan), rgba(0, 240, 255, 0.6));
  border: none;
  border-radius: 4px;
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: #000;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.submit-auth-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #00ffff, var(--color-cyan));
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--color-cyan-glow);
}

.submit-auth-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-auth-btn:disabled, .submit-auth-btn.disabled-state {
  background: rgba(232, 241, 255, 0.03);
  border: 1px solid rgba(232, 241, 255, 0.05);
  color: rgba(232, 241, 255, 0.15);
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* RIGHT COLUMN: SECURITY DASHBOARD COMMAND */
.dashboard-card {
  display: flex;
  flex-direction: column;
  padding: 25px;
}

.dashboard-card:hover {
  border-color: rgba(255, 46, 154, 0.12);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 
              0 0 25px rgba(255, 46, 154, 0.03);
}

/* DASHBOARD LOCK SCREEN PANEL */
.dashboard-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 3, 3, 0.95);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.dashboard-lock-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-shield-icon {
  margin-bottom: 25px;
  animation: lockShieldGlow 3s infinite ease-in-out;
}

@keyframes lockShieldGlow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 46, 154, 0.15)); }
  50% { filter: drop-shadow(0 0 20px rgba(255, 46, 154, 0.4)); }
}

.lock-title {
  font-family: var(--font-header);
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 4px;
  color: var(--color-magenta);
  text-shadow: 0 0 12px var(--color-magenta-glow);
  margin-bottom: 12px;
}

.lock-subtitle {
  font-size: 0.85rem;
  color: rgba(232, 241, 255, 0.4);
  max-width: 580px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.lock-status-badge {
  padding: 8px 18px;
  border: 1px solid rgba(255, 46, 154, 0.3);
  background: rgba(255, 46, 154, 0.05);
  color: var(--color-magenta);
  font-family: var(--font-header);
  font-size: 0.72rem;
  letter-spacing: 2px;
  border-radius: 4px;
}

/* UNLOCKED DASHBOARD STYLES */
.dashboard-unlocked-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.dashboard-unlocked-content.visible {
  opacity: 1;
  transform: scale(1);
}

.dashboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(232, 241, 255, 0.05);
}

.dashboard-title {
  font-family: var(--font-header);
  font-size: 1.15rem;
  letter-spacing: 3px;
  color: var(--color-cyan);
  text-shadow: 0 0 8px var(--color-cyan-glow);
}

.operator-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(232, 241, 255, 0.02);
  border: 1px solid rgba(232, 241, 255, 0.05);
  padding: 6px 12px;
  border-radius: 4px;
}

.operator-avatar {
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
  border: 1px solid var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan-glow);
  border-radius: 50%;
}

.operator-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-silver);
}

.operator-clearance {
  font-size: 0.65rem;
  font-family: var(--font-header);
  color: var(--color-cyan);
}

/* METRICS PANEL MODULES */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-widget {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.metric-label {
  font-family: var(--font-header);
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: rgba(232, 241, 255, 0.4);
  margin-bottom: 6px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--color-silver);
}

.metric-subtext {
  font-size: 0.68rem;
  color: rgba(232, 241, 255, 0.3);
}

.status-ok { background-color: #00FF66; box-shadow: 0 0 8px #00FF66; }
.status-accent { background-color: var(--color-cyan); box-shadow: 0 0 8px var(--color-cyan); }
.status-danger { background-color: var(--color-magenta); box-shadow: 0 0 8px var(--color-magenta); }

.chart-canvas-box {
  width: 100%;
  height: 30px;
  opacity: 0.75;
}

/* DYNAMIC SPLIT LAYOUT FOR THREAT DETECTOR & SESSION CONFIG */
.dashboard-widget-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 900px) {
  .dashboard-widget-row {
    grid-template-columns: 1fr;
  }
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(232, 241, 255, 0.04);
  padding-bottom: 8px;
}

.widget-header h3 {
  font-family: var(--font-header);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: rgba(232, 241, 255, 0.6);
}

.threat-sim-btn {
  background: transparent;
  border: 1px solid var(--color-magenta);
  color: var(--color-magenta);
  padding: 4px 10px;
  font-family: var(--font-header);
  font-size: 0.6rem;
  letter-spacing: 1px;
  font-weight: bold;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.threat-sim-btn:hover {
  background: rgba(255, 46, 154, 0.12);
  box-shadow: 0 0 10px var(--color-magenta-glow);
}

/* Threat Log Feed */
.threat-log-container {
  height: 140px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.7rem;
  background: rgba(3, 3, 3, 0.6);
  border: 1px solid rgba(232, 241, 255, 0.03);
  padding: 8px;
  border-radius: 2px;
}

.threat-log-line {
  margin-bottom: 6px;
  line-height: 1.4;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(232, 241, 255, 0.02);
  display: flex;
  flex-direction: column;
}

.threat-log-time {
  color: rgba(232, 241, 255, 0.35);
  font-size: 0.65rem;
}

.threat-badge {
  display: inline-block;
  padding: 1px 4px;
  font-size: 0.58rem;
  font-weight: bold;
  border-radius: 2px;
  margin-right: 5px;
}

.threat-badge.threat {
  background: rgba(255, 46, 154, 0.15);
  border: 1px solid var(--color-magenta);
  color: var(--color-magenta);
}

.threat-badge.info {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
}

.threat-badge.success {
  background: rgba(0, 255, 102, 0.15);
  border: 1px solid #00FF66;
  color: #00FF66;
}

/* SESSION MATRIX ROWS */
.session-matrix-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 140px;
  justify-content: center;
}

.session-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(232, 241, 255, 0.02);
  padding-bottom: 6px;
}

.session-stat-row span:first-child {
  color: rgba(232, 241, 255, 0.4);
  font-family: var(--font-header);
  font-size: 0.65rem;
  letter-spacing: 1px;
}

.text-cyan { color: var(--color-cyan); }
.text-magenta { color: var(--color-magenta); }
.text-silver { color: var(--color-silver); }

.text-truncate {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* SECURE CODES VAULT TERMINAL WIDGET */
.secure-terminal-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(232, 241, 255, 0.05);
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.term-status-badge {
  font-family: var(--font-header);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  color: var(--color-cyan);
  text-shadow: 0 0 6px var(--color-cyan-glow);
}

.decryption-node-controls {
  display: flex;
  gap: 8px;
}

.decrypt-action-btn {
  background: transparent;
  border: 1px solid rgba(232, 241, 255, 0.15);
  color: rgba(232, 241, 255, 0.6);
  padding: 6px 12px;
  font-family: var(--font-header);
  font-size: 0.62rem;
  letter-spacing: 1px;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.decrypt-action-btn:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.decrypt-action-btn.active {
  background: var(--color-cyan);
  border-color: var(--color-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--color-cyan-glow);
}

.terminal-body {
  height: 180px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.72rem;
  color: #00FF66;
  background: rgba(3, 3, 3, 0.85);
  border: 1px solid rgba(232, 241, 255, 0.04);
  padding: 12px;
  border-radius: 2px;
  line-height: 1.6;
}

.terminal-line {
  margin-bottom: 8px;
  word-break: break-all;
}

.terminal-line.error {
  color: var(--color-magenta);
}

.terminal-line.success-code {
  color: var(--color-cyan);
}

/* FOOTER ACTIONS */
.dashboard-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(232, 241, 255, 0.05);
  padding-top: 15px;
}

.system-coherence-rating {
  font-family: var(--font-header);
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: rgba(232, 241, 255, 0.35);
}

.logout-btn {
  background: transparent;
  border: 1px solid var(--color-magenta);
  color: var(--color-magenta);
  padding: 10px 18px;
  font-family: var(--font-header);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.logout-btn:hover {
  background: linear-gradient(135deg, var(--color-magenta), rgba(255, 46, 154, 0.7));
  color: #000;
  box-shadow: 0 0 20px var(--color-magenta-glow);
}

/* DYNAMIC TOAST NOTIFICATION CONTAINER */
.security-notification {
  position: fixed;
  bottom: -100px;
  right: 25px;
  width: 320px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(232, 241, 255, 0.06);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  overflow: hidden;
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.security-notification.show {
  bottom: 25px;
}

.notif-bar {
  width: 4px;
  background-color: var(--color-cyan);
}

.notif-bar.warn { background-color: var(--color-magenta); }
.notif-bar.success { background-color: #00FF66; }

.notif-content {
  padding: 15px;
  flex: 1;
}

.notif-content h4 {
  font-family: var(--font-header);
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--color-silver);
  margin-bottom: 4px;
}

.notif-content p {
  font-size: 0.75rem;
  color: rgba(232, 241, 255, 0.45);
  line-height: 1.3;
}

/* WIDGET FOOTER COPYRIGHT */
.vault-footer {
  text-align: center;
  padding: 20px 0;
  font-family: var(--font-header);
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: rgba(232, 241, 255, 0.2);
  border-top: 1px solid rgba(232, 241, 255, 0.03);
}

/* CUSTOM SCROLLBARS FOR FUTURISTIC FEEL */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: rgba(3, 3, 3, 0.2);
}

::-webkit-scrollbar-thumb {
  background: var(--color-cyan);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-magenta);
}
