/* =====================================================================
   SDO Lapu-Lapu City Language Mapping System
   Palette matched to ictinventory.depedlapulapu.net.ph
   ===================================================================== */

:root {
  --navy: #00338D;
  --navy-dark: #00246b;
  --gold: #FDB827;
  --green: #198754;
  --red: #CE1126;
  --pink: #DE3394;
  --bg: #EEF3FA;
  --text: #1c2530;
}

* { box-sizing: border-box; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---- Top gold accent strip (matches the 1px gold line on the live site) ---- */
.top-accent-strip {
  height: 4px;
  background: var(--gold);
  width: 100%;
}

/* ---- Navbar ---- */
.app-navbar {
  background-color: var(--navy);
  padding-top: .6rem;
  padding-bottom: .6rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.app-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  line-height: 1.15;
}

.app-navbar .brand-seal {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.app-navbar .brand-seal img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.app-navbar .brand-text .eyebrow {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #cfe0ff;
  display: block;
}

.app-navbar .brand-text .title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

/* ---- Sidebar ---- */
.sidebar {
  background-color: #ffffff;
  border-right: 1px solid #e2e6ea;
  min-height: calc(100vh - 64px);
}

.sidebar .nav-link {
  color: #33415c;
  padding: .55rem 1rem;
  border-radius: .375rem;
  font-size: .92rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background-color: var(--navy);
  color: #fff;
}

.sidebar-heading {
  display: block;
  padding: .75rem 1rem 0;
  font-size: .72rem;
  text-transform: uppercase;
  color: #8a93a3;
  letter-spacing: .06em;
}

/* ---- Breadcrumb-ish page header ---- */
.page-title-bar {
  border-left: 4px solid var(--gold);
  padding-left: .75rem;
  margin-bottom: 1.25rem;
}

.page-title-bar h4 {
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0;
}

/* ---- Cards ---- */
.card {
  border: 1px solid #e2e6ea;
  border-radius: .6rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.picture-card { margin-bottom: 1.5rem; }

.picture-card .picture-preview {
  max-height: 220px;
  object-fit: contain;
  background: #fafafa;
  width: 100%;
  border-bottom: 1px solid #e2e6ea;
}

.lang-input { max-width: 100px; }

/* ---- Stat cards: white card + colored top border, matches live dashboard ---- */
.stat-card {
  border-radius: .6rem;
  border: 1px solid #e2e6ea;
  border-top: 4px solid var(--navy);
  background: #fff;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}

.stat-card .stat-icon {
  width: 46px;
  height: 46px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: #fff;
}

.stat-card .stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.stat-card .stat-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6c7686;
}

.stat-card.c-gold  { border-top-color: var(--gold); }
.stat-card.c-navy  { border-top-color: var(--navy); }
.stat-card.c-green { border-top-color: var(--green); }
.stat-card.c-red   { border-top-color: var(--red); }

.stat-card.c-gold  .stat-icon { background: var(--gold); }
.stat-card.c-navy  .stat-icon { background: var(--navy); }
.stat-card.c-green .stat-icon { background: var(--green); }
.stat-card.c-red   .stat-icon { background: var(--red); }

/* ---- Buttons ---- */
.btn-primary {
  background-color: var(--navy);
  border-color: var(--navy);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
}
.btn-outline-primary {
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-primary:hover {
  background-color: var(--navy);
  border-color: var(--navy);
}
.btn-success {
  background-color: var(--green);
  border-color: var(--green);
}

/* ---- Tables: navy header, matches live site's data tables ---- */
.table thead th,
.table thead tr {
  background-color: var(--navy) !important;
  color: #fff;
  border-color: var(--navy);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  vertical-align: middle;
}

.table-bordered thead th { border-color: var(--navy); }

.record-link,
.text-accent-pink {
  color: var(--pink);
  font-weight: 600;
  text-decoration: none;
}
.record-link:hover { text-decoration: underline; }

/* ---- Badges ---- */
.badge.bg-success { background-color: var(--green) !important; }
.badge.bg-danger  { background-color: var(--red) !important; }
.badge.bg-warning { background-color: var(--gold) !important; }
.badge.bg-primary { background-color: var(--navy) !important; }

/* ---- Auth pages (login/register) ---- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--navy) 0%, #0a4bb8 100%);
  padding: 2rem 1rem;
}

.auth-card {
  max-width: 460px;
  width: 100%;
  border-radius: .75rem;
  border: none;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

.auth-card .auth-seal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
  font-weight: 700;
  overflow: hidden;
}

.auth-card .auth-seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-card .auth-eyebrow {
  text-align: center;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6c7686;
}

.auth-card .auth-org {
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

.auth-card .auth-system {
  text-align: center;
  color: #6c7686;
  font-size: .85rem;
  margin-bottom: 1.25rem;
}

.auth-hint {
  background: #f3f6fb;
  border: 1px solid #e2e6ea;
  border-radius: .5rem;
  padding: .6rem .8rem;
  font-size: .78rem;
  color: #556;
}

/* ---- Footer ---- */
.app-footer {
  background-color: var(--navy);
  color: #d8e3fb;
  padding: 1.5rem 0 1rem;
  margin-top: 2rem;
  font-size: .85rem;
}

.app-footer .footer-org {
  color: #fff;
  font-weight: 700;
}

.app-footer a {
  color: #d8e3fb;
  text-decoration: none;
}
.app-footer a:hover { color: #fff; text-decoration: underline; }

.app-footer .footer-seal {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  font-size: .7rem;
  overflow: hidden;
}
.app-footer .footer-seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
