@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* Brand Design Tokens */
:root {
  --primary: #E1251B;
  --primary-hover: #C91D14;
  --primary-light: #FFF1F0;
  --primary-border: #FCA5A5;
  --accent-yellow: #FFD54F;
  --bg-color: #F6F7FA;
  --card-bg: #FFFFFF;
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --info: #3B82F6;
  --info-light: #DBEAFE;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #1A1D24; /* Sleek dark background for outer desktop view */
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

/* PWA Mobile Shell Wrapper */
.pwa-shell {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-xl);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

@media (min-width: 768px) {
  .pwa-shell {
    height: 880px; /* Desktop mock height */
    border-radius: 40px; /* Rounded mock phone */
    border: 12px solid #2D3139; /* Phone outer rim */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255,255,255,0.1);
  }
}

/* Header & Status Bar Simulation */
.status-bar-mock {
  height: 24px;
  background-color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  color: white;
  font-size: 11px;
  font-weight: 600;
  z-index: 100;
  letter-spacing: 0.5px;
}

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

.status-bar-icons svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* Scrollable Content Area */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 84px; /* Space for Bottom Nav Bar */
  position: relative;
  scrollbar-width: none; /* Firefox */
}

.app-content::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background-color: var(--card-bg);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 12px 14px 12px; /* Pad bottom for simulated home indicator */
  z-index: 99;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.03);
}

@media (min-width: 768px) {
  .bottom-nav {
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }
}

.bottom-nav::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 120px;
  height: 4px;
  background-color: #E5E7EB;
  border-radius: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 60px;
  height: 48px;
  border-radius: 12px;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: var(--transition-smooth);
}

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

.nav-item.active svg {
  stroke: var(--primary);
  transform: scale(1.1);
}

.nav-item:active {
  transform: scale(0.92);
}

/* Home Page Header styling */
.home-header {
  background: linear-gradient(135deg, var(--primary) 0%, #C91D14 100%);
  color: white;
  padding: 24px 20px 60px 20px;
  border-bottom-left-radius: var(--border-radius-lg);
  border-bottom-right-radius: var(--border-radius-lg);
  position: relative;
}

.header-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.brand-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-logo span {
  font-weight: 800;
  font-size: 13px;
  background-color: var(--accent-yellow);
  color: #8C0600;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: white;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.welcome-section {
  margin-top: 8px;
}

.welcome-title {
  font-size: 14px;
  opacity: 0.85;
  font-weight: 400;
}

.welcome-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-top: 2px;
}

/* Floating Actions Card (Cek Resi & Tarif widget) */
.quick-widget {
  background-color: var(--card-bg);
  margin: -40px 16px 0 16px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  position: relative;
  z-index: 10;
}

.widget-tabs {
  display: flex;
  background-color: var(--bg-color);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.widget-tab {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.widget-tab.active {
  background-color: var(--card-bg);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Tracking Input Widget */
.tracking-input-wrapper {
  display: flex;
  gap: 8px;
}

.tracking-input-wrapper input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: var(--transition-smooth);
}

.tracking-input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 37, 27, 0.08);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  transition: var(--transition-smooth);
}

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

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

