/* =============================================
   SIPADU - Custom Stylesheet
   Design: Navy & Teal Government Portal
   ============================================= */

:root {
  --navy:    #0F2C59;
  --navy-d:  #0a1f40;
  --navy-l:  #1a3d73;
  --teal:    #0B7285;
  --teal-l:  #0c8fa5;
  --orange:  #e67e22;
  --cream:   #F4F7FB;
  --surface: #FFFFFF;
  --border:  #E2E8F0;
  --text:    #1A202C;
  --muted:   #718096;
  --radius:  10px;
  --shadow:  0 2px 12px rgba(15,44,89,.08);
  --shadow-md: 0 4px 24px rgba(15,44,89,.12);
}

/* ── Base ── */
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navbar ── */
.sipadu-nav {
  background: var(--navy);
  border-bottom: 3px solid var(--teal);
  padding: .75rem 0;
}
.sipadu-nav .navbar-nav { gap: .25rem; }
.sipadu-nav .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-weight: 500;
  font-size: .875rem;
  padding: .4rem .75rem !important;
  border-radius: 6px;
  transition: all .2s;
}
.sipadu-nav .nav-link:hover, .sipadu-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.12);
}
.brand-icon {
  width: 36px; height: 36px;
  background: var(--teal);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff;
}
.brand-name  { font-size: .95rem; font-weight: 800; color: #fff; letter-spacing: .02em; }
.brand-sub   { font-size: .55rem; color: rgba(255,255,255,.6); letter-spacing: .12em; }
.user-avatar {
  width: 30px; height: 30px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: #fff;
}

/* ── Hero Section ── */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-l) 50%, var(--teal) 100%);
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section .badge-pill {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .8rem; font-weight: 600;
  padding: .4rem 1rem; border-radius: 50px;
  display: inline-block; margin-bottom: 1.2rem;
}

/* ── Stat Cards ── */
.stat-card {
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-card:last-child { border-right: none; }
.stat-icon { font-size: 1.5rem; margin-bottom: .4rem; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: .2rem; }

/* ── Kategori Cards ── */
.kategori-item {
  border-radius: var(--radius) !important;
  transition: all .2s;
  cursor: pointer;
}
.kategori-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
}
.icon-circle {
  width: 60px; height: 60px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}

/* ── Step Cards ── */
.step-card { padding: 2rem 1rem; position: relative; }
.step-number {
  width: 40px; height: 40px;
  background: var(--navy);
  color: #fff; font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  padding: 4rem 0;
}

/* ── Cards ── */
.card {
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
}
.card-header { background: transparent; border-bottom: 1px solid var(--border); }

/* ── Form Controls ── */
.form-control, .form-select {
  border-color: var(--border);
  border-radius: 8px;
  padding: .6rem 1rem;
  font-size: .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11,114,133,.15);
}
.form-label { font-weight: 600; font-size: .875rem; color: var(--navy); }

/* ── Buttons ── */
.btn { border-radius: 8px; font-weight: 600; }
.btn-primary   { background: var(--navy); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-d); border-color: var(--navy-d); }
.btn-teal      { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-l); color: #fff; }

