/* =============================================
   TB Care Plus - Premium Medical UI v4.0
   Dark Theme + Glass Morphism + Rainbow Cards
   Robot FAB + SPA Navigation
   ============================================= */

/* === CSS VARIABLES === */
:root {
  --max-width: 1280px;
  --touch-min: 56px;    /* ใหญ่ขึ้น กดง่ายสำหรับผู้สูงอายุ */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 9999px;
  --font-base: 1.25rem;   /* 20px - ผู้สูงอายุอ่านง่าย */
  --font-lg: 1.375rem;    /* 22px */
  --font-xl: 1.625rem;    /* 26px */
}

/* === BASE RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #334155 25%, #475569 50%, #334155 75%, #1e293b 100%);
  color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: var(--font-base);
  line-height: 1.75;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 60% 60%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
  0%, 100% {
    background:
      radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 60% 60%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
  }
  50% {
    background:
      radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 60% 60%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
  }
}

/* === CONTAINER === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* === GLASS MORPHISM === */
.glass-morphism {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* === SOLID COLOR BACKGROUNDS === */
.gradient-primary {
  background: #4f46e5;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}
.gradient-healthcare {
  background: #3b82f6;
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.35);
}
.gradient-success {
  background: #059669;
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.35);
}
.gradient-warning {
  background: #d97706;
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.35);
}
.gradient-danger {
  background: #e11d48;
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.35);
}

/* === COLORFUL CARD (Clean Solid Border) === */
.colorful-card-light {
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: visible;
  background-color: #ffffff;
  color: #1e293b;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15), 0 0 0 1px rgba(203, 213, 225, 0.3);
}

/* Dark card: Subtle blue glow border instead of rainbow */
.colorful-card-dark {
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: visible;
  background-color: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px rgba(99, 102, 241, 0.08);
}

/* === SPA SECTIONS === */
.app-section {
  display: none;
  min-height: 100vh;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-section.active {
  display: block;
  animation: sectionFadeIn 0.5s ease-out;
}
@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === COUNTER ANIMATION === */
.counter {
  font-variant-numeric: tabular-nums;
  transition: all 0.3s ease;
}

/* === CHART CONTAINER === */
.chart-container {
  position: relative;
  width: 100%;
  height: 300px;
  transition: all 0.3s ease;
}
@media (max-width: 768px) { .chart-container { height: 250px; } }
@media (max-width: 480px) { .chart-container { height: 200px; } }

/* === BUTTON BASE - Elderly-friendly === */
.btn {
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  outline: none;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: var(--font-lg);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.875rem 1.25rem;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
}
.btn:active { transform: scale(0.97); }

/* === MODAL === */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.active {
  display: flex;
  opacity: 1;
}
.modal .modal-content {
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

/* === FORM STYLES (White Card Context) - Elderly-friendly sizes === */
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: var(--font-lg);
  font-weight: 600;
  transition: all 0.3s ease;
  background: #ffffff;
  border: 3px solid #94a3b8;
  color: #1e293b;
  font-family: inherit;
  min-height: var(--touch-min);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.25);
  background: #fffbeb;
}
.form-input::placeholder, .form-textarea::placeholder {
  font-size: 1.125rem;
  color: #94a3b8;
}
.form-label {
  display: block;
  font-size: var(--font-lg);
  font-weight: 800;
  margin-bottom: 12px;
  color: #0f172a;
}