.btn-primary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.quick-examples {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.quick-examples span {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
  margin-left: 4px;
}

/* Shipping Rate Widget Mini Form */
.rate-form-mini {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-row-mini {
  display: flex;
  gap: 8px;
}

.input-group-icon {
  position: relative;
  flex: 1;
}

.input-group-icon input {
  width: 100%;
  padding: 11px 16px 11px 38px;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  outline: none;
  transition: var(--transition-smooth);
}

.input-group-icon input:focus {
  border-color: var(--primary);
}

.input-group-icon svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
}

/* Service Grid Menu */
.services-section {
  padding: 24px 16px 0 16px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.service-icon-bg {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: var(--transition-smooth);
  color: var(--primary);
}

.service-card:hover .service-icon-bg {
  transform: translateY(-3px) scale(1.04);
  box-shadow: var(--shadow-md);
  background-color: var(--primary-light);
}

.service-icon-bg svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.service-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Slider / Promo Banner */
.promo-section {
  padding: 24px 16px 0 16px;
}

.banner-slider {
  width: 100%;
  height: 130px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.slider-container {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.banner-slide {
  width: 33.333%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 20px;
  color: white;
}

.slide-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.slide-content p {
  font-size: 11px;
  opacity: 0.9;
  max-width: 200px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  line-height: 1.4;
}

.slide-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--accent-yellow);
  color: #8C0600;
  font-weight: 700;
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 6px;
  height: 6px;
  background-color: rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background-color: white;
  width: 14px;
  border-radius: 4px;
}

/* Tracking Timeline styles */
.timeline-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 18px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}

.resi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #E5E7EB;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.resi-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.resi-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

.status-badge.delivered {
  background-color: var(--success-light);
  color: var(--success);
}

.status-badge.in-transit {
  background-color: var(--warning-light);
  color: var(--warning);
}

.status-badge.pending {
  background-color: var(--info-light);
  color: var(--info);
}

.tracking-timeline {
  position: relative;
  padding-left: 28px;
  margin-top: 10px;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background-color: #E5E7EB;
}

.timeline-step {
  position: relative;
  padding-bottom: 18px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #E5E7EB;
  border: 4px solid var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-step.active .timeline-dot {
  background-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-step.completed .timeline-dot {
  background-color: var(--primary);
}

.timeline-content {
  font-size: 12px;
}

.timeline-title {
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
}

.timeline-step.active .timeline-title {
  color: var(--primary);
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
  line-height: 1.4;
}

.timeline-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Pages layouts */
.view-container {
  display: none;
  padding: 16px;
  animation: pageSlideIn 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
}

.view-container.active {
  display: block;
}

@keyframes pageSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Page Header back button styling */
.page-title-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.page-title-bar h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.back-btn {
  border: none;
  background: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.back-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Cek Tarif Page Layout */
.card-group {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.autocomplete-container {
  position: relative;
  margin-bottom: 14px;
}

.autocomplete-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background-color: var(--card-bg);
  border: 1px solid #E5E7EB;
  border-top: none;
  border-bottom-left-radius: var(--border-radius-sm);
  border-bottom-right-radius: var(--border-radius-sm);
  max-height: 160px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-md);
  display: none;
}

.suggestion-item {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-secondary);
}

.suggestion-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.dimension-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.input-suffix {
  position: relative;
}

.input-suffix input {
  width: 100%;
  padding: 10px 32px 10px 12px;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  outline: none;
}

.input-suffix span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.input-suffix input:focus {
  border-color: var(--primary);
}

/* Rate Results display */
.rate-results-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rate-result-card {
  border: 1.5px solid #E5E7EB;
  border-radius: var(--border-radius-sm);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.rate-result-card:hover {
  border-color: var(--primary-border);
  background-color: var(--primary-light);
}

.rate-service-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}

.rate-service-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.rate-price-info {
  text-align: right;
}

.rate-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--primary);
  font-size: 16px;
}

.rate-eta {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Order Cargo Layout */
.steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
  padding: 0 10px;
}

.steps-indicator::before {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  top: 14px;
  height: 2px;
  background-color: #E5E7EB;
  z-index: 1;
}

.step-node {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #E5E7EB;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
  position: relative;
  transition: var(--transition-smooth);
}

.step-node.active {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.step-node.completed {
  background-color: var(--success);
  color: white;
}

.order-form-step {
  display: none;
}

.order-form-step.active {
  display: block;
}

.form-group-spaced {
  margin-bottom: 14px;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

/* Receipt / Proof of Order CSS */
.receipt-wrapper {
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid #E5E7EB;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.receipt-header {
  background-color: var(--primary);
  color: white;
  padding: 16px;
  text-align: center;
}

.receipt-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.receipt-header p {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}

.receipt-body {
  padding: 20px;
}

.receipt-barcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.barcode-svg {
  width: 180px;
  height: 50px;
}

.resi-number-display {
  font-family: monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px dashed #E5E7EB;
  border-bottom: 1px dashed #E5E7EB;
  padding: 14px 0;
  margin-bottom: 14px;
}

.receipt-info-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.receipt-info-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}

.receipt-address {
  grid-column: span 2;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.receipt-total span:last-child {
  color: var(--primary);
  font-size: 18px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

/* Outlet Search & Cards */
.search-box-outlets {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.search-box-outlets input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--border-radius-sm);
  outline: none;
  font-size: 13px;
}

.search-box-outlets input:focus {
  border-color: var(--primary);
}

.outlets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.outlet-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-sm);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}

.outlet-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.outlet-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
}

.outlet-status {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
}

