/* ============================================================================
   SAR Synthesis System — Visual identity
   แนวคิด: เอกสารราชการที่ดูทันสมัย — กระดาษ/ตราครุฑแบบดิจิทัล
   สีหลัก: น้ำเงินกรมท่า (เอกลักษณ์ราชการ) + ทองสำหรับจุดเน้นข้อมูลสำคัญ
   ============================================================================ */

:root {
  --navy-900: #0b2447;
  --navy-700: #15355e;
  --navy-500: #1f4e78;
  --navy-300: #5b7fa6;
  --gold-500: #c9971f;
  --gold-100: #fbf3df;
  --paper: #f6f5f1;
  --ink: #1c2733;
}

body {
  font-family: 'Sarabun', 'TH Sarabun New', sans-serif;
  background: var(--paper);
  color: var(--ink);
}

/* ---- Navbar ---------------------------------------------------------- */
.app-navbar {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-bottom: 3px solid var(--gold-500);
}
.app-navbar .nav-link {
  color: rgba(255,255,255,.85);
  font-weight: 500;
}
.app-navbar .nav-link:hover,
.app-navbar .nav-link.active {
  color: #fff;
}
.app-navbar .navbar-brand {
  color: #fff;
}

/* ---- Layout ----------------------------------------------------------- */
.app-main {
  min-height: calc(100vh - 140px);
}
.app-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.7) !important;
}

/* ---- Cards -------------------------------------------------------------*/
.card {
  border: none;
  border-radius: .6rem;
  box-shadow: 0 2px 10px rgba(11,36,71,.08);
}
.card-header {
  background: var(--navy-500);
  color: #fff;
  font-weight: 600;
  border-radius: .6rem .6rem 0 0 !important;
}
.card-header.card-header-light {
  background: var(--gold-100);
  color: var(--navy-900);
  border-bottom: 2px solid var(--gold-500);
}

/* ---- Stat tiles on dashboards ------------------------------------------*/
.stat-tile {
  border-radius: .75rem;
  padding: 1.25rem 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  position: relative;
  overflow: hidden;
}
.stat-tile.gold {
  background: linear-gradient(135deg, #a87413, var(--gold-500));
}
.stat-tile .stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.stat-tile .stat-label {
  opacity: .85;
  font-size: .85rem;
}

/* ---- Login page ----------------------------------------------------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, var(--navy-700), var(--navy-900) 70%);
}
.login-card {
  width: 100%;
  max-width: 420px;
  border-radius: 1rem;
  border-top: 5px solid var(--gold-500);
}
.login-emblem {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy-500);
  color: var(--gold-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}

/* ---- Tables ----------------------------------------------------------- */
.table thead th {
  background: var(--navy-500);
  color: #fff;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.table-sticky-wrap {
  max-height: 70vh;
  overflow: auto;
  border-radius: .5rem;
}

/* ---- Indicator checklist rows ----------------------------------------- */
.indicator-row {
  border-bottom: 1px solid #e7e3d8;
  padding: .85rem .25rem;
}
.indicator-row:last-child { border-bottom: none; }
.issue-heading {
  background: var(--gold-100);
  border-left: 4px solid var(--gold-500);
  padding: .6rem 1rem;
  border-radius: .35rem;
  font-weight: 600;
  color: var(--navy-900);
  margin: 1.25rem 0 .5rem;
}
.sub-standard-heading {
  background: var(--navy-500);
  color: #fff;
  padding: .55rem 1rem;
  border-radius: .35rem;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
}

/* ---- Progress ----------------------------------------------------------*/
.progress {
  height: .85rem;
  border-radius: 1rem;
  background: #e7e3d8;
}
.progress-bar {
  background: var(--gold-500);
}

/* ---- Misc --------------------------------------------------------------*/
.badge-status-draft { background: #adb5bd; }
.badge-status-submitted { background: #1f8f4e; }

a { text-decoration: none; }
.required-mark { color: #c0392b; }
