/* ==========================================================================
   FMS Smart Campus x faceVis Live AI — Custom Styles (fv-* namespace)
   Supplements Tailwind base bundle without depending on unpurged utilities.
   ========================================================================== */

:root {
  --fv-emerald: #10b981;
  --fv-emerald-dark: #059669;
  --fv-blue: #2563eb;
  --fv-red: #ef4444;
  --fv-amber: #f59e0b;
  --fv-slate-900: #0f172a;
  --fv-slate-800: #1e293b;
  --fv-slate-200: #e2e8f0;
}

/* Custom slim scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.45); border-radius: 999px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.7); }

/* Sidebar live pill */
.fv-nav-live-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Filter bar in Giám Sát AI (Live) */
.fv-monitor-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.fv-filter-pills {
  display: inline-flex;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.fv-pill-btn {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fv-pill-btn:hover { background: #f1f5f9; color: #0f172a; }
.fv-pill-btn.active { background: #2563eb; color: #ffffff; box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25); }
.fv-pill-btn.active-real { background: #059669; color: #ffffff; box-shadow: 0 2px 6px rgba(5, 150, 105, 0.28); }

/* Real AI Camera Tile */
.fv-live-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border: 2px solid #10b981;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25), 0 10px 25px -5px rgba(15, 23, 42, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.fv-live-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.45), 0 16px 30px -8px rgba(15, 23, 42, 0.35);
}
.fv-live-tile.fv-tile-alert {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.45), 0 12px 28px rgba(239, 68, 68, 0.25);
}
.fv-live-tile.fv-tile-stopped {
  border-color: #475569;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}
.fv-webrtc-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000000;
}
.fv-tile-top-left {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.fv-badge-real {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45);
}
.fv-badge-real-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ecfdf5;
  animation: fvPulse 1.4s ease-in-out infinite;
}
@keyframes fvPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.fv-badge-camid {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.fv-badge-sim {
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.fv-tile-top-right {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fv-tile-loc {
  background: rgba(2, 6, 23, 0.76);
  color: #f8fafc;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}
.fv-tile-icon-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  transition: all 0.15s ease;
}
.fv-tile-icon-btn:hover { background: #2563eb; border-color: #60a5fa; }
.fv-tile-bottom {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.fv-tile-bottom-idle {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
}
.fv-tile-bottom-white {
  background: rgba(5, 150, 105, 0.9);
  border: 1px solid #6ee7b7;
  color: #ffffff;
}
.fv-tile-bottom-black {
  background: rgba(220, 38, 38, 0.92);
  border: 1px solid #fca5a5;
  color: #ffffff;
}
.fv-tile-stopped-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
  color: #cbd5e1;
}

/* Live Face Check-in Strip */
.fv-checkin-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.fv-checkin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
  flex-wrap: wrap;
}
.fv-checkin-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.fv-checkin-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 215px;
}
.fv-checkin-chip:hover { border-color: #3b82f6; background: #eff6ff; transform: translateY(-1px); }
.fv-checkin-chip.is-black { border-color: #fca5a5; background: #fef2f2; }
.fv-checkin-crop {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #cbd5e1;
  background: #0f172a;
  flex-shrink: 0;
}
.fv-checkin-chip.is-white .fv-checkin-crop { border-color: #10b981; }
.fv-checkin-chip.is-black .fv-checkin-crop { border-color: #ef4444; }

/* Enrollment & Pose Rows */
.fv-enroll-layout {
  display: grid;
  grid-template-columns: minmax(340px, 460px) 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1100px) {
  .fv-enroll-layout { grid-template-columns: 1fr; }
}
.fv-pose-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  transition: border-color 0.15s ease;
}
.fv-pose-row.has-image { border-color: #10b981; background: #f0fdf4; }
.fv-pose-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.fv-pose-row-body {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fv-pose-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #10b981;
  background: #0f172a;
  flex-shrink: 0;
}
.fv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fv-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.fv-btn-primary { background: #2563eb; color: #ffffff; }
.fv-btn-primary:hover:not(:disabled) { background: #1d4ed8; }
.fv-btn-emerald { background: #059669; color: #ffffff; }
.fv-btn-emerald:hover:not(:disabled) { background: #047857; }
.fv-btn-outline { background: #ffffff; color: #334155; border-color: #cbd5e1; }
.fv-btn-outline:hover:not(:disabled) { background: #f8fafc; border-color: #94a3b8; }
.fv-btn-danger { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.fv-btn-danger:hover:not(:disabled) { background: #fee2e2; }
.fv-btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.fv-btn-burst {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.fv-btn-burst:hover { background: #059669; color: #ffffff; border-color: #059669; }

/* Enrolled Person Cards */
.fv-person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}
.fv-person-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fv-pose-slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.fv-pose-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.fv-pose-slot-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fv-pose-slot-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.fv-pose-slot-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fv-pose-slot-del:hover { background: #ef4444; }
.fv-pose-slot-add {
  width: 100%;
  height: 100%;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.15s ease;
}
.fv-pose-slot-add:hover { border-color: #10b981; color: #059669; background: #ecfdf5; }

/* Modals (Burst Capture, Duplicate 3-Option, Crop Zoom, Real Camera Detail) */
.fv-modal-backdrop {
  position: fixed;
  inset: 0;
  margin: 0 !important;
  z-index: 60;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.fv-modal-box {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.35);
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fv-modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.fv-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
}

/* Burst 8-frame Grid */
.fv-burst-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 780px) {
  .fv-burst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fv-burst-card {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
}
.fv-burst-card:hover { border-color: #2563eb; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18); }
.fv-burst-card.is-best { border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25); }
.fv-burst-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #0f172a; display: block; }
.fv-burst-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  font-size: 11.5px;
  background: #f8fafc;
}
.fv-burst-best-tag {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
  font-weight: 800;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
}

/* Duplicate 3-Option Cards */
.fv-dup-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.fv-dup-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fv-dup-btn-cancel { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.fv-dup-btn-cancel:hover { background: #fee2e2; }
.fv-dup-btn-merge { background: #eff6ff; border-color: #93c5fd; color: #1e3a8a; }
.fv-dup-btn-merge:hover { background: #dbeafe; }
.fv-dup-btn-force { background: #f8fafc; border-color: #cbd5e1; color: #1e293b; }
.fv-dup-btn-force:hover { background: #f1f5f9; border-color: #94a3b8; }

/* Live Toast Notification */
.fv-toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
  pointer-events: none;
}
.fv-toast {
  pointer-events: auto;
  background: #0f172a;
  color: #f8fafc;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
  border-left: 4px solid #10b981;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fv-toast.is-error { border-left-color: #ef4444; }
.fv-toast.is-warn { border-left-color: #f59e0b; }

/* Badges */
.fv-badge-white {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.fv-badge-black {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}
.fv-badge-faceid {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

/* Spinner */
.fv-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: fvSpin 0.8s linear infinite;
}
@keyframes fvSpin { to { transform: rotate(360deg); } }

/* Events Filter Grid */
.fv-events-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 10px;
  align-items: end;
}
.fv-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  color: #0f172a;
  background: #ffffff;
}
.fv-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ==========================================================================
   Supplement Tailwind utilities purged from the original Vite CSS bundle
   ========================================================================== */
.-right-2 { right: -0.5rem; }
.bottom-3 { bottom: 0.75rem; }
.right-2\.5 { right: 0.625rem; }
.right-3 { right: 0.75rem; }
.top-2\.5 { top: 0.625rem; }

.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-50\/35 { background-color: rgba(236, 253, 245, 0.35); }
.bg-emerald-50\/70 { background-color: rgba(236, 253, 245, 0.7); }
.bg-red-50\/50 { background-color: rgba(254, 242, 242, 0.5); }
.bg-orange-500\/85 { background-color: rgba(249, 115, 22, 0.85); }
.bg-red-500\/85 { background-color: rgba(239, 68, 68, 0.85); }
.bg-blue-500\/75 { background-color: rgba(59, 130, 246, 0.75); }
.bg-slate-800\/80 { background-color: rgba(30, 41, 59, 0.8); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.border-0 { border-width: 0px; }
.border-emerald-500 { border-color: #10b981; }
.border-l-emerald-500 { border-left-color: #10b981; }
.border-l-red-500 { border-left-color: #ef4444; }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-600 { color: #059669; }
.text-amber-600 { color: #d97706; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-\[10\.5px\] { font-size: 10.5px; }
.text-\[11px\] { font-size: 11px; }

.hover\:text-slate-200:hover { color: #e2e8f0; }
.hover\:text-blue-300:hover { color: #93c5fd; }
.hover\:text-blue-700:hover { color: #1d4ed8; }
.hover\:text-red-700:hover { color: #b91c1c; }

.h-7 { height: 1.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.space-x-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.625rem; }

.break-all { word-break: break-all; }
.content-between { align-content: space-between; }
.flex-shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0px; }

.gap-1\.5 { gap: 0.375rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }

.h-11 { height: 2.75rem; }
.h-14 { height: 3.5rem; }
.h-\[230px\] { height: 230px; }
.h-\[82\%\] { height: 82%; }
.max-h-72 { max-height: 18rem; }
.max-h-\[68vh\] { max-height: 68vh; }
.max-w-xs { max-width: 20rem; }
.w-7 { width: 1.75rem; }
.w-14 { width: 3.5rem; }
.w-80 { width: 20rem; }

.mb-1\.5 { margin-bottom: 0.375rem; }
.mt-6 { margin-top: 1.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3\.5 { padding: 0.875rem; }
.p-5 { padding: 1.25rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-8 { padding-left: 2rem; }
.pl-9 { padding-left: 2.25rem; }
.pr-1 { padding-right: 0.25rem; }
.pr-3 { padding-right: 0.75rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-0\.5 { padding-top: 0.125rem; }
.pt-3 { padding-top: 0.75rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.from-slate-900\/35 {
  --tw-gradient-from: rgba(15, 23, 42, 0.35) var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(15, 23, 42, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.via-transparent {
  --tw-gradient-to: rgba(0, 0, 0, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.to-slate-900\/55 {
  --tw-gradient-to: rgba(15, 23, 42, 0.55) var(--tw-gradient-to-position);
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:w-56 { width: 14rem; }
}
@media (min-width: 768px) {
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
}
@media (min-width: 640px) {
  .sm\:inline-flex { display: inline-flex; }
}

/* ==========================================================================
   TechFest 2026 — Visitor Metadata, Leads Table & Live Kiosk Showcase
   ========================================================================== */
.fv-nav-count-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
}
.fv-textarea {
  resize: vertical;
  min-height: 54px;
  line-height: 1.45;
}
.fv-quick-burst-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid #10b981;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fv-quick-burst-btn:hover {
  background: #10b981;
  color: #ffffff;
}
.fv-person-meta-box {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fv-zalo-link {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 5px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
}
.fv-zalo-link:hover { background: #2563eb; color: #ffffff; border-color: #2563eb; }
.fv-mini-chip-btn {
  padding: 1px 6px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}
.fv-mini-chip-btn:hover { background: #e2e8f0; color: #0f172a; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* TechFest Leads KPI Grid */
.fv-leads-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1024px) {
  .fv-leads-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fv-leads-kpi-grid { grid-template-columns: 1fr; }
}
.fv-leads-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #2563eb;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* TechFest Kiosk Button & Full-Screen Exhibition Mode */
.fv-btn-kiosk {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}
.fv-btn-kiosk:hover {
  background: linear-gradient(135deg, #4338ca 0%, #1d4ed8 100%);
}
.fv-kiosk-overlay {
  position: fixed;
  inset: 0;
  margin: 0 !important;
  z-index: 65;
  background: radial-gradient(circle at top left, #1e293b 0%, #090d16 55%, #020617 100%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  gap: 14px;
}
.fv-kiosk-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.fv-kiosk-live-pill {
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.fv-kiosk-stat-chip {
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
}
.fv-kiosk-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.85);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fv-kiosk-btn:hover { background: rgba(51, 65, 85, 0.95); }
.fv-kiosk-btn.is-active {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #6ee7b7;
}
.fv-kiosk-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1fr);
  gap: 16px;
}
@media (max-width: 1080px) {
  .fv-kiosk-body { grid-template-columns: 1fr; overflow-y: auto; }
}
.fv-kiosk-video-panel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #020617;
  border: 2px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  min-height: 360px;
}
.fv-kiosk-video-footer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.88) 0%, transparent 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  pointer-events: none;
}
.fv-kiosk-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.fv-kiosk-welcome {
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}
.fv-kiosk-welcome.is-white {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.92) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(16, 185, 129, 0.6);
}
.fv-kiosk-welcome.is-black {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.95) 0%, rgba(15, 23, 42, 0.96) 100%);
  border-color: rgba(239, 68, 68, 0.8);
}
.fv-kiosk-welcome.is-idle {
  background: rgba(15, 23, 42, 0.88);
}
.fv-kiosk-welcome-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6ee7b7;
}
.fv-kiosk-welcome.is-black .fv-kiosk-welcome-tag { color: #fca5a5; }
.fv-kiosk-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #10b981;
  background: #0f172a;
  flex-shrink: 0;
}
.fv-kiosk-welcome.is-black .fv-kiosk-avatar { border-color: #ef4444; }
.fv-kiosk-metric {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-weight: 700;
}
.fv-kiosk-feed {
  flex: 1;
  min-height: 0;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.fv-kiosk-feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.fv-kiosk-feed-row.is-black {
  background: rgba(127, 29, 29, 0.35);
  border-color: rgba(239, 68, 68, 0.45);
}
