/* ==========================================================================
   PERFECT CLEAN SCHOONMAAKBEDRIJF - START & STOP REGISTRATIE
   Design System & Styling
   ========================================================================== */

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Color Palette */
  --bg-dark: #090e17;
  --bg-card: #0f172a;
  --bg-card-alt: #172236;
  --bg-card-translucent: rgba(15, 23, 42, 0.85);
  --bg-input: #1e293b;
  
  --primary: #06b6d4;
  --primary-hover: #0891b2;
  --primary-rgb: 6, 182, 212;
  --primary-glow: rgba(6, 182, 212, 0.25);

  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);

  --success: #10b981;
  --success-hover: #059669;
  --success-rgb: 16, 185, 129;
  --success-glow: rgba(16, 185, 129, 0.35);

  --danger: #f43f5e;
  --danger-hover: #e11d48;
  --danger-rgb: 244, 63, 94;
  --danger-glow: rgba(244, 63, 94, 0.35);

  --warning: #f59e0b;
  --warning-rgb: 245, 158, 11;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(6, 182, 212, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px var(--primary-glow);
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #090e17 0%, #0b1324 100%);
  pointer-events: none;
  z-index: -1;
}

/* Layout */
.app-container {
  max-width: 780px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 16px 30px;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card-translucent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  margin: 0 -16px 20px -16px;
  padding: 12px 16px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0284c7, #0d9488);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
  overflow: hidden;
  position: relative;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo-fallback {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.5px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #f8fafc, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Pills & Badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.pill-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.pill-outline.pill-active {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--success);
  background: rgba(16, 185, 129, 0.08);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
}

.pill-active .pill-dot {
  background: var(--success);
}

.blink-slow {
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  gap: 6px;
  border-top: 1px solid var(--border-subtle);
  padding: 6px 0;
}

.nav-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
  color: #fff;
  background: var(--bg-card-alt);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 0 0 1px var(--border-accent);
}

.nav-tab.active svg {
  stroke: var(--primary);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

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

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title svg {
  color: var(--primary);
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-accent {
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Status Hero Card */
.status-hero-card {
  background: linear-gradient(180deg, #101c33 0%, var(--bg-card) 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  text-align: center;
  padding: 24px 20px;
}

.status-hero-bg-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 150px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.current-date-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.state-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-idle {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-idle .state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.badge-active .state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Clock Display */
.clock-display-wrap {
  margin: 12px 0 20px;
}

.digital-clock {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.timer-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Active Shift Box */
.active-shift-panel {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}

.timer-display-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.timer-icon-pulse {
  color: var(--success);
  animation: rotateSlow 8s linear infinite;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.active-timer-caption {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.active-timer-val {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 1px;
}

.shift-metadata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  text-align: left;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.meta-val {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
}

.meta-address {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action Buttons (Start / Stop) */
.action-buttons-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

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

.btn-xl {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  font-size: 1.15rem;
  box-shadow: var(--shadow-md);
}

.btn-primary-start {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary-start:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.btn-danger-stop {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-danger-stop:hover {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.6);
}

.btn-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-labels {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-main-label {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.btn-sub-label {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.9;
}

.btn-primary {
  background: var(--primary);
  color: #042f2e;
  padding: 10px 18px;
}

.btn-primary:hover {
  background: #22d3ee;
}

.btn-accent {
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary);
  border: 1px solid rgba(6, 182, 212, 0.4);
  padding: 8px 14px;
}

.btn-accent:hover {
  background: rgba(6, 182, 212, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 6px 12px;
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 6px 12px;
}

.btn-lg {
  font-size: 1rem;
  padding: 14px 20px;
}

.btn-link {
  background: none;
  border: none;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

.active-cancel-wrap {
  margin-top: 14px;
  text-align: center;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

.input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-dim);
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.input-icon-wrap .form-input {
  padding-left: 38px;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #172338;
}

.form-textarea {
  resize: vertical;
  min-height: 60px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Map Card & Search */
.map-card {
  padding-bottom: 12px;
}

.map-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 36px 10px 38px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.88rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
}

.location-resolved-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
}

.resolved-icon {
  font-size: 22px;
  line-height: 1;
}

.resolved-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.resolved-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-weight: 700;
}

.resolved-address {
  font-size: 0.92rem;
  color: #fff;
  font-weight: 600;
  white-space: normal;
  line-height: 1.3;
}

.resolved-coords-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.coord-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.coord-tag code {
  font-family: var(--font-mono);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
}

.accuracy-tag {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Leaflet Map Styling */
.map-viewport-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.map-viewport {
  width: 100%;
  height: 320px;
  background: #1e293b;
  z-index: 10;
}

.map-crosshair-hint {
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.95);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

/* Custom Marker Pin Animation */
.custom-pin-marker {
  position: relative;
}

.pin-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: rgba(6, 182, 212, 0.4);
  border-radius: 50%;
  animation: markerPulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes markerPulse {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Leaflet dark tweaks */
.leaflet-container {
  font-family: var(--font-body);
}

.leaflet-popup-content-wrapper {
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.leaflet-popup-tip {
  background: #0f172a;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  font-size: 24px;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* History Items */
.history-btn-actions {
  display: flex;
  gap: 8px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 44px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.history-items-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s ease;
}

.history-item:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.history-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}

.history-item-date {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.history-item-emp {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.history-duration-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.history-item-site {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.history-item-address {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.history-time-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.time-chip {
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.history-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

/* Settings View */
.setting-box {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.setting-icon {
  font-size: 28px;
}

.setting-details {
  font-size: 0.9rem;
  color: var(--text-main);
}

.highlight-code {
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.setting-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.setup-steps-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.setup-steps-list strong {
  color: #fff;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-dialog {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
}

.modal-badge-icon {
  font-size: 28px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.modal-close:hover {
  color: #fff;
}

/* Report Preview in Modal */
.report-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.highlight-box {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.hl-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.hl-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
}

.report-preview-box {
  background: #090e17;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
  font-size: 0.86rem;
}

.report-section {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.report-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sec-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.sec-content {
  color: #fff;
  font-weight: 600;
}

.sec-address {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 0.78rem;
  text-decoration: none;
  margin-top: 6px;
}

.maps-link:hover {
  text-decoration: underline;
}

.time-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.84rem;
  flex-wrap: wrap;
}

.time-breakdown-row strong {
  color: var(--text-main);
}

.btn-send-mail {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
}

.btn-send-mail:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0f766e 100%);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.6);
}

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

@media (max-width: 480px) {
  .secondary-actions-row {
    grid-template-columns: 1fr;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 20px;
  left: 20px;
  max-width: 420px;
  margin: 0 auto;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.88rem;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-success {
  border-left: 4px solid var(--success);
}

.toast.toast-danger {
  border-left: 4px solid var(--danger);
}

.toast.toast-info {
  border-left: 4px solid var(--primary);
}

/* Utility & Animations */
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 20px; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Footer */
.app-footer {
  margin-top: auto;
  padding: 20px 0 10px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-version {
  color: var(--primary);
  font-weight: 600;
}

/* Print styles for work slip */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .app-header, .action-buttons-wrap, .nav-tabs, .map-card, .app-footer, .history-btn-actions, #btn-modal-close {
    display: none !important;
  }
  .modal-backdrop {
    position: static !important;
    background: none !important;
  }
  .modal-content, .report-preview-box {
    border: 1px solid #ccc !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
}