.outlet-status.open {
  background-color: var(--success-light);
  color: var(--success);
}

.outlet-status.closed {
  background-color: #F3F4F6;
  color: var(--text-secondary);
}

.outlet-details {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.4;
}

.outlet-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  border-top: 1px solid #F3F4F6;
  padding-top: 10px;
}

.outlet-action-btn {
  flex: 1;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition-smooth);
}

.outlet-action-btn:hover {
  color: var(--primary);
}

.outlet-action-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Service Info Page CSS */
.service-info-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-info-banner {
  height: 100px;
  background: linear-gradient(135deg, var(--primary) 0%, #B91C1C 100%);
  display: flex;
  align-items: center;
  padding: 16px;
  color: white;
}

.service-info-banner.fast {
  background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
}

.service-info-banner.super {
  background: linear-gradient(135deg, #78350F 0%, #D97706 100%);
}

.service-info-banner h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.service-info-body {
  padding: 16px;
}

.service-info-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 500;
}

.service-feature-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--success);
  fill: none;
  stroke-width: 2.5;
}

/* PWA App Install Banner */
.install-banner {
  position: absolute;
  top: 40px;
  left: 16px;
  right: 16px;
  background-color: #1F2937;
  color: white;
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none; /* Controlled by js */
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.install-text h4 {
  font-size: 13px;
  font-weight: 700;
}

.install-text p {
  font-size: 10px;
  opacity: 0.75;
  margin-top: 1px;
}

.install-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.install-btn:hover {
  background-color: var(--primary-hover);
}

.install-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.install-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Profile / Saya Page styling */
.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid var(--primary-border);
}

.profile-info h3 {
  font-size: 16px;
  font-weight: 700;
}

.profile-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.menu-list {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #F3F4F6;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background-color: var(--bg-color);
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-item-left svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2;
}

.menu-item-right svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
}

/* History Card */
.history-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.history-clear-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition-smooth);
}

.history-item:hover {
  border-color: var(--primary-border);
  background-color: var(--primary-light);
}

.history-details {
  display: flex;
  flex-direction: column;
}

.history-number {
  font-weight: 700;
  color: var(--text-primary);
}

.history-route {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Toast Message */
.toast-msg {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: rgba(31, 41, 55, 0.95);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 2000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Desktop Header Navigation (hidden by default on mobile) */
.desktop-header {
  display: none;
  background-color: var(--card-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.desktop-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.desktop-nav-links {
  display: flex;
  gap: 32px;
}

.desktop-nav-links .nav-link-item {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: var(--transition-smooth);
}

.desktop-nav-links .nav-link-item:hover {
  color: var(--primary);
}

.desktop-nav-links .nav-link-item.active-link {
  color: var(--primary);
}

.desktop-nav-links .nav-link-item.active-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* ==================== RESPONSIVE MEDIA QUERIES ==================== */

/* Tablets & Small Laptops */
@media (min-width: 768px) {
  body {
    background-color: var(--bg-color); /* Light body bg since shell is now full screen */
    align-items: flex-start;
    overflow-y: auto;
  }

  .pwa-shell {
    max-width: 100%;
    height: auto;
    min-height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .status-bar-mock {
    display: none; /* Hide simulated status bar on desktop/tablets */
  }

  .bottom-nav {
    display: none; /* Hide bottom nav on desktop/tablets */
  }

  .desktop-header {
    display: block; /* Show desktop top nav header */
  }

  .app-content {
    padding-bottom: 40px; /* Reset bottom spacing since bottom-nav is hidden */
  }

  .view-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
  }

  /* Services grid to 4 columns on tablets */
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  /* Centered and aligned form fields for Order pickup */
  .card-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-md);
  }

  .card-group h3.section-title,
  .card-group .autocomplete-container,
  .card-group .form-group-spaced:last-of-type {
    grid-column: span 2;
  }

  .form-navigation {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .steps-indicator {
    max-width: 700px;
    margin: 0 auto 24px auto;
  }

  .receipt-wrapper {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Services tab cards side-by-side */
  #view-services.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  #view-services .page-title-bar {
    grid-column: span 3;
  }

  #view-services .service-info-card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-md);
  }

  #view-services .service-info-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* Profile page side-by-side */
  #view-profile.active {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    align-items: start;
  }

  #view-profile .page-title-bar {
    grid-column: span 2;
  }

  #view-profile .profile-card {
    margin-bottom: 0;
    flex-direction: column;
    text-align: center;
    padding: 24px;
    box-shadow: var(--shadow-md);
  }

  #view-profile .profile-avatar {
    width: 80px;
    height: 80px;
    font-size: 32px;
  }

  #view-profile .menu-list {
    box-shadow: var(--shadow-md);
  }
}

