/* PRD palette inspired by elections.gov.bs (deep navy + gold accent) */
:root {
  --prd-primary:   #0a3161;   /* deep navy */
  --prd-primary-2: #102b51;
  --prd-accent:    #f2b400;   /* warm gold */
  --prd-success:   #1e7e34;
  --prd-bg:        #f4f6fa;
  --prd-text:      #1a2540;
}

body { font-family: 'Segoe UI', Roboto, Arial, sans-serif; background: var(--prd-bg); color: var(--prd-text); }

/* Navbar */
.prd-navbar {
  background: #fff;
  border-bottom: 4px solid var(--prd-accent);
  padding: .65rem 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.prd-navbar .navbar-brand { color: #000 !important; }
.brand-text { display:inline-flex; flex-direction:column; line-height:1.1; }
.brand-line-1 { font-weight: 700; font-size: 1.1rem; color: #000; }
.brand-line-2 { font-size: .78rem; color: #555; }

/* Bg helpers */
.bg-prd-primary { background: var(--prd-primary) !important; color: #fff; }
.text-prd { color: var(--prd-primary) !important; }

/* Buttons */
.btn-prd {
  background: var(--prd-primary);
  color: #fff;
  border: none;
}
.btn-prd:hover { background: var(--prd-primary-2); color: #fff; }
.btn-accent { background: var(--prd-accent); color: #1a2540; border: none; }
.btn-accent:hover { background: #d99e00; color: #1a2540; }

/* Public split-screen layout */
.public-body { min-height: 100vh; display: flex; flex-direction: column; }
.public-main { flex: 1; }

.split-screen {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: calc(100vh - 140px);
}
.split-screen .hero {
  background-size: cover;
  background-position: center;
  position: relative;
}
.split-screen .hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,49,97,.55), rgba(10,49,97,.15));
}
.split-screen .hero .hero-caption {
  position: absolute; bottom: 2rem; left: 2rem; right: 2rem;
  color: #fff; z-index: 2; text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.split-screen .hero .hero-caption h1 { font-weight: 700; font-size: 2rem; }
.split-screen .form-side {
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 2rem; background: #fff;
}
@media (max-width: 900px) {
  .split-screen { grid-template-columns: 1fr; }
  .split-screen .hero { min-height: 220px; }
}

.login-card { max-width: 440px; width: 100%; }
.login-card .card-title { color: var(--prd-primary); font-weight: 700; }
.login-card .form-control { background-color: #eef4fb; border-color: #c8ddf0; }
.login-card .form-control:focus { background-color: #fff; border-color: var(--prd-primary); box-shadow: 0 0 0 .2rem rgba(10,49,97,.15); }

/* Status banner */
.status-banner {
  color: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}
.status-banner i { font-size: 3rem; }
.status-ready {
  background: linear-gradient(135deg, #1e7e34, #28a745);
  box-shadow: 0 6px 20px rgba(30,126,52,.25);
}
.status-not-ready {
  background: linear-gradient(135deg, #0099CC, #00CFEF);
  box-shadow: 0 6px 20px rgba(0,153,204,.25);
}
.status-picked-up {
  background: linear-gradient(135deg, #0a3161, #1a5276);
  box-shadow: 0 6px 20px rgba(10,49,97,.25);
}

/* Footer */
.prd-footer {
  background: var(--prd-primary);
  color: #d6e0f0;
  padding: 1rem 0;
  font-size: .85rem;
  border-top: 4px solid var(--prd-accent);
}

/* Admin shell */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--prd-primary);
  color: #fff;
  padding: 1rem 0;
}
.admin-sidebar .sb-brand { padding: 0 1rem 1rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.admin-sidebar .nav-link { color: #d6e0f0; padding: .75rem 1.25rem; border-left: 3px solid transparent; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  background: rgba(255,255,255,.05);
  color: #fff;
  border-left-color: var(--prd-accent);
}
.admin-content { padding: 1.5rem 2rem; background: var(--prd-bg); }
.admin-topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:1.5rem; }

.stat-card { border:none; border-radius:12px; box-shadow: 0 4px 12px rgba(10,49,97,.08); }
.stat-card .stat-label { color:#6c757d; font-size:.85rem; text-transform:uppercase; letter-spacing:.5px; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--prd-primary); }

.table { width: auto !important; }
.table thead th { background: var(--prd-primary); color: #fff; border: none; white-space: nowrap; padding: .5rem .75rem; }
.table tbody td { padding: .45rem .75rem; white-space: nowrap; }
.badge-status-ready { background: #ffc107; color: #1a2540; }
.badge-status-picked_up { background: #198754; color: #fff; }
.badge-status-not_ready { background: #6c757d; color: #fff; }

@media (max-width: 800px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display:flex; overflow-x:auto; }
  .admin-sidebar .sb-brand { display:none; }
}

/* === Mobile responsive fixes (added 2026-05-07) === */
@media (max-width: 768px) {
  /* Navbar — stack logo on top of centered title */
  .prd-navbar { padding: .75rem .75rem; }
  .prd-navbar .container-fluid { justify-content: center; }
  .prd-navbar .navbar-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    gap: .35rem;
  }
  .prd-navbar .navbar-brand img {
    height: 56px !important;
    margin: 0 !important;
  }
  .brand-text {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .brand-line-1 { font-size: .9rem; line-height: 1.2; }
  .brand-line-2 { font-size: .7rem; line-height: 1.2; }

  /* Hero — caption flows naturally instead of absolute, prevents navbar overlap */
  .split-screen { min-height: auto; }
  .split-screen .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem 1.25rem 1.5rem;
  }
  .split-screen .hero .hero-caption {
    position: static;
    inset: auto;
    padding: 0;
  }
  .split-screen .hero .hero-caption h1 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
  }
  .split-screen .hero .hero-caption .lead {
    font-size: .95rem;
  }

  /* Form side — tighter padding on mobile */
  .split-screen .form-side { padding: 2rem 1rem; }
}

@media (max-width: 480px) {
  /* Very narrow screens — keep stacked, slightly smaller */
  .prd-navbar .navbar-brand img { height: 48px !important; }
  .brand-line-1 { font-size: .82rem; }
  .brand-line-2 { font-size: .65rem; }

  .split-screen .hero .hero-caption h1 { font-size: 1.25rem; }
  .split-screen .hero .hero-caption .lead { font-size: .9rem; }
}
