:root {
  --primary: #0057A8;
  --primary-dark: #004288;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg: #f4f4f8;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --header-h: 60px;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

#app { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Header ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: var(--primary);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  color: white;
  box-shadow: 0 2px 8px rgba(0,87,168,.25);
}
.header-logo { font-family: 'Cabinet Grotesk', system-ui, sans-serif; font-size: 17px; font-weight: 900; letter-spacing: -1px; }
.header-name { font-size: 14px; opacity: .85; }

/* ── Scroll content ── */
.scroll-content {
  margin-top: var(--header-h);
  margin-bottom: var(--nav-h);
  overflow-y: auto;
}
.main { padding: 16px; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

/* ── Nav ── */
.nav-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: white;
  display: flex; border-top: 1px solid var(--border);
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted); cursor: pointer; gap: 2px; padding: 6px 0;
  transition: color .15s;
}
.nav-item.active { color: var(--primary); font-weight: 700; }
.nav-icon-text {
  width: 28px; height: 28px; background: var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--muted);
}
.nav-item.active .nav-icon-text { background: var(--primary); color: white; }

/* ── Login ── */
.login-screen {
  display: flex; flex-direction: column; align-items: center;
  min-height: 100vh; padding: 60px 24px 40px;
  gap: 14px; max-width: 400px; margin: 0 auto;
}

/* Logo placeholder — dark gradient rectangle suggesting a professional brand mark */
.login-logo-img {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.login-logo-img .logo-text {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  font-size: 28px; font-weight: 900; color: #1a1a2e; letter-spacing: -2px; line-height: 1;
}
.login-logo-img .logo-text .logo-dot { color: var(--primary); }

.login-title { font-size: 26px; font-weight: 800; color: var(--text); }
.login-sub { font-size: 16px; color: var(--muted); text-align: center; margin-bottom: 8px; }
.login-tabs { display: flex; gap: 8px; width: 100%; margin-bottom: 8px; }
.tab-btn {
  flex: 1; padding: 10px; border: 2px solid var(--border); border-radius: 10px;
  background: white; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.tab-btn.active { border-color: var(--primary); color: var(--primary); background: #e8f0fb; }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.form-label { font-size: 15px; font-weight: 600; color: var(--text); }
.form-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; background: white; transition: border-color .15s; outline: none;
}
.form-input:focus { border-color: var(--primary); }
.form-select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; background: white; cursor: pointer; outline: none;
}
.form-select:focus { border-color: var(--primary); }
.checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.checkbox-item { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.checkbox-item input { width: 18px; height: 18px; cursor: pointer; }

/* Camera icon for file uploads — no emoji */
.camera-icon {
  width: 48px; height: 40px; border-radius: 8px; margin-bottom: 4px;
  background: linear-gradient(135deg, rgba(0,87,168,0.08), rgba(0,87,168,0.20));
  border: 2px solid var(--primary);
  position: relative;
}
.camera-icon::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--primary);
}

.file-upload-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed var(--border); border-radius: 10px; padding: 24px;
  cursor: pointer; gap: 8px; color: var(--muted); font-size: 14px; text-align: center;
  transition: border-color .15s;
}
.file-upload-label:hover { border-color: var(--primary); }
.file-upload-label.has-file { border-color: var(--success); color: var(--success); }