/* ── Admin Sidebar ── */
.admin-sidebar {
  background: var(--navy);
  min-height: calc(100vh - 62px);
  padding: 1.5rem 1rem;
  position: sticky; top: 62px;
}
.sidebar-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .9rem;
  border-radius: 8px;
  color: rgba(255,255,255,.7);
  font-size: .875rem; font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  margin-bottom: .15rem;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.sidebar-link i { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-heading {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  padding: .5rem .9rem;
  margin-top: .5rem;
}

/* ── Status Timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: 10px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 1.25rem; }
.timeline-dot {
  position: absolute; left: -1.85rem; top: .2rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; color: #fff;
}
.timeline-dot.active { box-shadow: 0 0 0 2px var(--teal); }
.timeline-dot.success { background: var(--teal); box-shadow: 0 0 0 2px var(--teal); }

/* ── Progress Steps ── */
.progress-step-bar { display: flex; align-items: center; gap: 0; margin-bottom: 2rem; }
.progress-step {
  flex: 1; text-align: center;
  position: relative;
}
.progress-step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .4rem;
  font-size: .85rem; font-weight: 700; color: var(--muted);
  position: relative; z-index: 2;
  transition: all .3s;
}
.progress-step.done .progress-step-circle  { background: var(--teal); border-color: var(--teal); color: #fff; }
.progress-step.active .progress-step-circle { background: var(--navy); border-color: var(--navy); color: #fff; }
.progress-step::after {
  content: '';
  position: absolute; top: 17px; left: 50%; width: 100%;
  height: 2px; background: var(--border); z-index: 1;
}
.progress-step:last-child::after { display: none; }
.progress-step.done::after { background: var(--teal); }
.progress-step-label { font-size: .7rem; font-weight: 600; color: var(--muted); }
.progress-step.done .progress-step-label, .progress-step.active .progress-step-label { color: var(--navy); }

/* ── Tables ── */
.table th { background: var(--cream); font-size: .8rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .03em; }
.table td { font-size: .875rem; vertical-align: middle; }

/* ── Badges ── */
.badge { font-size: .75rem; font-weight: 600; border-radius: 6px; }
.kode-laporan { font-family: monospace; font-size: .8rem; background: var(--cream); padding: .2rem .5rem; border-radius: 4px; color: var(--navy); }

/* ── Photo Upload ── */
.foto-upload-area {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--cream);
}
.foto-upload-area:hover { border-color: var(--teal); background: rgba(11,114,133,.04); }

/* ── Alert ── */
.alert { border-radius: var(--radius); border: none; }
.alert-success { background: #e8f8f0; color: #0a6640; }
.alert-danger  { background: #fde8e8; color: #7f1d1d; }
.alert-warning { background: #fef9e7; color: #7d4e00; }
.alert-info    { background: #e0f7fa; color: #006064; }

/* ── Footer ── */
.sipadu-footer { background: var(--navy-d); }
.footer-heading { font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.45); text-transform: uppercase; margin-bottom: .75rem; }
.footer-link { color: rgba(255,255,255,.55); text-decoration: none; font-size: .875rem; display: block; margin-bottom: .3rem; transition: color .2s; }
.footer-link:hover { color: rgba(255,255,255,.9); }
.text-muted-light { color: rgba(255,255,255,.5) !important; }
.footer-divider { border-color: rgba(255,255,255,.08); }
.brand-icon-sm { width: 28px; height: 28px; background: var(--teal); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .9rem; }

/* ── Utilities ── */
.text-navy { color: var(--navy) !important; }
.text-teal  { color: var(--teal) !important; }
.bg-navy    { background: var(--navy) !important; }
.bg-teal    { background: var(--teal) !important; }
.bg-cream   { background: var(--cream) !important; }
.shadow-sm  { box-shadow: var(--shadow) !important; }
.rounded-card { border-radius: var(--radius) !important; }
.section-title { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.section-sub   { color: var(--muted); font-size: .95rem; }
.page-header { background: linear-gradient(135deg, var(--navy), var(--navy-l)); padding: 2.5rem 0; }

@media (max-width: 768px) {
  .stat-card { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-card:last-child { border-bottom: none; }
  .admin-sidebar { min-height: auto; position: relative; top: auto; }
}

/* =============================================
   PLOTING KRIM - Sidebar & Topbar Layout
   ============================================= */
:root {
  --sidebar-width: 260px;
}

body {
  overflow-x: hidden;
}

.app-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-d) 100%);
  color: #fff;
  min-height: 100vh;
}

@media (min-width: 992px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1030;
    overflow-y: auto;
  }
  .app-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
}

.sidebar-brand {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-sidebar .sidebar-heading {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  padding: 1rem 1.25rem 0.4rem;
  font-weight: 700;
  margin-top: 0;
}

.sidebar-nav .nav-link {
  color: rgba(255, 255, 255, 0.78);
  padding: 0.65rem 1.25rem;
  margin: 0.15rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-nav .nav-link.active {
  background-color: #f59e0b;
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.app-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.app-main {
  flex: 1 0 auto;
}

.login-bg {
      min-height: 100vh;
      background: linear-gradient(-45deg, #071730, #0F2C59, #0B7285, #143d7a);
      background-size: 350% 350%;
      animation: gradientFlow 14s ease infinite;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 2rem 1rem;
    }
    .login-bg::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
      background-size: 26px 26px;
      pointer-events: none;
    }
    .glow-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(70px);
      opacity: 0.35;
      pointer-events: none;
      animation: orbFloat 9s ease-in-out infinite alternate;
    }
    .glow-orb.orb-1 {
      width: 320px; height: 320px;
      background: #f59e0b;
      top: -80px; right: -60px;
    }
    .glow-orb.orb-2 {
      width: 360px; height: 360px;
      background: #0ea5e9;
      bottom: -100px; left: -80px;
      animation-delay: -4s;
    }
    .login-card {
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(14px);
      border-radius: 18px !important;
      border: 1px solid rgba(255, 255, 255, 0.45) !important;
      box-shadow: 0 24px 60px rgba(4, 15, 36, 0.45);
      animation: cardEnter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
      position: relative;
      z-index: 2;
    }
    .brand-emblem {
      width: 64px; height: 64px;
      border-radius: 18px;
      background: linear-gradient(135deg, #0F2C59 0%, #0B7285 100%);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 25px rgba(11, 114, 133, 0.35);
      animation: emblemPulse 3.2s ease-in-out infinite;
    }
    .login-input-group .form-control {
      border-radius: 10px;
      padding: 0.7rem 0.95rem;
      transition: all 0.25s ease;
    }
    .login-input-group .form-control:focus {
      transform: translateY(-1px);
      box-shadow: 0 0 0 4px rgba(11, 114, 133, 0.16);
    }
    .btn-login-lux {
      background: linear-gradient(135deg, #0F2C59 0%, #0B7285 100%);
      border: none;
      border-radius: 10px;
      padding: 0.75rem 1rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      transition: all 0.25s ease;
      position: relative;
      overflow: hidden;
    }
    .btn-login-lux:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(11, 114, 133, 0.4);
      filter: brightness(1.06);
    }
    .btn-login-lux:active:not(:disabled) {
      transform: translateY(0);
    }

    @keyframes gradientFlow {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }
    @keyframes orbFloat {
      0% { transform: translate(0, 0) scale(1); }
      100% { transform: translate(25px, -25px) scale(1.12); }
    }
    @keyframes cardEnter {
      0% { opacity: 0; transform: translateY(24px) scale(0.98); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes emblemPulse {
      0%, 100% { transform: translateY(0); box-shadow: 0 10px 25px rgba(11, 114, 133, 0.35); }
      50% { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(245, 158, 11, 0.35); }
    }
