/*
 * dark.css
 * Dark theme with subtle frosted glass panels and targeted corner gradients
 */

:root {
  /* Base colors */
  --color-bg-dark: #0a0014;
  --color-accent-indigo: #0e1123;
  --color-frost: rgba(255, 255, 255, 0.07);
  --color-frost-border: rgba(255, 255, 255, 0.12);
  --color-text-light: #eaeaea;
  --color-text-muted: #bbbbbb;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.5rem;
  --transition-fast: 0.2s ease-in-out;
}

/* Full-page with two radial accents */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, #0e1123 10%, transparent 50%),
    radial-gradient(circle at top left, #0e1123 10%, transparent 90%),
    radial-gradient(circle at bottom right, #2f0d27 10%, #0a0014 40%);
  color: var(--color-text-light);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Frosted glass panel shared styles */
.glass-panel {
  background: var(--color-frost);
  border: 1px solid var(--color-frost-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Form and inputs */
form input[type="text"],
form select,
form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: var(--color-text-light);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

form input[type="text"]:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--color-accent-indigo);
}

/* Buttons */
button,
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent-indigo);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

button:hover,
.btn:hover {
  background: #1a2a4f;
  transform: translateY(-2px);
}

button:active,
.btn:active {
  transform: translateY(0);
}

/* Cards */
.card {
  background: var(--color-frost);
  border: 1px solid var(--color-frost-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
}

/* Headings & Text */
h1, h2, h3, h4, h5, h6 {
  color: #fff;
  margin-top: 0;
}

p, li {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Links */
a {
  color: var(--color-accent-indigo);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #1a2a4f;
}

/* Utility classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .container { padding: 1rem; }
  .glass-panel { padding: 1rem; }
}

/* ─── ALWAYS-ON DARK OVERRIDES ─────────────────────────────────────── */

/* Navbar links */
.navbar a,
.navbar .nav-link {
  color: #fff !important;
}

/* Search placeholder text */
input::placeholder,
.form-control::placeholder {
  color: #fff !important;
}

/* Form controls and dropdowns */
.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.form-select option {
  background: #0a0014 !important;
  color: #fff !important;
}

/* Card titles & diagnosis text */
.card-title a,
.card-text {
  color: #fff !important;
}


/* ─── DISCLAIMER BAR (site‑wide) ─────────────────────────────────── */
.disclaimer-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  transform: translateY(100%);
  transition: transform 240ms ease-in-out;
  z-index: 1055; /* above content, below modal backdrop */
  text-align: center;            /* center inline text */
}

.disclaimer-footer.show { transform: translateY(0); }

.disclaimer-footer__content {
  margin: 0 auto;
  max-width: 100%;               /* stretch full width so it feels centered */
  display: flex;
  align-items: center;
  justify-content: center;       /* center contents horizontally */
  flex-wrap: wrap;               /* wrap on small screens */
  gap: .75rem;
  padding: .6rem 1rem;
  color: #e8e8e8;
  font-size: .9rem;
  background: rgba(10, 10, 28, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.24);
}

.disclaimer-footer__text { margin-right: .25rem; }
.disclaimer-footer__actions { display: inline-flex; gap: .75rem; }

.disclaimer-link { color: #93c5fd; text-decoration: underline; }
.disclaimer-link:hover { text-decoration: none; }

/* keep if you ever re-add a close button; harmless otherwise */
.disclaimer-btn {
  border: none; background: transparent; color: #aaa;
  font-size: 1rem; line-height: 1; cursor: pointer; padding: .2rem .3rem;
}
.disclaimer-btn:hover { color: #fff; }

/* Modal look */
.disclaimer-modal {
  background: rgba(2, 6, 23, 0.9);
  color: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}
.disclaimer-modal .modal-header,
.disclaimer-modal .modal-footer {
  border-color: rgba(255,255,255,0.08);
}


/* Style optgroup headers for dark theme */
select optgroup {
  background-color: #0b0b16;   /* same dark background as dropdown */
  color: #9aa5ff;              /* light bluish label text */
  font-weight: bold;
  padding: 4px 8px;
  border: none;
}

/* Remove the white/gray bar look */
select optgroup option {
  background-color: #0b0b16;   /* dark for options */
  color: #ffffff;              /* white text */
}

/* ─── FOOTER LINKS (make them white) ─────────────────────────────── */
footer a,
footer a:visited { color: #ffffff !important; }
footer a:hover   { color: #93c5fd !important; text-decoration: underline; }
