/* Custom Styles for GMM Field Sales & NOO Tracker (Gojek / Grab Inspired Mobile UI) */

:root {
  --gojek-green: #00AA13;
  --gojek-green-dark: #008910;
  --gojek-bg: #F7F9FA;
  --text-dark: #1C2430;
  --card-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--gojek-bg);
  color: var(--text-dark);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Mobile App Frame Container */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #FFFFFF;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  padding-bottom: 75px; /* space for fixed bottom nav */
}

/* Header Gradient */
.app-header {
  background: linear-gradient(135deg, #00AA13 0%, #00870E 100%);
  color: #FFFFFF;
}

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

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  width: 20%;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 3px;
}

.nav-item.active {
  color: var(--gojek-green);
  font-weight: 700;
}

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

/* Action Center Floating Camera Button style */
.nav-item-primary {
  position: relative;
  top: -12px;
}

.nav-item-primary .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gojek-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 170, 19, 0.4);
}

/* Camera Live View & Watermark Canvas */
.camera-preview-box {
  position: relative;
  width: 100%;
  height: 320px;
  background-color: #000;
  border-radius: 16px;
  overflow: hidden;
}

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

#watermark-canvas {
  display: none;
  width: 100%;
  border-radius: 12px;
}

.camera-overlay-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.4;
}

/* Leaflet Map Preview */
#leaflet-map {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  z-index: 1;
}

/* Progress bar styling */
.progress-bar-fill {
  transition: width 0.5s ease-in-out;
}

/* Print Media Styles for Receipt Struk Printing */
@media print {
  body * {
    visibility: hidden;
  }
  #receipt-printable-area, #receipt-printable-area * {
    visibility: visible;
  }
  #receipt-printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 80mm;
    margin: 0 auto;
    padding: 10px;
    border: none !important;
    box-shadow: none !important;
  }
}
