body {
  background: #f5f5f9;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Login page styles */
body.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6; /* light gray/white background */
  position: relative;
  overflow: hidden;     /* hide circle overflow */
}

/* Single soft animated blob behind the login card */
body.login-page::before {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #60a5fa, #c4b5fd 40%, #8dbeff 80%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(28px);
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
  animation: ctmCenterBlob 22s ease-in-out infinite alternate;
}

@keyframes ctmCenterBlob {
  0% {
    transform: translate(-50%, -50%) scale(1);
    filter: blur(28px) hue-rotate(0deg);
  }
  50% {
    transform: translate(-50%, -52%) scale(1.08);
    filter: blur(30px) hue-rotate(18deg);
  }
  100% {
    transform: translate(-50%, -48%) scale(1.03);
    filter: blur(28px) hue-rotate(-12deg);
  }
}


.login-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 16px;
}

.login-card {
  background: rgba(15, 23, 42, 0.92); /* dark slate */
  color: #e5e7eb;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.login-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.login-card p.subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.login-card label {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.login-card .form-control {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.login-card .form-control:focus {
  box-shadow: 0 0 0 1px #3b82f6;
  border-color: #3b82f6;
}

.login-card .btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  font-weight: 500;
}

.login-card .btn-primary:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.login-card .flash {
  padding: 8px 10px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.6);
  color: #fecaca;
  border-radius: 6px;
  font-size: 0.8rem;
}

/* Default app layout (after login) */
.sidebar {
  min-height: 100vh;
  background: #111827;
  color: #e5e7eb;
}

.sidebar a {
  color: #9ca3af;
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.sidebar a.active,
.sidebar a:hover {
  background: #1f2937;
  color: #fff;
}

.topbar {
  padding: 10px 15px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.content {
  padding: 15px;
}

.flash {
  padding: 8px 10px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  margin-bottom: 10px;
  font-size: 0.8rem;
  border-radius: 4px;
}

table td,
table th {
  font-size: 0.9rem;
}

/* Toggle switch for test enabled state */
.llg-toggle-switch {
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: 999px;
  border: none;
  padding: 0;
  margin: 0;
  background: #e5e7eb; /* gray when off */
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.7);
}

.llg-toggle-switch:focus {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.4),
    0 0 0 4px rgba(191, 219, 254, 0.8);
}

.llg-toggle-switch::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  left: 3px;
  transition: transform 0.18s ease;
}

/* Text inside switch (On/Off) */
.llg-toggle-label {
  position: relative;
  z-index: 1;
  flex: 1;
  font-size: 0.7rem;
  font-weight: 500;
  color: #6b7280;
  text-align: right;
  padding-right: 7px;
}

/* ON state */
.llg-toggle-switch.is-on {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.6);
}

.llg-toggle-switch.is-on::before {
  transform: translateX(26px);
}

.llg-toggle-switch.is-on .llg-toggle-label {
  color: #ecfdf3;
  text-align: left;
  padding-left: 8px;
  padding-right: 0;
}

/* OFF state */
.llg-toggle-switch.is-off {
  background: #e5e7eb;
}

.llg-toggle-switch.is-off::before {
  transform: translateX(0);
}

.llg-toggle-switch.is-off .llg-toggle-label {
  color: #6b7280;
}
