/* ScanCart Design System — Shared Mockup Styles */

:root {
  /* Colors */
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;

  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-500: #ef4444;
  --red-600: #dc2626;

  --yellow-50: #fffbeb;
  --yellow-100: #fef3c7;
  --yellow-500: #f59e0b;

  --blue-50: #eff6ff;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: #e5e7eb;
  color: var(--gray-900);
  line-height: 1.5;
  padding: 40px 20px;
}

/* Page layout */
.page-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.page-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.screens {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

/* Phone frame */
.phone {
  width: 375px;
  min-height: 700px;
  background: var(--white);
  border-radius: 40px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.phone-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.phone-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Status bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-900);
}

.status-bar .time { font-size: 15px; font-weight: 700; }
.status-bar .icons { display: flex; gap: 4px; font-size: 13px; }

/* Navigation bar */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 12px;
  border-bottom: 1px solid var(--gray-100);
}

.nav-bar .back {
  font-size: 16px;
  color: var(--blue-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-bar .title {
  font-size: 17px;
  font-weight: 600;
}

.nav-bar .action {
  font-size: 16px;
  color: var(--blue-600);
  cursor: pointer;
  font-weight: 500;
}

.nav-bar .placeholder {
  width: 60px;
}

/* Content area */
.content {
  padding: 20px;
  padding-bottom: 100px;
}

/* Section headers */
.section-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 8px;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 8px;
}

.card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-img {
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.card-img.large {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 40px;
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-info .name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}

.card-info .detail {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

.card-action {
  color: var(--gray-400);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

/* List items */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
}

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

.checkbox {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.checkbox.checked {
  background: var(--green-500);
  border-color: var(--green-500);
  color: white;
}

.checkbox.pending {
  background: var(--yellow-100);
  border-color: var(--yellow-500);
  color: var(--yellow-500);
}

.checkbox.rejected {
  background: var(--red-100);
  border-color: var(--red-500);
  color: var(--red-500);
}

.item-text {
  flex: 1;
  min-width: 0;
}

.item-text .name {
  font-size: 16px;
  color: var(--gray-900);
}

.item-text .detail {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 1px;
}

.item-text .name.strikethrough {
  text-decoration: line-through;
  color: var(--gray-400);
}

.item-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  flex-shrink: 0;
}

.item-remove {
  color: var(--gray-300);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  border: none;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  margin-bottom: 10px;
  transition: transform 0.1s;
}

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

.btn-primary {
  background: var(--green-600);
  color: white;
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-danger {
  background: var(--red-50);
  color: var(--red-600);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gray-200);
  color: var(--gray-700);
}

.btn-blue {
  background: var(--blue-600);
  color: white;
}

.btn-approve {
  background: var(--green-600);
  color: white;
}

.btn-reject {
  background: var(--red-50);
  color: var(--red-600);
  border: 1px solid var(--red-100);
}

.btn-skip {
  background: var(--gray-100);
  color: var(--gray-600);
}

.btn-small {
  padding: 10px 16px;
  font-size: 15px;
  width: auto;
  display: inline-block;
}

/* Text link */
.text-link {
  color: var(--blue-600);
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  padding: 12px;
}

.text-link.subtle {
  color: var(--gray-400);
  font-size: 14px;
}

/* Input fields */
.input-group {
  margin-bottom: 20px;
}

.input-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--gray-900);
  background: var(--gray-50);
  outline: none;
}

.input-field::placeholder {
  color: var(--gray-400);
}

.input-field:focus {
  border-color: var(--blue-500);
  background: white;
}

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.search-bar .icon { color: var(--gray-400); font-size: 16px; }
.search-bar .text { color: var(--gray-400); font-size: 16px; }

/* Camera / Scanner */
.camera-view {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: -20px -20px 20px -20px;
}

.scan-target {
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 16px;
  position: relative;
}

.scan-target::before,
.scan-target::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: white;
  border-style: solid;
}

