/* ==========================================================================
   SUPER COURIER APP - JNE EXPRESS STYLE
   Design System & Mobile Screen Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-blue: #0b4fba;
  --primary-dark: #073a8a;
  --primary-light: #2563eb;
  --primary-surface: #e9f2ff;
  --accent-orange: #f59e0b;
  --accent-orange-dark: #d97706;
  --accent-grey: #9aa5a1;
  --accent-grey-dark: #7a8682;
  --bg-app: #f4f6fa;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --success: #10b981;
  --success-dark: #059669;
  --danger: #ef4444;
  --cod-bg: #fee2e2;
  --cod-text: #ef4444;
  --noncod-bg: #e0f2fe;
  --noncod-text: #0284c7;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(11, 79, 186, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #0d1527;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
}

/* ==========================================================================
   TOP APPLICATION BAR (FOR DESKTOP / PREVIEW CONTROLS)
   ========================================================================== */
.demo-navbar {
  width: 100%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  margin: 16px auto 12px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #fff;
  z-index: 100;
}

.demo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
}

.demo-title .badge {
  background: var(--primary-blue);
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.demo-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.demo-links a, .demo-links button {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.demo-links a:hover, .demo-links button:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.demo-links a.active, .demo-links button.active {
  background: var(--primary-blue);
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   PHONE SIMULATOR CONTAINER
   ========================================================================== */
.phone-wrapper {
  width: 100%;
  max-width: 412px;
  min-height: 860px;
  background-color: var(--bg-app);
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 0 10px #1e293b, 0 0 0 12px rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

@media (max-width: 480px) {
  body {
    background-color: var(--bg-app);
  }
  .demo-navbar {
    border-radius: 0;
    margin: 0;
    padding: 8px 12px;
    font-size: 12px;
  }
  .phone-wrapper {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
  }
}

/* Phone Notch & Status Bar */
.phone-notch-bar {
  background-color: var(--primary-blue);
  color: #fff;
  padding: 10px 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 50;
}

.phone-notch-bar.white-bar {
  background-color: #fff;
  color: #1e293b;
}

.notch-pill {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 20px;
  background-color: #000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.notch-camera {
  width: 9px;
  height: 9px;
  background: #111;
  border: 1.5px solid #222;
  border-radius: 50%;
}

.notch-indicator {
  width: 22px;
  height: 4px;
  background: #4ade80;
  border-radius: 4px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   APP SCREENS CONTAINER
   ========================================================================== */
.screen-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--bg-app);
}

.app-screen {
  flex: 1;
  display: none !important;
  flex-direction: column;
  width: 100%;
  animation: fadeIn 0.25s ease-out;
}

.app-screen.active {
  display: flex !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SHARED UI ELEMENTS (Buttons, Cards, Inputs, Modals)
   ========================================================================== */
.btn-primary {
  background-color: var(--primary-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(11, 79, 186, 0.3);
  transition: all 0.2s ease;
  width: 100%;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(11, 79, 186, 0.4);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled, .btn-primary.disabled {
  background-color: #cbd5e1 !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary-blue);
  color: var(--primary-blue);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--primary-surface);
}

/* Card Surface */
.card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Form Groups */
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  background-color: #fff;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(11, 79, 186, 0.12);
}

/* Success Toast Notification */
.toast-banner {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  background-color: var(--success);
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
  transform: translateY(-80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

.toast-banner.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   SCREEN 1: LOGIN (LOGIN.png)
   ========================================================================== */
#screen-login {
  background-color: var(--primary-blue);
  min-height: 100%;
}

.login-header {
  padding: 24px 22px 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: white;
}

.login-title-box h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.login-title-box p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

/* JNE Express SVG Logo Graphic */
.jne-logo-wrap {
  display: flex;
  align-items: center;
}

.jne-logo-badge {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.jne-logo-svg {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.login-card {
  flex: 1;
  background-color: #ffffff;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input {
  padding-right: 44px;
}

.input-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-toggle-btn:hover {
  color: var(--text-muted);
}

.forgot-password-link {
  color: #dc2626;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-top: 20px;
  cursor: pointer;
  display: block;
  transition: color 0.2s;
}

.forgot-password-link:hover {
  color: #b91c1c;
  text-decoration: underline;
}

/* ==========================================================================
   SCREEN 2: DASHBOARD (DASHBOARD.png)
   ========================================================================== */
#screen-dashboard {
  background-color: #f7f9fc;
  padding-bottom: 74px; /* for bottom navbar */
}

.dash-top-header {
  background-color: var(--primary-blue);
  padding: 16px 20px 48px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-box {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.user-info-text {
  color: white;
}

.user-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.user-branch {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

/* Start / Finish Card */
.work-status-card {
  margin: -28px 18px 22px;
  background: white;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  z-index: 5;
}

.work-status-info h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 2px;
}

.work-status-info p {
  font-size: 11px;
  color: var(--primary-blue);
  opacity: 0.85;
}

.btn-work-toggle {
  background-color: var(--primary-blue);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 86px;
  text-align: center;
}

.btn-work-toggle.state-finish {
  background-color: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Feature Lastmile Section */
.features-section {
  padding: 0 18px;
}

.section-title {
  font-size: 15px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 14px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature-card {
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 120px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  border: none;
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.feature-card.card-runsheet {
  background-color: #f5a623;
  color: white;
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.35);
}

.feature-card.card-pod {
  background-color: #a0aba5;
  color: white;
  box-shadow: 0 6px 18px rgba(160, 171, 165, 0.35);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  background-color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.feature-card.card-runsheet .feature-icon-box {
  color: #f5a623;
}

.feature-card.card-pod .feature-icon-box {
  color: #7a8880;
}

.feature-card-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.pod-counter-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 18px;
  font-weight: 800;
  color: white;
}

/* Bottom Navigation Bar */
.bottom-navbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: #ffffff;
  border-top: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 16px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
  z-index: 40;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 14px;
  transition: all 0.2s;
  border: none;
  background: none;
}

.nav-item.active {
  background-color: var(--primary-surface);
  color: var(--primary-blue);
}

/* ==========================================================================
   SCREEN 3: RUNSHEET (RUNSHEET.png)
   ========================================================================== */
#screen-runsheet {
  background-color: #f7f9fc;
  padding-bottom: 84px;
}

.screen-app-bar {
  background-color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-color);
}

.btn-icon-back {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 8px;
}

.screen-bar-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
}

.runsheet-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.runsheet-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eef2f6;
}

.runsheet-card-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}

.sequence-input-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.cnote-input-row {
  display: flex;
  align-items: center;
  position: relative;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding-right: 6px;
  transition: border-color 0.2s;
}

.cnote-input-row:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(11, 79, 186, 0.1);
}

.cnote-input-row input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 14px;
  background: transparent;
  font-family: inherit;
}

.cnote-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cnote-btn-icon {
  background: #f1f5f9;
  border: none;
  color: #475569;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
}

.cnote-btn-icon:hover {
  background: var(--primary-surface);
  color: var(--primary-blue);
}

.total-cnotes-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hash-badge {
  width: 32px;
  height: 32px;
  background-color: #e9f2ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 14px;
}

.total-cnotes-info {
  display: flex;
  flex-direction: column;
}

.total-cnotes-count {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.1;
}

.total-cnotes-text {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* Recent scanned cnotes table / tags */
.scanned-list-box {
  margin-top: 12px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px;
  background: #fafbfc;
}

.scanned-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: white;
  border-radius: 8px;
  margin-bottom: 6px;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}

.scanned-item:last-child {
  margin-bottom: 0;
}

.scanned-code {
  font-weight: 700;
  color: var(--primary-blue);
  font-family: monospace;
}

.scanned-del-btn {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.scanned-del-btn:hover {
  background: #fee2e2;
}

/* Fixed Bottom Buttons for Runsheet */
.runsheet-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  padding: 14px 18px;
  border-top: 1px solid #eef2f6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
  z-index: 30;
}

.btn-generate-sequence {
  background-color: var(--primary-blue);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-generate-sequence.disabled {
  background-color: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

.btn-approve {
  background-color: #cbd5e1;
  color: #64748b;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: not-allowed;
  transition: all 0.2s;
}

.btn-approve.active {
  background-color: var(--primary-blue);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(11, 79, 186, 0.25);
}

.btn-approve.active:hover {
  background-color: var(--primary-dark);
}

/* ==========================================================================
   SCREEN 4: POD LIST (POD.png)
   ========================================================================== */
#screen-pod {
  background-color: #f7f9fc;
}

.pod-top-header {
  background-color: var(--primary-blue);
  padding: 14px 18px 20px;
  color: white;
}

.pod-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pod-search-input-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  gap: 8px;
}

.pod-search-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 13px;
  font-family: inherit;
}

.pod-search-input-box input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.pod-barcode-icon {
  color: white;
  opacity: 0.9;
  cursor: pointer;
}

.pod-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* Floating Status Tabs (Ongoing / Done) */
.pod-tabs-card {
  margin: -10px 16px 12px;
  background: white;
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 6px;
  border: 1px solid #eef2f6;
}

.pod-tab-btn {
  flex: 1;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.pod-tab-btn.active {
  background-color: var(--primary-surface);
  color: var(--primary-blue);
}

.pod-tab-btn .dot-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  border: 2px solid white;
}

/* Filters (All, COD, Non COD, Return) */
.pod-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
}

