/* ========================================================
   PROPAM YANDUAN PREISIS - Custom Stylesheet
   Tema: Navy (#0B192C) + Gold (#D4AF37)
   ======================================================== */

:root {
  --propam-navy: #0B192C;
  --propam-dark: #030A14;
  --propam-accent: #1E3E62;
  --propam-gold: #D4AF37;
  --propam-goldlight: #F3E5AB;
  --propam-red: #8B0000;
  --propam-card: #162942;
  --page-bg: #050a14;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--page-bg);
  color: #e2e8f0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Scrollbar tipis emas untuk area scrollable ===== */
.mobile-scroll::-webkit-scrollbar { width: 4px; height: 4px; }
.mobile-scroll::-webkit-scrollbar-track { background: rgba(11,25,44,.1); }
.mobile-scroll::-webkit-scrollbar-thumb { background: rgba(212,175,55,.4); border-radius: 4px; }
.mobile-scroll { scrollbar-width: thin; scrollbar-color: rgba(212,175,55,.3) transparent; }

/* ===== Phone Mockup Frame ===== */
.phone-mockup {
  box-shadow:
    0 25px 50px -12px rgba(0,0,0,.7),
    0 0 30px rgba(212,175,55,.15);
  border: 12px solid #1f2937;
  border-radius: 44px;
}

.camera-notch {
  width: 120px;
  height: 24px;
  background-color: #1f2937;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

/* ===== Ripple effect ===== */
.ripple {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .1s ease;
  cursor: pointer;
}
.ripple:active { transform: scale(.97); }

/* ===== Animations ===== */
@keyframes bounce-in {
  0%   { transform: translateY(40px); opacity: 0; }
  60%  { transform: translateY(-4px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.animate-bounce-in { animation: bounce-in .35s cubic-bezier(.34,1.56,.64,1) both; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fade-in .25s ease-out both; }

@keyframes slide-up {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ===== Snackbar Toast ===== */
.snackbar {
  position: absolute;
  bottom: 80px;
  left: 16px;
  right: 16px;
  background: #1e293b;
  color: #fde68a;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,.4);
  box-shadow: 0 10px 25px rgba(0,0,0,.5);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 60;
}
.snackbar.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ===== Modal Overlay ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,6,12,.8);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fade-in .2s ease-out;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 28rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.6);
}

/* ===== Bottom Sheet (mobile) ===== */
@media (max-width: 640px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    border-radius: 24px 24px 0 0;
    max-width: 100%;
  }
}

/* ===== Sticky footer ===== */
.footer-sticky {
  margin-top: auto;
}

/* ===== Print styles for ticket receipt ===== */
@media print {
  body * { visibility: hidden; }
  #printable-ticket, #printable-ticket * { visibility: visible; }
  #printable-ticket {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: #000;
    background: #fff;
    padding: 32px;
    font-family: Georgia, serif;
  }
}

/* ===== Form input default styling ===== */
.propam-input {
  width: 100%;
  background: #030a14;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  color: #fff;
  outline: none;
  transition: border-color .15s;
}
.propam-input:focus { border-color: #D4AF37; }

.propam-select {
  width: 100%;
  background: #030a14;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  color: #fff;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.propam-select:focus { border-color: #D4AF37; }

/* ===== Hide elements when printing ===== */
.no-print { /* nothing - just a hook */ }

/* ===== Officer table sticky header ===== */
.officer-table-wrap {
  max-height: 520px;
  overflow: auto;
}
.officer-table-wrap thead th {
  position: sticky;
  top: 0;
  background: #030a14;
  z-index: 1;
}

/* ===== Vertical timeline ===== */
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #1e293b;
}
.timeline-step {
  position: relative;
  padding-bottom: 16px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -22px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: bold;
}

/* Pulse animation for current step */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.pulse-dot { animation: pulse-dot 1.5s ease-in-out infinite; }
