/* Flow Prótese — Estilos Globais da Aplicação */
:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --border-color: #334155;
  --border-focus: #0284c7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --turquoise: #14b8a6;
  --turquoise-hover: #0d9488;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #38bdf8;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-brand: 'Montserrat', sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Auth Screens */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
.brand-badge {
  display: inline-block;
  background: rgba(2, 132, 199, 0.15);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.auth-header h1 {
  font-family: var(--font-brand);
  font-size: 24px;
  font-weight: 800;
}
.auth-header p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 24px;
}
.auth-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* Layout */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.app-topbar {
  height: 64px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-cluster {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}
.brand-sub {
  font-size: 11px;
  color: var(--turquoise);
  font-weight: 600;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #334155;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--turquoise);
}
.user-info {
  display: flex;
  flex-direction: column;
}
.user-name {
  font-size: 13px;
  font-weight: 600;
}
.user-role {
  font-size: 11px;
  color: var(--text-muted);
}

.app-body {
  display: flex;
  flex: 1;
}
.app-sidebar {
  width: 240px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
}
.nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: #fff;
}
.nav-item.active {
  background: rgba(20, 184, 166, 0.15);
  color: var(--turquoise);
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.app-main {
  flex: 1;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Headers & Actions */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.view-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.view-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}
.view-actions {
  display: flex;
  gap: 12px;
}

/* Cards & Grid */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--turquoise);
}
.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.kpi-value {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 2px 0;
  font-family: var(--font-brand);
}
.kpi-hint {
  font-size: 11px;
  color: var(--text-muted);
}
.kpi-warning .kpi-value { color: var(--warning); }
.kpi-info .kpi-value { color: var(--info); }
.kpi-success .kpi-value { color: var(--success); }
.kpi-danger .kpi-value { color: var(--danger); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-secondary {
  background: #334155;
  color: #fff;
  border-color: #475569;
}
.btn-secondary:hover {
  background: #475569;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: #fff;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}
.btn-block {
  width: 100%;
}
.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
}
.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  flex: 1;
  min-width: 260px;
}
.search-input-wrapper input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  outline: none;
  width: 100%;
}
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  background: #334155;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-pill:hover {
  color: #fff;
}
.filter-pill.active {
  background: rgba(20, 184, 166, 0.15);
  color: var(--turquoise);
  border-color: var(--turquoise);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.data-table th {
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}
.data-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-draft { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid #475569; }
.badge-active, .status-active { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid #10b981; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid #f59e0b; }
.badge-info { background: rgba(2, 132, 199, 0.15); color: #38bdf8; border: 1px solid #0284c7; }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid #ef4444; }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.modal-lg {
  max-width: 860px;
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.modal-scrollable {
  overflow-y: auto;
  padding: 24px;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.col-span-2 {
  grid-column: span 2;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--turquoise);
}
.form-section {
  border: none;
  margin-bottom: 24px;
}
.section-legend {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

/* Autocomplete Pacientes */
.autocomplete-wrapper {
  position: relative;
}
.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1e293b;
  border: 1px solid var(--turquoise);
  border-radius: var(--radius-sm);
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  margin-top: 4px;
}
.autocomplete-item {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.autocomplete-item:hover {
  background: rgba(20, 184, 166, 0.15);
}
.autocomplete-item-name {
  font-weight: 700;
  color: #fff;
}
.autocomplete-item-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.patient-selected-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid var(--turquoise);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}
.btn-chip-clear {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
}

/* Work Types Grid (Anexo 1) */
.work-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.work-type-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.work-type-card:hover {
  border-color: #64748b;
}
.work-type-card.active {
  border-color: var(--turquoise);
  background: rgba(20, 184, 166, 0.08);
}
.type-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-type-card.active .type-radio {
  border-color: var(--turquoise);
}
.work-type-card.active .type-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turquoise);
}
.type-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

/* FDI Interactive Dental Selector (Anexo 1) */
.fdi-selector-wrapper {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}
.fdi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.fdi-actions {
  display: flex;
  gap: 10px;
}
.btn-link {
  background: transparent;
  border: none;
  color: var(--turquoise);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.fdi-dental-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.fdi-arch-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fdi-quadrant {
  display: flex;
  gap: 5px;
}
.fdi-tooth {
  width: 32px;
  height: 42px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f8fafc;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}
.fdi-tooth:hover {
  border-color: var(--turquoise);
  transform: translateY(-1px);
}
.fdi-tooth.selected {
  background: var(--turquoise) !important;
  border-color: var(--turquoise) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.4);
}
.fdi-divider-vertical {
  width: 1px;
  height: 44px;
  border-left: 1.5px dashed #475569;
}
.fdi-divider-horizontal {
  width: 100%;
  max-width: 580px;
  border-top: 1.5px dashed #475569;
  margin: 4px 0;
}
.fdi-summary-text {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* Checkboxes (Anexo 1 & 2) */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #fff;
  user-select: none;
}
.custom-checkbox input {
  display: none;
}
.checkmark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.custom-checkbox input:checked ~ .checkmark {
  background: var(--turquoise);
  border-color: var(--turquoise);
}
.custom-checkbox input:checked ~ .checkmark::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

/* Photo Cards Grid (Anexo 2) */
.photo-cards-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.photo-add-card {
  width: 170px;
  height: 140px;
  border: 1.5px dashed #475569;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: var(--bg-primary);
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.photo-add-card:hover {
  border-color: var(--turquoise);
  color: #fff;
}
.photo-add-card strong {
  font-size: 13px;
  color: #fff;
}
.photo-add-card span {
  font-size: 11px;
}
.photo-item-card {
  width: 170px;
  height: 140px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  background: #000;
}
.photo-item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.btn-photo-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.quality-profile-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
.radio-chip {
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.radio-chip input:checked + span {
  color: var(--turquoise);
  font-weight: 700;
}

/* Order Details & Mercado Livre Timeline */
.order-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.ml-timeline {
  position: relative;
  padding: 12px 0 12px 36px;
}
.ml-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 14px;
  width: 2px;
  background: var(--border-color);
}
.ml-step {
  position: relative;
  margin-bottom: 28px;
}
.ml-step:last-child {
  margin-bottom: 0;
}
.ml-step-icon {
  position: absolute;
  left: -36px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  z-index: 2;
}
.ml-step.completed .ml-step-icon {
  background: var(--success);
  border-color: var(--success);
}
.ml-step.active .ml-step-icon {
  background: var(--primary);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}
.ml-step-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
}
.ml-step-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 3px;
}
.ml-step-time {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.shipments-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.shipment-row-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.shipment-qr-thumb {
  width: 48px;
  height: 48px;
  background: #fff;
  padding: 2px;
  border-radius: 4px;
}
.shipment-qr-thumb svg {
  width: 100%;
  height: 100%;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 8px;
}
.meta-row span {
  color: var(--text-muted);
}
.meta-row strong {
  color: #fff;
}
.divider-subtle {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Camera Layout */
.camera-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.camera-viewport {
  width: 100%;
  height: 360px;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.camera-placeholder {
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.camera-controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .app-sidebar {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: -260px;
    z-index: 40;
    transition: left 0.2s ease;
  }
  .app-sidebar.open {
    left: 0;
  }
  .order-detail-grid, .camera-layout {
    grid-template-columns: 1fr;
  }
  .fdi-tooth {
    width: 26px;
    height: 36px;
    font-size: 10.5px;
  }
}

/* --- Flow Prótese - Fase 3: Scanner, Trânsito e Biossegurança --- */
.btn-scanner {
  font-weight: 600;
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.25);
  transition: all 0.2s ease;
}
.btn-scanner:hover {
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.45);
  transform: translateY(-1px);
}

.scanner-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 280px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.scanner-target-box {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  border: 2px solid rgba(20, 184, 166, 0.85);
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  overflow: hidden;
}

.scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #14b8a6;
  box-shadow: 0 0 10px #14b8a6, 0 0 20px #14b8a6;
  animation: scanLaser 2s linear infinite alternate;
}

@keyframes scanLaser {
  0% { top: 0%; opacity: 0.6; }
  50% { opacity: 1; }
  100% { top: 98%; opacity: 0.6; }
}

.scanner-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.badge-location {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-weight: 500;
}

.btn-transit-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.badge-biosafety {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(13, 148, 136, 0.2);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
}