.pod-filter-chip {
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background-color: #e9f2ff;
  color: var(--primary-blue);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.pod-filter-chip.active {
  background-color: var(--primary-blue);
  color: white;
}

/* Resi Cards List */
.pod-list-container {
  padding: 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resi-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
}

.resi-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.resi-main-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resi-date {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.resi-code {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.2px;
  font-family: monospace;
}

.resi-school {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.resi-recipient {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.resi-tag-row {
  margin-top: 6px;
}

.badge-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.badge-tag.cod {
  background-color: var(--cod-bg);
  color: var(--cod-text);
}

.badge-tag.noncod {
  background-color: var(--noncod-bg);
  color: var(--noncod-text);
}

.badge-tag.status-done {
  background-color: #dcfce7;
  color: #15803d;
}

.resi-action-icon {
  color: #94a3b8;
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.empty-pod-state {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
}

.empty-pod-state svg {
  margin-bottom: 12px;
  color: #cbd5e1;
}

/* ==========================================================================
   SCREEN 5: PENGISIAN POD (PENGISIAN POD.png)
   ========================================================================== */
#screen-pengisian-pod {
  background-color: #f7f9fc;
  padding-bottom: 84px;
}

.pod-form-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pod-form-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.pod-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s;
}

.pod-select-row:last-child {
  border-bottom: none;
}

.pod-select-row:hover {
  background-color: #f8fafc;
}

.pod-select-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.pod-select-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-blue);
}

.pod-select-value .chevron {
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 16px;
}

.pod-input-naked {
  border: none;
  outline: none;
  font-size: 13px;
  text-align: right;
  font-family: inherit;
  color: #1e293b;
  font-weight: 600;
  max-width: 160px;
}

.pod-input-naked::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Two Proof of Delivery Action Tiles */
.pod-action-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}