/* === PILL LABELS (Custom Radio/Checkbox) - Elderly-friendly sizes === */
.pill-label {
  border: 3px solid #94a3b8;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-size: var(--font-base);
  font-weight: 700;
  color: #334155;
  background-color: #f8fafc;
  user-select: none;
  -webkit-user-select: none;
  min-height: var(--touch-min);
  line-height: 1.4;
}
input[type="radio"]:checked + .pill-label,
input[type="checkbox"]:checked + .pill-label {
  color: #fff;
  font-weight: 700;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
input[type="radio"].pill-radio:checked + .pill-label {
  background-color: #4f46e5;
  border-color: #4f46e5;
}
input[type="checkbox"].pill-checkbox:checked + .pill-label {
  background-color: #10B981;
  border-color: #10B981;
}
input[type="checkbox"].pill-symptom:checked + .pill-label {
  background-color: #DC2626;
  border-color: #DC2626;
}

/* === TOAST NOTIFICATIONS === */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transform: translateX(120%);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 2001;
  display: flex;
  align-items: center;
  min-width: 300px;
  max-width: 420px;
  color: #1e293b;
  font-size: var(--font-lg);
  font-weight: 700;
}
.toast.show { transform: translateX(0); }
.toast-icon { margin-right: 14px; font-size: 24px; }
.toast.success { border-left: 5px solid #10b981; }
.toast.success .toast-icon { color: #059669; }
.toast.warning { border-left: 5px solid #f59e0b; }
.toast.warning .toast-icon { color: #d97706; }
.toast.error { border-left: 5px solid #ef4444; }
.toast.error .toast-icon { color: #dc2626; }
.toast.info { border-left: 5px solid #3b82f6; }
.toast.info .toast-icon { color: #2563eb; }

/* =============================================
   ROBOT CHARACTER (FAB)
   ============================================= */
@keyframes wave-animation {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(-10px) rotate(20deg); }
}
@keyframes dance-animation {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 4px #7dd3fc, 0 0 6px #7dd3fc, inset 0 0 2px rgba(125, 211, 252, 0.3); }
  50% { box-shadow: 0 0 8px #7dd3fc, 0 0 12px #7dd3fc, inset 0 0 4px rgba(125, 211, 252, 0.5); }
}
@keyframes aura-pulse {
  0%, 100% { opacity: 0.1; transform: scale(0.95); }
  50% { opacity: 0.3; transform: scale(1.05); }
}

#fabContainer {
  width: 140px;
  height: 250px;
  position: fixed;
  z-index: 50;
  bottom: 24px;
  right: 24px;
  transition: opacity 0.3s ease, transform 0.3s ease, right 0.3s ease, bottom 0.3s ease;
}
@media (max-width: 640px) {
  #fabContainer {
    width: 110px;
    height: 220px;
    bottom: 16px;
    right: 12px;
  }
}

#robotCharacter {
  width: 140px;
  height: 180px;
  position: relative;
  cursor: grab;
  animation: dance-animation 3s ease-in-out infinite;
}
@media (max-width: 640px) {
  #robotCharacter {
    width: 110px;
    height: 150px;
    transform: scale(0.85);
  }
}

.bot-aura {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(165, 209, 255, 0.35) 0%, rgba(165, 209, 255, 0) 60%);
  animation: aura-pulse 4s ease-in-out infinite;
  z-index: 0;
}
.bot-shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 12px;
  background: rgba(100, 116, 139, 0.5);
  border-radius: 50%;
  filter: blur(5px);
  z-index: 1;
}
.bot-part {
  position: absolute;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  box-shadow: 3px 3px 6px #c8d0dc, -3px -3px 6px #ffffff;
  border: 1.5px solid #e0e0e0;
}
.bot-head {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 85px;
  border-radius: 50%;
  z-index: 3;
}
.bot-screen {
  position: absolute;
  inset: 9px;
  background: #0f172a;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.6);
}
.bot-eyes {
  display: flex;
  gap: 14px;
  position: relative;
  transform: translateY(-2px);
}
.bot-eyes .eye {
  width: 14px;
  height: 22px;
  background: #38bdf8;
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}
.bot-smile {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 14px;
  border: 3px solid #38bdf8;
  border-top-color: transparent;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 0 10px #38bdf8;
}
.bot-antenna {
  position: absolute;
  top: 5px;
  width: 8px;
  height: 18px;
  z-index: 2;
}
.bot-antenna.left { left: 10px; transform: rotate(-15deg); }
.bot-antenna.right { right: 10px; transform: rotate(15deg); }
.antenna-stick {
  width: 4px;
  height: 12px;
  background: #c8d0dc;
  border-radius: 2px;
  position: absolute;
  bottom: 0;
  left: 2px;
}
.antenna-tip {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 2px 2px 4px #c8d0dc, -2px -2px 4px #ffffff;
}
.bot-body {
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 75px;
  border-radius: 20px 20px 30px 30px;
  z-index: 2;
}
.chest-panel {
  width: 70%;
  height: 24px;
  background: #1e293b;
  border-radius: 6px;
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  color: #7dd3fc;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.7), 0 0 5px #38bdf8;
  text-shadow: 0 0 5px #7dd3fc;
}
.bot-arm {
  top: 95px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  z-index: 1;
}
.bot-arm.left { left: 0; }
.bot-arm.right { right: 0; }
.is-waving { animation: wave-animation 1.5s ease-in-out infinite !important; }

/* FAB Menu */
.fab-menu-item {
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
}
.fab-menu-item.show {
  transform: translateY(0);
  opacity: 1;
}

/* === CHATBOT === */
#chatBot {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
}
#chatMessages {
  scrollbar-width: thin;
  scrollbar-color: #6366f1 #f1f5f9;
}
#chatMessages::-webkit-scrollbar { width: 6px; }
#chatMessages::-webkit-scrollbar-track { background: #f1f5f9; }
#chatMessages::-webkit-scrollbar-thumb { background-color: #6366f1; border-radius: 3px; }

/* === STATUS BADGES === */
.status-badge {
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
}

/* === PATIENT TABLE === */
.patient-row { cursor: pointer; transition: background 0.2s ease; }
.patient-row:hover { background: rgba(59, 130, 246, 0.05); }

.patient-name-link {
  cursor: pointer;
  color: #3b82f6;
  font-weight: 600;
  transition: color 0.2s;
}
.patient-name-link:hover {
  text-decoration: underline;
  color: #2563eb;
}