/* Widescreen Laptop & PC Desktop */
@media (min-width: 1024px) {
  /* Home screen side-by-side grid */
  #view-home.active {
    display: grid;
    grid-template-areas:
      "hero widget"
      "services services"
      "guides guides";
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: start;
  }

  .home-header {
    display: none; /* Hide mobile-only header on PC */
  }

  .home-promo-slider {
    grid-area: hero;
    padding: 0;
  }

  .banner-slider {
    height: 250px; /* Taller banner on widescreen */
  }

  .quick-widget {
    grid-area: widget;
    margin: 0;
    height: 100%;
    min-height: 295px; /* Matches banner heights */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .services-section {
    grid-area: services;
    padding: 0;
    margin-top: 12px;
  }

  /* Main services grid 8 columns horizontal row */
  .services-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
  }

  .home-guides {
    grid-area: guides;
    padding: 0;
    margin-top: 12px;
  }

  .home-guides .menu-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: none;
    box-shadow: none;
  }

  .home-guides .menu-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.02);
  }

  /* Track / Resi page side-by-side grid */
  #view-track.active {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    grid-template-rows: auto auto 1fr;
    gap: 24px;
    align-items: start;
  }

  #view-track .page-title-bar {
    grid-column: span 2;
  }

  #view-track .card-group {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    max-width: 100%;
    box-shadow: var(--shadow-md);
  }

  #view-track #history-section {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
  }

  #view-track #tracking-result {
    grid-column: 2;
    grid-row: 2 / span 2;
    margin: 0;
    display: block;
  }

  /* Detailed calculation rates results grid */
  #detailedRatesResults {
    margin-top: 24px;
  }

  #calcRatesList {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  #calcRatesList .rate-result-card {
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  #calcRatesList .rate-price-info {
    text-align: left;
    width: 100%;
    border-top: 1px dashed #E5E7EB;
    padding-top: 10px;
  }
}

/* Indikator Dropdown (Chevron) untuk Autocomplete Kota */
.autocomplete-container input {
  padding-right: 38px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) center;
  background-size: 14px;
  cursor: pointer;
}

/* Slide-up Address Select Drawer Modal */
.geo-drawer-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: flex-end;
}

.geo-drawer-content {
  width: 100%;
  max-width: 430px;
  background-color: var(--card-bg);
  border-top-left-radius: var(--border-radius-md);
  border-top-right-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  height: 80vh;
  max-height: 600px;
  animation: slideUpDrawer 0.25s cubic-bezier(0.1, 0.76, 0.55, 0.94);
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .geo-drawer-content {
    max-width: 500px;
    margin-bottom: auto;
    margin-top: auto;
    border-radius: var(--border-radius-md);
    height: 500px;
  }
  .geo-drawer-modal {
    align-items: center;
  }
}

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

.geo-drawer-header {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.geo-drawer-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.geo-drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.geo-drawer-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.geo-breadcrumbs {
  padding: 10px 16px;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.geo-breadcrumbs::-webkit-scrollbar {
  display: none;
}

.breadcrumb-node {
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.breadcrumb-node.active {
  color: var(--primary);
  font-weight: 700;
}

.breadcrumb-node.completed {
  color: var(--text-primary);
}

.breadcrumb-separator {
  color: var(--text-muted);
}

.geo-options-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.geo-option-item {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(0,0,0,0.02);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.geo-option-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.geo-option-item::after {
  content: '\203A';
  font-size: 18px;
  color: var(--text-muted);
  font-weight: bold;
}

/* Admin Panel Specific Styling & Badges */
.admin-badge {
  display: inline-block;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

.admin-badge.delivered { background-color: #D1FAE5; color: #065F46; }
.admin-badge.transit { background-color: #DBEAFE; color: #1E40AF; }
.admin-badge.pending { background-color: #FEE2E2; color: #991B1B; }
.admin-badge.default { background-color: #F3F4F6; color: #374151; }

#view-admin.active {
  animation: pageSlideIn 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
}

@media (min-width: 1024px) {
  .admin-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }
}