.action-tile-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eef2f6;
  cursor: pointer;
  transition: all 0.2s;
}

.action-tile-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.action-tile-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 10px;
}

.action-tile-icon-box {
  width: 72px;
  height: 72px;
  background-color: #e9f2ff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  transition: all 0.2s;
  overflow: hidden;
  position: relative;
}

.action-tile-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.action-tile-status-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* Photo Gallery Section */
.gallery-section-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eef2f6;
}

.gallery-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.gallery-count-text {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.gallery-empty-box {
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background-color: #fafbfc;
  margin-bottom: 14px;
}

.gallery-empty-box p.primary-msg {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.gallery-empty-box p.secondary-msg {
  font-size: 11px;
  color: #94a3b8;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.gallery-thumb-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

.btn-select-gallery {
  background-color: #f1f5f9;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-select-gallery:hover {
  background-color: #e2e8f0;
  color: #1e293b;
}

/* Sticky Submit Bar */
.submit-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 14px 18px;
  border-top: 1px solid #eef2f6;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
  z-index: 30;
}

/* ==========================================================================
   MODALS (Picker, Signature Pad, Camera / Scanner)
   ========================================================================== */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 300;
}

.modal-overlay.active {
  display: flex;
}

.modal-sheet {
  background: white;
  width: 100%;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  padding: 20px 20px 28px;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-sheet-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
}

/* Options list in modal */
.modal-options-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: 380px;
}

.modal-option-item {
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s;
}

.modal-option-item:hover, .modal-option-item.selected {
  background-color: var(--primary-surface);
  color: var(--primary-blue);
  font-weight: 700;
}

/* Signature Modal Styling */
.signature-canvas-container {
  width: 100%;
  height: 220px;
  background: #f8fafc;
  border: 1.5px dashed #94a3b8;
  border-radius: 12px;
  position: relative;
  touch-action: none;
  overflow: hidden;
  margin-bottom: 14px;
}

#signature-canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.signature-actions {
  display: flex;
  gap: 10px;
}

/* Barcode Scanner & Camera Viewfinder */
.scanner-viewport {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.scanner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-laser-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: laserScan 1.8s infinite ease-in-out alternate;
}

@keyframes laserScan {
  0% { transform: translateY(-50px); }
  100% { transform: translateY(50px); }
}

.scanner-frame-box {
  position: absolute;
  width: 75%;
  height: 60%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  pointer-events: none;
}

/* Quick Barcode Simulation Buttons */
.barcode-sim-group {
  margin-top: 10px;
  padding: 10px;
  background: #f1f5f9;
  border-radius: 10px;
}

.barcode-sim-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
}

.barcode-sim-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.barcode-sim-chip {
  background: white;
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-blue);
  cursor: pointer;
  transition: all 0.15s;
}

.barcode-sim-chip:hover {
  background: var(--primary-surface);
  border-color: var(--primary-blue);
}

/* ==========================================================================
   FULLSCREEN CAMERA OVERLAY (TAKE IMAGE POD - LANDSCAPE & PORTRAIT)
   ========================================================================== */
.fullscreen-camera-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.fullscreen-camera-overlay.active {
  display: flex;
}

.camera-feed-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-feed-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Framing reticle corners */
.camera-reticle-box {
  position: absolute;
  top: 15%;
  bottom: 25%;
  left: 8%;
  right: 8%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.25);
}

.camera-top-toolbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
  color: white;
}

.camera-tool-btn {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.camera-tool-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.camera-title-badge {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.camera-bottom-toolbar {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 36px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 30%, transparent);
  gap: 12px;
}

.camera-shutter-outer {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  padding: 4px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.camera-shutter-outer:hover {
  transform: scale(1.05);
}

.camera-shutter-outer:active {
  transform: scale(0.92);
}

.camera-shutter-inner {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.camera-shutter-outer:active .camera-shutter-inner {
  background: #e2e8f0;
  transform: scale(0.9);
}

.camera-shutter-hint {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.camera-flash-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.15s ease;
}

.camera-flash-effect.flash {
  opacity: 1;
}
