/* naman Decorators — application styles on top of Bootstrap 5.3. */

:root {
  --nd-navy: #1f2a44;
  --nd-navy-dark: #172036;
  --nd-gold: #c9a227;
  --nd-surface: #f4f5f9;

  /* Bootstrap overrides */
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --bs-link-color-rgb: 31, 42, 68;
  --bs-border-radius: 0.6rem;
}

/* Page background is soft grey; cards and inputs stay white (Bootstrap's --bs-body-bg). */
.app-body { background-color: var(--nd-surface); }

.btn-primary {
  --bs-btn-bg: var(--nd-navy);
  --bs-btn-border-color: var(--nd-navy);
  --bs-btn-hover-bg: var(--nd-navy-dark);
  --bs-btn-hover-border-color: var(--nd-navy-dark);
  --bs-btn-active-bg: var(--nd-navy-dark);
  --bs-btn-active-border-color: var(--nd-navy-dark);
  --bs-btn-disabled-bg: var(--nd-navy);
  --bs-btn-disabled-border-color: var(--nd-navy);
}

.form-control:focus {
  border-color: var(--nd-gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.25);
}

/* ---- Brand ---- */
.brand-logo { height: 32px; width: auto; }
.brand-name { font-weight: 600; letter-spacing: 0.01em; }

/* ---- Navbar ---- */
.app-navbar {
  background-color: var(--nd-navy);
  border-bottom: 3px solid var(--nd-gold);
}
.app-navbar .nav-link.active { color: #fff; font-weight: 500; }
.app-navbar .navbar-text { max-width: 14rem; }

/* ---- Dashboard cards ---- */
.stat-card { border: 0; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08); }
.stat-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}
.stat-label { font-size: 0.875rem; color: var(--bs-secondary-color); }
.stat-value { font-size: 1.6rem; font-weight: 600; line-height: 1.2; }

/* Phones: 2×2 grid with the icon above the text. */
@media (max-width: 575.98px) {
  .stat-icon { width: 2.5rem; height: 2.5rem; font-size: 1.2rem; }
  .stat-value { font-size: 1.35rem; }
}

/* ---- "Coming soon" module tiles: deliberately muted, not clickable ---- */
.module-tile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px dashed var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background: rgba(255, 255, 255, 0.6);
  color: var(--bs-secondary-color);
  font-size: 0.95rem;
  cursor: default;
  user-select: none;
  flex-wrap: wrap;   /* very narrow phones: the "Soon" badge drops below instead of overflowing */
  min-width: 0;
}

/* ---- Phones/tablets (collapsed navbar): finger-sized tap targets (≥ 44px) ---- */
@media (max-width: 991.98px) {
  .app-navbar .navbar-brand,
  .app-navbar .navbar-toggler,
  .app-navbar .nav-link,
  .app-navbar .btn { min-height: 44px; }
  .app-navbar .nav-link { display: flex; align-items: center; gap: 0.35rem; }
  .app-navbar .btn { padding-inline: 1rem; }
  .app-navbar .dropdown-item { padding-block: 0.65rem; }
}

/* ---- Login and error pages ---- */
.login-body {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--nd-navy) 0%, #2d3b5f 55%, #3b4a72 100%);
}
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.login-card { width: 100%; max-width: 420px; border: 0; border-top: 4px solid var(--nd-gold); }
.login-brand { font-size: 1.5rem; color: var(--nd-navy); }