/* === TAMBON BAR CHART (CSS) === */
.tambon-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.tambon-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #94a3b8;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tambon-bar-bg {
  width: 100%;
  background: rgba(71, 85, 105, 0.5);
  border-radius: var(--radius-pill);
  height: 1.75rem;
  overflow: hidden;
}
.tambon-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  background: #4f46e5;
  transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  min-width: 2rem;
}

/* === HOMEPAGE HERO === */
.hero-bg {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 25%, #1e293b 50%, #312e81 75%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
  animation: backgroundFloat 15s ease-in-out infinite;
}

/* Animated blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(40px);
  opacity: 0.2;
  animation: blob-float 8s ease-in-out infinite;
}
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* === SKELETON LOADING === */
.skeleton {
  background: linear-gradient(90deg, rgba(71,85,105,0.3) 25%, rgba(100,116,139,0.3) 50%, rgba(71,85,105,0.3) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.8s ease-in-out infinite;
  border-radius: var(--radius-md);
}
@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === MODAL FORM BODY SCROLLBAR === */
.modal-form-body {
  scrollbar-width: thin;
  scrollbar-color: #6366f1 #f1f5f9;
}
.modal-form-body::-webkit-scrollbar { width: 6px; }
.modal-form-body::-webkit-scrollbar-track { background: #f1f5f9; }
.modal-form-body::-webkit-scrollbar-thumb { background-color: #6366f1; border-radius: 3px; }

/* === FADE IN UP === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* === RESPONSIVE === */

/* Mobile: up to 639px */
@media (max-width: 639px) {
  :root {
    --font-base: 1.125rem;  /* 18px on mobile */
    --font-lg: 1.25rem;     /* 20px */
    --font-xl: 1.5rem;      /* 24px */
    --touch-min: 54px;
  }

  .modal { padding: 0.5rem; }
  .modal .modal-content {
    max-height: 95vh;
    max-width: calc(100vw - 1rem);
    margin: 0 auto;
  }

  .tambon-row { grid-template-columns: 72px 1fr; }
  .tambon-label { font-size: 0.85rem; }
  .tambon-bar-fill { font-size: 0.8rem; }
  .tambon-bar-bg, .tambon-bar-fill { height: 1.5rem; }

  #fabMenu {
    min-width: 280px !important;
    max-width: calc(100vw - 2rem) !important;
    right: -10px !important;
  }

  /* Chatbot responsive */
  #chatBot {
    width: calc(100vw - 2rem) !important;
    max-width: 20rem !important;
    right: 0 !important;
    bottom: 160px !important;
  }

  /* Fix form inputs - keep large for elderly users */
  .form-input, .form-select, .form-textarea {
    font-size: 20px !important; /* Prevents iOS zoom + readable for elderly */
    padding: 16px 18px;
    border-width: 3px;
  }
  .form-label {
    font-size: 1.125rem !important;
  }
  .pill-label {
    font-size: 1rem !important;
    padding: 0.75rem 1rem;
  }

  /* Facility dropdown mobile fix */
  #facilityDropdown {
    width: calc(100% - 1rem) !important;
    max-width: 100% !important;
    left: 0.5rem;
  }

  /* Fix stat cards text - keep readable for elderly */
  .counter {
    font-size: 2rem !important;
  }

  /* Ensure nothing overflows horizontally */
  .container, .max-w-7xl {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Action buttons stacked full width */
  .btn {
    font-size: 1.125rem;
    padding: 0.875rem 1rem;
  }
}

/* Small phones: up to 374px (iPhone SE etc.) */
@media (max-width: 374px) {
  :root {
    --font-base: 1.0625rem;  /* 17px */
    --font-lg: 1.125rem;     /* 18px */
    --font-xl: 1.375rem;     /* 22px */
    --touch-min: 50px;
  }
  .counter {
    font-size: 1.75rem !important;
  }
  #fabMenu {
    min-width: 240px !important;
  }
  #chatBot {
    max-width: 17rem !important;
  }
  .modal .modal-content {
    max-width: calc(100vw - 0.5rem);
  }
  .form-input, .form-select, .form-textarea {
    font-size: 18px !important;
    padding: 14px 16px;
  }
}

/* Tablet: 640px - 1023px */
@media (min-width: 640px) and (max-width: 1023px) {
  .tambon-row { grid-template-columns: 90px 1fr; }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .tambon-row { grid-template-columns: 120px 1fr; }
}

/* === UTILITY === */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  body { padding-bottom: var(--safe-bottom); }
  footer { padding-bottom: calc(1rem + var(--safe-bottom)); }
  #fabContainer { bottom: calc(24px + var(--safe-bottom)); }
  .modal { padding-bottom: var(--safe-bottom); }
}

/* Print */
@media print {
  header, footer, #fabContainer, .modal, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .colorful-card-light, .colorful-card-dark { box-shadow: none; border: 1px solid #ccc; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1e293b; }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Focus visible */
:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 2px;
}
