/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(0, 229, 160, 0.25);
}
.btn-primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(0, 229, 160, 0.45);
}

.btn-ghost {
  border-color: var(--border2);
  color: var(--text);
  background: rgba(15, 30, 54, 0.5);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block { width: 100%; }

/* Inputs ----------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text2);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.15);
}

.field .hint {
  font-size: 11px;
  color: var(--text3);
}

.field .error {
  font-size: 11px;
  color: var(--red);
  min-height: 14px;
}

/* Cards ------------------------------------------------------------------ */
.card {
  background: rgba(11, 22, 40, 0.72);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-card {
  background: rgba(15, 30, 54, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0, 229, 160, 0.12);
}
.feature-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 229, 160, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 13px;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  margin: 0;
  color: var(--text2);
  font-size: 13px;
}

/* Badges ----------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-green { background: rgba(0, 229, 160, 0.15); color: var(--accent); border: 1px solid rgba(0, 229, 160, 0.4); }
.badge-amber { background: rgba(245, 158, 11, 0.15); color: var(--amber);  border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-red   { background: rgba(239, 68, 68, 0.15);  color: var(--red);    border: 1px solid rgba(239, 68, 68, 0.4); }

/* Toggle ----------------------------------------------------------------- */
.toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}
.toggle input { display: none; }
.toggle .slider {
  position: absolute;
  inset: 0;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.toggle .slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text2);
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.toggle input:checked + .slider {
  background: rgba(0, 229, 160, 0.25);
  border-color: var(--accent);
}
.toggle input:checked + .slider::before {
  transform: translateX(18px);
  background: var(--accent);
}

/* NASA mark — used in landing nav and dashboard header ----------------- */
.nav-divider {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--border2) 30%,
    var(--border2) 70%,
    transparent 100%);
}

.nasa-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.nasa-mark:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 8px rgba(11, 61, 145, 0.6));
}
.nasa-mark img {
  width: 36px;
  height: 36px;
  display: block;
}
.nasa-mark-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text3);
  line-height: 1.3;
  max-width: 110px;
}

/* Compact variant for the tight 52px dashboard header */
.nasa-mark.compact img        { width: 26px; height: 26px; }
.nasa-mark.compact             { gap: 8px; }
.nasa-mark.compact + .nav-divider,
.nav-divider.compact           { height: 22px; }

/* USJ-CI academic mark — mirrors the NASA mark layout. Two-row
   monogram (USJ / CI) in an accent-bordered square, with the same
   small uppercase tag line as the NASA badge. */
.usjci-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: filter 0.2s ease, transform 0.2s ease;
  cursor: default;
}
.usjci-mark:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 8px rgba(0, 229, 160, 0.45));
}
.usjci-monogram {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 160, 0.45);
  background:
    linear-gradient(180deg, rgba(0, 229, 160, 0.10) 0%, rgba(0, 229, 160, 0.02) 100%),
    rgba(7, 13, 26, 0.85);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px rgba(0, 229, 160, 0.45);
  box-shadow: inset 0 0 12px rgba(0, 229, 160, 0.08);
}
.usjci-mono-top { font-size: 10px; }
.usjci-mono-bot { font-size: 9px; color: var(--text); text-shadow: none; margin-top: 2px; }

/* Compact dashboard-header sibling, in case it's reused there later */
.usjci-mark.compact .usjci-monogram { width: 26px; height: 26px; border-radius: 6px; }
.usjci-mark.compact .usjci-mono-top { font-size: 8px; }
.usjci-mark.compact .usjci-mono-bot { font-size: 7px; margin-top: 1px; }
.usjci-mark.compact { gap: 8px; }

@media (max-width: 720px) {
  .nasa-mark-tag { display: none; }
  .nav-divider   { height: 24px; }
  .usjci-mark .nasa-mark-tag { display: none; }

  /* Bigger inputs on phones — 16px is the iOS Safari threshold that
     keeps it from auto-zooming when the field is focused. */
  .field input,
  .field textarea,
  .field select { font-size: 16px; padding: 12px 14px; }

  .btn { padding: 12px 22px; font-size: 10.5px; }
}

/* Glass utility ---------------------------------------------------------- */
.glass {
  background: rgba(7, 13, 26, 0.78);
  border: 1px solid var(--border);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
