* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Consolas, monospace;
}

body {
  background: black;
  overflow: hidden;
  color: #00ff66;
}

canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.overlay {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.terminal {
  width: 90%;
  max-width: 600px;
  padding: 30px;
  background: rgba(0,0,0,0.65);
  border: 1px solid #00ff66;
  box-shadow: 0 0 40px #00ff66;
}

#typewriter {
  font-size: 15px;
  line-height: 1.8;
  min-height: 140px;
}

.progress-box {
  margin-top: 20px;
}

.bar {
  width: 100%;
  height: 10px;
  background: #003b1f;
  margin-top: 8px;
}

#progress {
  height: 100%;
  width: 0%;
  background: #00ff66;
}

#percent {
  margin-top: 5px;
}

.info {
  margin-top: 20px;
  font-size: 13px;
}

.login {
  position: fixed;
  inset: 0;
  background: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  z-index: 5;
}

.login input {
  background: black;
  border: 1px solid #00ff66;
  color: #00ff66;
  padding: 10px;
  width: 250px;
}

.login button {
  padding: 10px 30px;
  background: #00ff66;
  border: none;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* ===== EXTREME CYBERPUNK DASHBOARD ===== */
.dashboard {
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 20% 50%, rgba(0,255,255,0.05), black);
  color: #00ff66;
  overflow: hidden;
  position: relative;
  font-family: "Courier New", monospace;
}

.dashboard::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      0deg,
      rgba(0, 255, 102, 0.02),
      rgba(0, 255, 102, 0.02) 2px,
      transparent 2px,
      transparent 4px
    );
  pointer-events: none;
  z-index: 1;
  animation: flicker 0.15s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.98; }
}

.dashboard-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 10px;
  padding: 15px;
}

.sidebar {
  background: rgba(0, 20, 40, 0.9);
  border: 2px solid #00ff66;
  border-right: 3px solid #00ffff;
  padding: 20px;
  box-shadow: inset 0 0 30px rgba(0, 255, 102, 0.1), 0 0 30px rgba(0, 255, 102, 0.2);
  overflow-y: auto;
  font-size: 12px;
}

.sidebar h3 {
  color: #00ffff;
  margin-bottom: 15px;
  border-bottom: 1px dashed #00ff66;
  padding-bottom: 8px;
  text-shadow: 0 0 10px #00ff66;
}

.sidebar-item {
  padding: 10px;
  margin: 8px 0;
  background: rgba(0, 255, 102, 0.05);
  border-left: 3px solid #00ffff;
  cursor: pointer;
  transition: all 0.3s;
}

.sidebar-item:hover {
  background: rgba(0, 255, 102, 0.15);
  box-shadow: inset 0 0 10px rgba(0, 255, 102, 0.3);
  border-left-color: #00ff66;
}

.main-content {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 15px;
  overflow-y: auto;
}

.top-bar {
  background: rgba(0, 40, 60, 0.95);
  border: 2px solid #00ffff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #00ff66, #00ffff);
  border: 2px solid #00ff66;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 0 15px #00ff66;
}

.logout-btn {
  padding: 8px 15px;
  background: #ff0066;
  border: 2px solid #ff00ff;
  color: white;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 10px #ff0066;
  transition: all 0.3s;
  font-family: "Courier New", monospace;
}

.logout-btn:hover {
  box-shadow: 0 0 20px #ff0066, inset 0 0 10px #ff0066;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.widget {
  background: rgba(0, 30, 50, 0.85);
  border: 2px solid #00ff66;
  padding: 20px;
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.2), inset 0 0 20px rgba(0, 255, 102, 0.05);
  position: relative;
  overflow: hidden;
}

.widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #00ff66, #00ffff, #ff0066);
  animation: sweep 3s infinite;
}

@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.widget-title {
  color: #00ffff;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 0 10px #00ff66;
  border-bottom: 1px solid rgba(0, 255, 102, 0.3);
  padding-bottom: 8px;
}

.metric {
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.metric-label {
  color: #00ffff;
}

.metric-value {
  color: #00ff66;
  font-weight: bold;
  text-shadow: 0 0 8px #00ff66;
}

.progress-bar-small {
  width: 100%;
  height: 8px;
  background: rgba(0, 255, 102, 0.1);
  margin-top: 5px;
  border: 1px solid #00ff66;
  position: relative;
  overflow: hidden;
}

.progress-bar-small::after {
  content: "";
  height: 100%;
  background: linear-gradient(90deg, #00ff66, #00ffff);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { width: 20%; }
  50% { width: 80%; }
}

.threat-level {
  padding: 15px;
  background: rgba(255, 0, 102, 0.1);
  border-left: 4px solid #ff0066;
  margin: 10px 0;
  font-size: 12px;
}

.alert-high {
  color: #ff0066;
  font-weight: bold;
}

.alert-medium {
  color: #ffaa00;
}

.alert-low {
  color: #00ff66;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  animation: scan 8s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(10px); }
}