.scan-target::before {
  top: -1px;
  left: -1px;
  border-width: 3px 0 0 3px;
  border-radius: 12px 0 0 0;
}

.scan-target::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 12px 0;
}

.scan-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--green-500);
  box-shadow: 0 0 8px var(--green-500);
  opacity: 0.8;
}

/* Overlay */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
}

/* Success overlay */
.success-overlay {
  background: var(--green-50);
  border: 2px solid var(--green-500);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.success-overlay .check {
  font-size: 32px;
  margin-bottom: 8px;
}

.success-overlay .name {
  font-size: 18px;
  font-weight: 700;
  color: var(--green-700);
}

.success-overlay .detail {
  font-size: 14px;
  color: var(--green-600);
  margin-top: 4px;
}

/* Quantity picker */
.qty-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 20px 0;
}

.qty-picker .qty-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  background: white;
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qty-picker .qty-value {
  font-size: 32px;
  font-weight: 700;
  min-width: 48px;
  text-align: center;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--yellow-100);
  border: 1px solid var(--yellow-500);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--yellow-500);
  cursor: pointer;
}

/* Bottom nav */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 12px 20px 28px;
  background: white;
  border-top: 1px solid var(--gray-200);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--gray-400);
  cursor: pointer;
}

.nav-item .nav-icon { font-size: 22px; }
.nav-item.active { color: var(--green-600); }

/* Approval queue bar */
.queue-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--yellow-50);
  border: 1px solid var(--yellow-100);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  cursor: pointer;
}

.queue-bar .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--yellow-500);
}

.queue-bar .arrow { color: var(--yellow-500); }

/* Trip header */
.trip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 12px;
  border-bottom: 1px solid var(--gray-100);
}

.trip-header .end-trip {
  font-size: 15px;
  color: var(--red-500);
  font-weight: 500;
  cursor: pointer;
}

.trip-header .progress {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
}

/* Centered content */
.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.centered .big-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.centered h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.centered p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Shopper note bubble */
.note-bubble {
  background: var(--blue-50);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 14px;
  color: var(--gray-700);
}

.note-bubble .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-500);
  margin-bottom: 4px;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 16px 0;
}

/* Helper text */
.helper-text {
  font-size: 14px;
  color: var(--gray-500);
  text-align: center;
  padding: 12px 0;
}

/* SMS mockup */
.sms-bubble {
  max-width: 280px;
  background: var(--gray-100);
  border-radius: 18px;
  padding: 12px 16px;
  margin: 8px 0;
  font-size: 15px;
  color: var(--gray-900);
  line-height: 1.5;
}

.sms-bubble a {
  color: var(--blue-600);
  text-decoration: underline;
}

/* Web app header (for List Maker screens) */
.web-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
}

.web-header .logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--green-600);
}

.web-header .subtitle {
  font-size: 13px;
  color: var(--gray-500);
}

/* Annotation */
.annotation {
  position: relative;
  display: inline-block;
}

/* Compact input row */
.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.input-row .icon {
  color: var(--gray-400);
  font-size: 16px;
}

.input-row .placeholder {
  color: var(--gray-400);
  font-size: 16px;
  flex: 1;
}

/* Banner */
.banner {
  padding: 10px 16px;
  background: var(--blue-50);
  border-bottom: 1px solid var(--blue-500);
  font-size: 14px;
  color: var(--blue-600);
  text-align: center;
  font-weight: 500;
}

.banner a {
  color: var(--blue-600);
  font-weight: 600;
}

/* App promo */
.app-promo {
  padding: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.app-promo .icon {
  font-size: 28px;
}

.app-promo .text {
  font-size: 14px;
  color: var(--gray-600);
}

.app-promo .text strong {
  color: var(--gray-900);
}

/* Flow arrow between phones */
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gray-300);
  padding: 0 8px;
}

@media (max-width: 768px) {
  .screens {
    flex-direction: column;
    align-items: center;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }
}
