/*
    0
    /e/index.html amount of tasks. 
    Then you can go back to the final task sigil and normally click it 10_000 times
*/
:root {
  --bg1: #071426;
  --bg2: #0a1f3d;
  --card: #0f1e38cc;
  --stroke: #ffffff1a;
  --text: #eaf0ff;
  --muted: #9fb3d9;

  /* D – Denial of Service theme (overload / redline) */
  --accent1: #fb7185; /* hot rose */
  --accent2: #f97316; /* overload orange */
}

html {
  height: 100%;
  background-color: var(--bg1); /* fixes overscroll whiteness */
}

/* Background glow (pressure, heat, disruption) */
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(
      1200px 600px at 20% 10%,
      rgba(251, 113, 133, 0.16) 0%,
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 85% 30%,
      rgba(249, 115, 22, 0.14) 0%,
      transparent 55%
    ),
    linear-gradient(160deg, var(--bg1), var(--bg2));
}

/* Glass cards */
.card-glass {
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, var(--card), #0b1220aa);
  border-radius: 18px;
  box-shadow: 0 10px 30px #00000055;
}

.muted {
  color: var(--muted);
}

/* Topbar */
.topbar {
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
  background: linear-gradient(180deg, #0b1220cc, transparent);
}

/* STRIDE IT link */
.brand-link {
  text-decoration: none;
  color: var(--text);
  position: relative;
  display: inline-block;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.brand-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.brand-link:hover {
  color: #fff;
}

.brand-link:hover::after {
  transform: scaleX(1);
}

/* Badges */
.badge-soft {
  border: 1px solid #ffffff26;
  background: #0b122055;
  color: var(--muted);
  font-weight: 600;
}

/* Terminal / panel box used in labs */
.terminal-box {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: #0b122055;
}

/* Progress bar styling (DoS “redline”) */
.progress {
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
}

/* Make code blocks readable */
code {
  color: #eaf0ff;
}

.lab-note code {
  background: #0b122055;
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  border: 1px solid var(--stroke);
}

/* If you show long tokens (JWT etc) */
code[style*="word-break"] {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.75rem;
  background: #0b122055;
}

/* Optional: make readonly inputs match the theme */
.form-control[readonly] {
  background-color: #1a2338;
  border-color: #ffffff22;
  color: #8fa3c7;
  pointer-events: none;
  cursor: not-allowed;
  opacity: 1;
}

.form-control[readonly]:focus {
  box-shadow: none;
  border-color: #ffffff22;
}
