:root {
  --primary: #1e5f8e;
  --secondary: #4a90c2;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  --bg: #f4f6f9;
  --text-main: #2c3e50;
  --text-secondary: #6c757d;
  --white: #ffffff;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 40px;
  --radius-input: 8px;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-lg-card: 16px;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-modal: 0 10px 40px rgba(0, 0, 0, 0.2);
  --shadow-topbar: 0 2px 4px rgba(0, 0, 0, 0.08);
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
}

.bg-public {
  background:
    linear-gradient(rgba(244, 246, 249, 0.78), rgba(244, 246, 249, 0.78)),
    url('../img/bg_form_pengajuan_tiket_pelapor.jpg') center top / cover no-repeat fixed;
}

h1, h2, h3, h4, h5, h6, .font-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.text-secondary-custom { color: var(--text-secondary); }

/* ===== Buttons ===== */
.btn-primary-custom {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: var(--radius-btn);
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.btn-primary-custom:hover {
  background-color: #184c72;
  border-color: #184c72;
  color: #fff;
}
.btn-success-custom {
  background-color: var(--success);
  border-color: var(--success);
  color: #fff;
  border-radius: var(--radius-btn);
}
.btn-success-custom:hover { background-color: #218838; border-color: #218838; color: #fff; }
.btn-outline-primary-custom {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: var(--radius-btn);
}
.btn-outline-primary-custom:hover { background-color: var(--primary); color: #fff; }
.btn-radius { border-radius: var(--radius-btn); }

/* ===== Cards ===== */
.card-custom {
  background: #fff;
  border: none;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-custom.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}
.card-lg { border-radius: var(--radius-lg-card); }

/* ===== Inputs ===== */
.form-control-custom, .form-select-custom {
  border-radius: var(--radius-input);
  border: 1px solid #dfe3e8;
  padding: 10px 14px;
}
/* Ruang untuk panah dropdown agar tidak menimpa teks */
.form-select-custom {
  padding-right: 2.5rem;
}
.form-control-custom:focus, .form-select-custom:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(74, 144, 194, 0.2);
}
.form-control-custom.is-invalid { border-color: var(--danger); }
.helper-text { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ===== Public layout ===== */
.gradient-dinkes {
  background:
    linear-gradient(135deg, rgba(30, 95, 142, 0.75) 0%, rgba(74, 144, 194, 0.75) 100%),
    url('../img/gedung_dinkes_bg_pelapor.jpg') center center / cover no-repeat;
}
.navbar-public {
  background: #fff;
  box-shadow: var(--shadow-topbar);
}
.hero-title {
  font-size: 32px;
  color: #fff;
}
@media (max-width: 576px) {
  .hero-title { font-size: 24px; }
}

/* ===== Badges status ===== */
.badge-status-pending { background-color: #fff3cd; color: #856404; }
.badge-status-progress { background-color: #d1ecf1; color: #0c5460; }
.badge-status-selesai { background-color: #d4edda; color: #155724; }
.badge-status-rusak { background-color: #f8d7da; color: #721c24; }
.badge-status-pending, .badge-status-progress, .badge-status-selesai, .badge-status-rusak {
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  display: inline-block;
}

/* ===== Status box besar (cek status) ===== */
.status-box-besar {
  border-radius: var(--radius-lg-card);
  padding: var(--space-lg);
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

/* ===== Nomor tiket besar ===== */
.nomor-tiket-box {
  border: 2px dashed var(--primary);
  background: #e8f1f8;
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  text-align: center;
}
.nomor-tiket-text {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

/* ===== Timeline (tracking ala JNE) ===== */
.timeline-horizontal {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: var(--space-xl) 0;
}
.timeline-horizontal::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 5%;
  right: 5%;
  height: 4px;
  background: #e0e0e0;
  z-index: 0;
}
.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.timeline-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  font-size: 18px;
}
.timeline-step.done .timeline-icon { background: var(--success); }
.timeline-step.active .timeline-icon {
  background: var(--info);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(23, 162, 184, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(23, 162, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 162, 184, 0); }
}
.timeline-label { font-size: 13px; font-weight: 600; }
.timeline-note-card {
  background: #f8f9fa;
  border-radius: var(--radius-input);
  padding: var(--space-sm);
  font-size: 12px;
  margin-top: var(--space-xs);
  text-align: left;
}
@media (max-width: 576px) {
  .timeline-horizontal { flex-direction: column; }
  .timeline-horizontal::before { display: none; }
  .timeline-step {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
  }
  .timeline-icon { margin: 0; flex-shrink: 0; }
}

/* ===== Admin layout ===== */
.sidebar-admin {
  width: 250px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--primary) 0%, #163e5c 100%);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1030;
  transition: transform 0.25s ease;
}
.sidebar-admin .brand { padding: var(--space-lg) var(--space-md); text-align: center; border-bottom: 1px solid rgba(255,255,255,0.15); }
.sidebar-admin .nav-link {
  color: rgba(255,255,255,0.85);
  padding: 12px 20px;
  border-radius: 0;
}
.sidebar-admin .nav-link.active, .sidebar-admin .nav-link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.content-admin {
  margin-left: 250px;
  padding: var(--space-lg);
}
.topbar-admin {
  background: #fff;
  box-shadow: var(--shadow-topbar);
  padding: 12px var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 992px) {
  .sidebar-admin { transform: translateX(-100%); }
  .sidebar-admin.show { transform: translateX(0); }
  .content-admin { margin-left: 0; }
}

/* ===== Stat cards dashboard ===== */
.stat-card {
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  height: 130px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-card .stat-icon {
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 48px;
  opacity: 0.25;
}
.stat-card .stat-value { font-size: 28px; font-weight: 700; }
.stat-card.bg-total { background: var(--primary); }
.stat-card.bg-pending { background: var(--warning); color: #4a3800; }
.stat-card.bg-proses { background: var(--info); }
.stat-card.bg-selesai { background: var(--success); }

/* ===== Table row hover ===== */
.table-hover-custom tbody tr:hover { background-color: var(--bg); }

/* ===== Login page ===== */
.login-card {
  width: 100%;
  max-width: 450px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-modal);
  padding: var(--space-xl);
}
.login-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

/* Ikon watermark pada kartu statistik */
.stat-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 52px;
  opacity: 0.25;
  color: #ffffff;
  pointer-events: none;
}

/* ===== Topbar: menu teks polos ala Ladang Lima (tanpa kotak, tanpa underline) ===== */
.nav-text {
  color: #3d5568;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color .18s ease;
}
.nav-text:hover  { color: var(--danger); }
.nav-text.active { color: var(--primary); }

/* ===== Avatar profil bulat di kanan ===== */
.avatar-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(31, 92, 138, .12);
  color: var(--primary);
  font-size: 20px;
  overflow: hidden;
  transition: box-shadow .18s ease;
}
.avatar-trigger:hover { box-shadow: 0 0 0 3px rgba(31, 92, 138, .18); }
.avatar-trigger img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Hero full-screen (referensi Ladang Lima) ===== */
html { scroll-behavior: smooth; }
.hero-full {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  position: relative;
}
.hero-full > .container { width: 100%; }

/* Panah "scroll ke bawah" yang memantul halus */
.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .85);
  font-size: 24px;
  text-decoration: none;
  animation: bounce-down 1.6s infinite;
}
.scroll-hint:hover { color: #fff; }
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ===== Transisi lembut hero → konten ===== */
.hero-full::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 140px;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(244, 246, 249, 0) 0%, rgba(244, 246, 249, 1) 100%);
  pointer-events: none;
}
.fade-top {
  background: linear-gradient(to bottom, rgba(244, 246, 249, 1) 0%, rgba(244, 246, 249, 0) 40%);
}
.scroll-hint { z-index: 2; color: rgba(30, 95, 142, .75); }
.scroll-hint:hover { color: var(--primary); }

/* ===== Feature cards menumpuk vertikal ===== */
.features-stack {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.features-stack .feature-card { margin-bottom: 0; }
.feature-card {
  border-radius: 28px;
  padding: 48px 32px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ===== Preview avatar profil ===== */
.avatar-preview {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(30, 95, 142, .1);
  color: var(--primary);
  font-size: 40px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }


.stat-card .stat-label { font-size: 13px; opacity: .95; margin-top: 4px; }
.divider-dashed { border-bottom: 1px dashed #e3e8ee; }
.prog-track { height: 8px; background: #e9eef3; border-radius: 99px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 99px; }

.btn-aksi {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Badge persen pada legend donat */
.pct-badge {
    background: #eef1f5;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

/* Dashboard extras */
.stat-card .stat-label { font-size: 13px; opacity: .95; margin-top: 4px; }
.divider-dashed { border-bottom: 1px dashed #e3e8ee; }
.prog-track { height: 8px; background: #e9eef3; border-radius: 99px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 99px; }

/* ===== Kalender Aktivitas Tiket ===== */
.kal-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 8px; 
    text-align: center; 
}
.kal-head { 
    font-size: 12px; 
    color: var(--text-secondary); 
    font-weight: 600; 
    padding: 8px 0; 
    text-transform: uppercase;
}
.kal-day { 
    position: relative; 
    font-size: 14px; 
    padding: 14px 0; 
    border-radius: 8px; 
    background: #f8f9fa;
    transition: all 0.2s;
    cursor: default;
}
.kal-day:hover { background: #e9ecef; }
.kal-day.has-tiket { 
    background: rgba(30, 95, 142, .12); 
    color: var(--primary); 
    font-weight: 700; 
}
.kal-day.today { 
    outline: 2px solid var(--primary); 
    outline-offset: -2px; 
    font-weight: 700;
}
.kal-dot { 
    position: absolute; 
    bottom: 5px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 6px; 
    height: 6px; 
    border-radius: 50%; 
    background: var(--primary); 
}

:root {
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
}

.font-title,
.hero-heading {
    font-family: var(--font-title) !important;
}

.hero-heading {
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 4px 24px rgba(0, 40, 80, 0.35);
    line-height: 1.1;
    margin-bottom: 16px;
}

/* Sub-judul "Report. Track. Resolve." */
.tagline-hero {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-weight: 700;
    font-size: clamp(13px, 1.4vw, 16px);
    color: rgba(255, 255, 255, 0.92);
    padding: 8px 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.06);
}

/* Deskripsi paragraf di bawah tagline */
.hero-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    line-height: 1.7;
}

