/* =========================================================
   Aplikasi Motoris - Gojek-Style Native Mobile Aesthetics
   ========================================================= */

:root {
  --gojek-green: #00AA13;
  --gojek-green-dark: #008A0F;
  --gojek-dark: #1C1C1C;
  --gojek-bg: #F4F5F7;
  --gojek-card: #FFFFFF;
  --gojek-gray: #707070;
  --gojek-red: #EE2737;
  --gojek-blue: #00A5CF;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--gojek-bg);
  color: var(--gojek-dark);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  overscroll-behavior-y: none;
}

/* Mobile Frame Wrapper for Desktop / Tablet preview */
.mobile-wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #FAFAFA;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 75px; /* space for fixed bottom nav */
}

/* Supervisor Desktop Mode */
.supervisor-mode .mobile-wrapper {
  max-width: 100% !important;
  box-shadow: none;
  padding-bottom: 0;
}

/* Header Bar */
.gojek-header {
  background: linear-gradient(135deg, #00AA13 0%, #008A0F 100%);
  color: white;
  padding: 16px 20px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 170, 19, 0.25);
}

/* Floating Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 65px;
  background: #FFFFFF;
  border-top: 1px solid #EFEFEF;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8E8E93;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 20%;
  padding: 6px 0;
}

.bottom-nav-item i {
  font-size: 22px;
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}

.bottom-nav-item.active {
  color: var(--gojek-green);
}

.bottom-nav-item.active i {
  transform: translateY(-2px) scale(1.1);
}

/* Cards & UI Elements */
.go-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #F0F0F0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.go-card:active {
  transform: scale(0.985);
}

/* Action Buttons */
.btn-gojek {
  background: var(--gojek-green);
  color: white;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 170, 19, 0.3);
  border: none;
  cursor: pointer;
}

.btn-gojek:active {
  background: var(--gojek-green-dark);
  transform: scale(0.98);
}

.btn-danger {
  background: var(--gojek-red);
  color: white;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 4px 12px rgba(238, 39, 55, 0.25);
}

/* Camera Live Viewfinder & Watermark Canvas */
.camera-viewfinder {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 380px;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto;
}

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

.camera-overlay-watermark {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
  color: white;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
}

/* Map Containers */
#visitMap, #supervisorMap {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  z-index: 1;
}

#supervisorMap {
  height: 480px;
}

/* Thermal Invoice Paper Styling */
.thermal-receipt {
  background: #FFFDF0;
  border: 1px dashed #D2C4A5;
  font-family: 'Courier New', Courier, monospace;
  padding: 20px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Badge tags */
.badge-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-success { background: #E6F8E8; color: #00AA13; }
.badge-warning { background: #FFF4E5; color: #FF9500; }
.badge-danger { background: #FDE8E9; color: #EE2737; }
.badge-info { background: #E5F6FD; color: #00A5CF; }

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F1F1F1;
}
::-webkit-scrollbar-thumb {
  background: #C1C1C1;
  border-radius: 4px;
}