/* ── Buttons ── */
.btn {
  padding: 13px 20px; border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-outline { background: white; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 10px 18px; font-size: 15px; width: auto; }
.btn-disabled { opacity: .6; pointer-events: none; }

/* Delivery toggle buttons */
.btn-delivery-off {
  padding: 10px 16px; border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
  cursor: pointer; background: #fee2e2; color: #dc2626; width: auto; white-space: nowrap;
  transition: all .15s;
}
.btn-delivery-off:hover { background: #fecaca; }
.btn-delivery-on {
  padding: 10px 16px; border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
  cursor: pointer; background: #dcfce7; color: #16a34a; width: auto; white-space: nowrap;
  transition: all .15s;
}
.btn-delivery-on:hover { background: #bbf7d0; }

/* ── Cards ── */
.status-card {
  background: white; border-radius: 14px; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  gap: 12px;
}
.status-info .status-label { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.status-value { font-size: 20px; font-weight: 700; margin-top: 2px; }
.status-value.online { color: var(--success); }
.status-value.offline { color: var(--muted); }

/* ── Stats ── */
.stats-row { display: flex; gap: 10px; }
.stat-box {
  flex: 1; background: white; border-radius: 12px; padding: 14px;
  text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.stat-num { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-lbl { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── Push banner ── */
.push-banner {
  background: linear-gradient(135deg, #0057A8, #003d7a);
  border-radius: 14px; padding: 16px 18px; color: white;
  display: flex; flex-direction: column; gap: 8px;
}
.push-banner-title { font-size: 16px; font-weight: 700; }
.push-banner-sub { font-size: 13px; opacity: .85; }

/* ── Jobs ── */
.section-heading { font-size: 16px; font-weight: 700; color: var(--text); }
.jobs-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  background: white; border-radius: 14px; padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); border-left: 4px solid transparent;
}
.job-card.highlight { border-left-color: var(--primary); }
.job-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.job-type {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .5px;
}
.job-type.laundry { background: #dbeafe; color: #1d4ed8; }
.job-type.return  { background: #fef3c7; color: #92400e; }
.job-status { font-size: 13px; color: var(--muted); font-weight: 600; }
.job-status.pending  { color: var(--primary); }
.job-status.accepted { color: var(--success); }
.job-status.completed{ color: var(--muted); }
.job-details { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.job-detail { font-size: 16px; color: var(--text); }
.job-actions { display: flex; gap: 8px; }
.job-actions .btn { flex: 1; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-icon-box {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--border), #d1d5db);
}

/* ── Pending screen ── */
.pending-icon {
  width: 96px; height: 80px; border-radius: 16px; margin-bottom: 8px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 3px solid #f59e0b;
  position: relative;
}
.pending-icon::after {
  content: '!';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px; font-weight: 900; color: #f59e0b;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s;
}
.modal {
  background: white; border-radius: 20px 20px 0 0; padding: 24px 20px 36px;
  width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 16px;
}
.modal-title { font-size: 18px; font-weight: 800; }
.modal-actions { display: flex; gap: 10px; margin-top: 4px; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #1a1a2e; color: white; padding: 10px 20px; border-radius: 50px;
  font-size: 14px; font-weight: 600; z-index: 300; white-space: nowrap;
  opacity: 0; transition: all .25s;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── Stripe connect banner ── */
.stripe-banner {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-radius: 14px; padding: 18px 20px; color: white; display: flex; flex-direction: column; gap: 10px;
}
.stripe-banner .push-banner-title { color: white; font-size: 17px; font-weight: 800; }
.stripe-banner .push-banner-sub { color: rgba(255,255,255,.9); font-size: 15px; }
.stripe-banner .btn, .stripe-banner button { background: white !important; color: #0284c7 !important; border: none !important; font-weight: 800 !important; margin-top: 4px; }
.stripe-banner .btn:hover { background: rgba(255,255,255,.9) !important; }

/* ── Error ── */
.error-msg { color: var(--danger); font-size: 13px; min-height: 16px; text-align: center; }

/* ── Success screen ── */
.success-screen {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: 100vh; padding: 80px 24px 40px; gap: 16px;
}
.success-check {
  width: 80px; height: 80px; border-radius: 50%; background: var(--success);
  position: relative; flex-shrink: 0;
}
.success-check::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -60%) rotate(45deg);
  width: 20px; height: 34px;
  border-right: 4px solid white;
  border-bottom: 4px solid white;
}
.success-title { font-size: 24px; font-weight: 800; color: var(--success); }
.success-sub { font-size: 15px; color: var(--muted); max-width: 320px; line-height: 1.5; }

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