/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Plus Jakarta Sans', sans-serif;
  
  /* Logo Color System - Light Mode */
  --logo-red: #850000;
  --logo-monogram: #1e293b;
  --logo-grey: #64748b;
  
  /* Color Palette - Light Mode */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --border-card: rgba(255, 255, 255, 0.65);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-accent: #0284c7;
  --border-color: rgba(226, 232, 240, 0.8);
  --nav-bg: rgba(255, 255, 255, 0.75);
  --grid-line: rgba(148, 163, 184, 0.08);
  --shadow-color: rgba(15, 23, 42, 0.04);
  --shadow-color-hover: rgba(15, 23, 42, 0.08);
  
  --panel-bg: #f1f5f9;
  --panel-border: rgba(226, 232, 240, 1);
}

[data-theme="dark"] {
  /* Logo Color System - Dark Mode */
  --logo-red: #f87171;
  --logo-monogram: #f8fafc;
  --logo-grey: #94a3b8;

  /* Color Palette - Dark Mode */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.65);
  --border-card: rgba(255, 255, 255, 0.06);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-accent: #38bdf8;
  --border-color: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(11, 15, 25, 0.75);
  --grid-line: rgba(255, 255, 255, 0.025);
  --shadow-color: rgba(0, 0, 0, 0.35);
  --shadow-color-hover: rgba(0, 0, 0, 0.5);
  
  --panel-bg: #1e293b;
  --panel-border: rgba(255, 255, 255, 0.05);
}

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
}

body {
  font-family: var(--font-primary);
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Override Tailwind color usages to respect theme */
.text-brand-dark { color: var(--text-primary); }
.text-brand-slate { color: var(--text-secondary); }
.bg-brand-soft { background-color: var(--bg-primary); }
.bg-white { background-color: var(--bg-secondary); }
.border-slate-200\/80 { border-color: var(--border-color); }
.border-slate-200 { border-color: var(--border-color); }

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  border: 3px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #475569;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Glassmorphism Styles */
.glass-nav {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.4s, border 0.4s;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  box-shadow: 0 8px 32px 0 var(--shadow-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  box-shadow: 0 20px 40px 0 var(--shadow-color-hover);
  border: 1px solid rgba(14, 165, 233, 0.25);
}

/* Glow effects */
.glow-primary {
  box-shadow: 0 0 50px rgba(14, 165, 233, 0.08);
}

[data-theme="dark"] .glow-primary {
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.12);
}

/* Interactive Body Mapping Styles */
.body-joint-node {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.body-joint-node:hover circle {
  fill: #38bdf8;
  r: 8;
}

.body-joint-node.active circle {
  stroke: #ffffff;
  stroke-width: 2.5;
  r: 9;
}

.body-joint-node.active .pulse-ring {
  animation: pulse-ring-animation 2s infinite ease-out;
}

@keyframes pulse-ring-animation {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Three.js Canvas Container & Control Overlay */
#canvas-container {
  touch-action: none;
}

/* 3D control overlay adjustments */
.controls-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .controls-glass {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 15%, var(--text-accent) 65%, #14b8a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Medical Grid Background */
.bg-medical-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  transition: background-image 0.4s ease;
}

/* Background Blurs */
.floating-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -10;
  opacity: 0.35;
  transition: all 0.5s ease;
}

[data-theme="dark"] .floating-blob {
  opacity: 0.15;
}

/* Custom Interactive inputs */
select, input {
  color: var(--text-primary);
  background-color: var(--bg-secondary) !important;
}

select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}


/* 3D TILT SERVICES CARD STYLES */
.card-item {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-item > * {
  transform: translateZ(20px);
}

.card-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
  mix-blend-mode: screen;
  transition: background 0.05s ease-out;
}

/* 3D PERSPECTIVE PARALLAX CLINICIAN CARDS */
.specialist-card {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.specialist-card-inner {
  transform-style: preserve-3d;
}

.specialist-avatar-container {
  transform: translateZ(35px);
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-style: preserve-3d;
}

.specialist-card:hover .specialist-avatar-container {
  transform: translateZ(55px);
}

.specialist-avatar-img {
  transform: translateZ(15px);
}

.specialist-badge {
  transform: translateZ(50px);
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.specialist-card:hover .specialist-badge {
  transform: translateZ(70px);
}

.specialist-info {
  transform: translateZ(30px);
}

.specialist-card-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
  border-radius: inherit;
  mix-blend-mode: screen;
  transition: background 0.05s ease-out;
}

/* 206 Bones Explorer Directory Sidebar & Items */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Scrollbar for Bone List */
#bone-list.scrollbar-thin::-webkit-scrollbar {
  width: 4px;
}
#bone-list.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}
#bone-list.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 10px;
}
#bone-list.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.4);
}
[data-theme="dark"] #bone-list.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] #bone-list.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Bone Item styling */
.bone-item {
  width: 100%;
  text-align: left;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.25;
}

.bone-item:hover {
  color: var(--text-primary);
  background: rgba(14, 165, 233, 0.04);
  border-color: rgba(14, 165, 233, 0.12);
  transform: translateX(2px);
}

.bone-item.active {
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.1) !important;
  border-color: rgba(14, 165, 233, 0.3);
  font-weight: 700;
}

[data-theme="dark"] .bone-item.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.35);
}

.bone-bullet {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.5;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.bone-item.active .bone-bullet {
  transform: scale(1.4);
  opacity: 1;
}

/* Custom Scroll Trigger and Animations */
.ctrl-btn-focus {
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
}
.ctrl-btn-focus:not(.active) {
  border-color: var(--border-color);
  color: var(--text-secondary);
  background-color: var(--bg-primary);
}
.ctrl-btn-focus:not(.active):hover {
  border-color: rgba(14, 165, 233, 0.3);
  color: var(--text-primary);
}
.ctrl-btn-focus.active {
  background-color: rgba(14, 165, 233, 0.15) !important;
  border-color: rgba(14, 165, 233, 0.4) !important;
  color: #0ea5e9 !important;
  font-weight: 700;
}
[data-theme="dark"] .ctrl-btn-focus.active {
  background-color: rgba(56, 189, 248, 0.18) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
}

/* ==========================================
   6. PREMIUM MULTI-STEP BOOKING FORM STYLES
   ========================================== */

/* Step Indicator styling */
.step-indicator {
  transition: all 0.3s ease;
}
.step-indicator.active span:first-child {
  transform: scale(1.15);
  border-color: var(--text-accent) !important;
  background-color: rgba(14, 165, 233, 0.1) !important;
  color: var(--text-accent) !important;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.25);
}
[data-theme="dark"] .step-indicator.active span:first-child {
  background-color: rgba(56, 189, 248, 0.12) !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}
.step-line.active {
  background-color: var(--text-accent) !important;
}

/* Session Type Card styles */
.select-card {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.select-card:hover {
  border-color: var(--text-accent);
  background-color: rgba(14, 165, 233, 0.02);
  transform: translateY(-2px);
}
[data-theme="dark"] .select-card:hover {
  background-color: rgba(56, 189, 248, 0.02);
}
/* Radio checked state styling */
.select-card input[type="radio"] {
  accent-color: #0ea5e9;
  cursor: pointer;
}
.select-card-active {
  border-color: var(--text-accent) !important;
  background-color: rgba(14, 165, 233, 0.05) !important;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.08) !important;
}
[data-theme="dark"] .select-card-active {
  background-color: rgba(56, 189, 248, 0.08) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.12) !important;
}

/* Time Slot grid buttons styling */
.time-slot-btn {
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.time-slot-btn:hover:not(:disabled) {
  border-color: var(--text-accent);
  color: var(--text-primary);
  background-color: rgba(14, 165, 233, 0.04);
  transform: translateY(-1px);
}
[data-theme="dark"] .time-slot-btn:hover:not(:disabled) {
  background-color: rgba(56, 189, 248, 0.04);
}
.time-slot-btn.selected {
  background-color: var(--text-accent) !important;
  border-color: var(--text-accent) !important;
  color: var(--bg-secondary) !important;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25);
  font-weight: 700;
}
[data-theme="dark"] .time-slot-btn.selected {
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
  color: #0b0f19 !important;
}
.time-slot-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background-color: var(--bg-primary);
  border-color: var(--border-color);
  text-decoration: line-through;
}

/* Scrollbar styling for time slots */
#time-slots-grid::-webkit-scrollbar {
  width: 4px;
}
#time-slots-grid::-webkit-scrollbar-track {
  background: transparent;
}
#time-slots-grid::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 10px;
}
#time-slots-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.4);
}

/* Success Card details */
@keyframes scale-up {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.scale-animation {
  animation: scale-up 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ==========================================
   7. CLINICIAN PORTAL INTERACTIVE STYLES
   ========================================== */

#clinician-portal {
  will-change: transform, opacity;
}

/* Tab button states inside the portal */
.portal-tab-btn {
  cursor: pointer;
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.portal-tab-btn:hover:not(.active) {
  background-color: rgba(148, 163, 184, 0.08);
  color: var(--text-primary);
}
.portal-tab-btn.active {
  background-color: rgba(14, 165, 233, 0.1) !important;
  border-color: rgba(14, 165, 233, 0.35) !important;
  color: var(--text-accent) !important;
}
[data-theme="dark"] .portal-tab-btn.active {
  background-color: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
}

/* Portal Active badges count */
.portal-tab-btn.active span:last-child {
  background-color: var(--text-accent) !important;
  color: var(--bg-secondary) !important;
}
[data-theme="dark"] .portal-tab-btn.active span:last-child {
  color: #0b0f19 !important;
}

/* Appointment List Card Layout */
.appointment-row-card {
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}
.appointment-row-card:hover {
  background-color: rgba(148, 163, 184, 0.03);
}
[data-theme="dark"] .appointment-row-card:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-badge-scheduled {
  background-color: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}
.status-badge-checked {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

/* Action button stylings */
.btn-action-checkin {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  transition: all 0.2s ease;
}
.btn-action-checkin:hover:not(:disabled) {
  background-color: #10b981;
  color: white;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}
.btn-action-cancel {
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.15);
  transition: all 0.2s ease;
}
.btn-action-cancel:hover {
  background-color: #ef4444;
  color: white;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.25);
}
.btn-action-reschedule {
  background-color: rgba(14, 165, 233, 0.08);
  color: #0ea5e9;
  border: 1px solid rgba(14, 165, 233, 0.15);
  transition: all 0.2s ease;
}
.btn-action-reschedule:hover {
  background-color: #0ea5e9;
  color: white;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.2);
}
.btn-action-notes {
  background-color: rgba(16, 185, 129, 0.08);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.15);
  transition: all 0.2s ease;
}
.btn-action-notes:hover {
  background-color: #10b981;
  color: white;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.btn-action-prescription {
  background-color: rgba(139, 92, 246, 0.08);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.15);
  transition: all 0.2s ease;
}
.btn-action-prescription:hover {
  background-color: #8b5cf6;
  color: white;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
}

/* Empty state message card */
.portal-empty-card {
  border: 1.5px dashed var(--border-color);
  background-color: transparent;
}

/* ==========================================
   8. PATIENT REVIEWS & FEEDBACK STYLES
   ========================================== */

/* Layout Containers */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.reviews-carousel {
  display: block;
  max-w: 36rem;
  margin: 0 auto;
  position: relative;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-w: 48rem;
  margin: 0 auto;
}

/* Base Card Style */
.review-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform, box-shadow;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.12);
}

/* Theme 1: Aurora (Glassmorphic) */
.theme-aurora {
  background-color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
}
[data-theme="dark"] .theme-aurora {
  background-color: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(30, 41, 59, 0.6);
  color: #e2e8f0;
}
.theme-aurora .review-author {
  color: var(--text-primary);
}
.theme-aurora .review-date {
  color: var(--text-secondary);
}
.theme-aurora .review-focus {
  background-color: rgba(139, 92, 246, 0.08);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.15);
}

/* Theme 2: Midnight (Dark Glow) */
.theme-midnight {
  background-color: #0f172a;
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #cbd5e1;
  box-shadow: 0 10px 25px -10px rgba(139, 92, 246, 0.1);
}
.theme-midnight:hover {
  box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
}
.theme-midnight .review-author {
  color: #ffffff;
}
.theme-midnight .review-date {
  color: #64748b;
}
.theme-midnight .review-focus {
  background-color: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

/* Theme 3: Sunset Breeze (Warm Orange/Amber Gradient) */
.theme-sunset {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px -10px rgba(234, 88, 12, 0.2);
}
.theme-sunset:hover {
  box-shadow: 0 15px 30px -5px rgba(234, 88, 12, 0.35);
}
.theme-sunset .review-author {
  color: #ffffff;
}
.theme-sunset .review-date {
  color: rgba(255, 255, 255, 0.6);
}
.theme-sunset .review-focus {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Theme 4: Neon Violet (Indigo/Purple Gradient) */
.theme-neon {
  background: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px -10px rgba(139, 92, 246, 0.25);
}
.theme-neon:hover {
  box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.4);
}
.theme-neon .review-author {
  color: #ffffff;
}
.theme-neon .review-date {
  color: rgba(255, 255, 255, 0.6);
}
.theme-neon .review-focus {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* List Item Adaptation (Compact view) */
.reviews-list .review-card {
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
}
.reviews-list .review-card .card-main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.reviews-list .review-card .card-meta-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}
.reviews-list .review-card .review-comment {
  font-size: 11px;
}

/* Carousel Control Styling */
.carousel-nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.carousel-btn {
  background-color: white;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.carousel-btn:hover {
  background-color: var(--bg-primary);
  border-color: var(--text-accent);
  color: var(--text-accent);
}
[data-theme="dark"] .carousel-btn {
  background-color: #1e293b;
  border-color: rgba(255,255,255,0.08);
  color: #e2e8f0;
}
[data-theme="dark"] .carousel-btn:hover {
  background-color: #0f172a;
}
.carousel-dots {
  display: flex;
  gap: 0.5rem;
}
.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: rgba(148, 163, 184, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}
.carousel-dot.active {
  background-color: var(--text-accent);
  width: 1.25rem;
}

/* Feedback Form Elements */
#star-selector-container button svg {
  transition: all 0.15s ease;
}
#star-selector-container button.active svg {
  color: #eab308;
}
#star-selector-container button:hover svg {
  transform: scale(1.15);
}

/* Custom styles for theme option radio selection */
input[name="feedback-theme"] {
  accent-color: #8b5cf6;
}

/* ==========================================
   9. GOOGLE MAP MODAL INTERACTIVE STYLES
   ========================================== */

#map-modal {
  will-change: transform, opacity;
}

#map-iframe {
  transition: opacity 0.4s ease, filter 0.3s ease;
}

[data-theme="dark"] #map-iframe {
  filter: invert(90%) hue-rotate(180deg) contrast(120%);
}

/* Active and hover states for map style selector buttons */
.map-style-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.map-style-btn:hover:not(.bg-brand-primary) {
  background-color: rgba(148, 163, 184, 0.1);
  color: var(--text-primary);
}
[data-theme="dark"] .map-style-btn:hover:not(.bg-brand-primary) {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* Responsive container height for Google Maps to fit small mobile screens */
.map-container {
  height: 250px;
}
@media (min-width: 640px) {
  .map-container {
    height: 380px;
  }
}

/* Active states for Clinical Pathway Navigator Wizard options */
.wiz-opt-btn.active, .wiz-onset-btn.active, .wiz-chk-btn.active {
  border-color: #2563eb !important;
  background-color: rgba(37, 99, 235, 0.06) !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
}

[data-theme="dark"] .wiz-opt-btn.active, 
[data-theme="dark"] .wiz-onset-btn.active, 
[data-theme="dark"] .wiz-chk-btn.active {
  background-color: rgba(37, 99, 235, 0.12) !important;
}

.wiz-chk-btn.active .wiz-checkbox-box {
  background-color: #2563eb;
  border-color: #2563eb;
  position: relative;
}
.wiz-chk-btn.active .wiz-checkbox-box::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 7px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ActiveRecovery™ Animated Humanoid & Player Styles */

@keyframes cervical-retraction-anim {
  0%, 100% { transform: translate(0px, 0px); }
  50% { transform: translate(-12px, 2px); }
}
.anim-neck-head {
  animation: cervical-retraction-anim 3s infinite ease-in-out;
}

@keyframes scapular-squeeze-l {
  0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
  50% { transform: translate(6px, -1px) rotate(-8deg); }
}
@keyframes scapular-squeeze-r {
  0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
  50% { transform: translate(-6px, -1px) rotate(8deg); }
}
.anim-shoulder-left {
  animation: scapular-squeeze-l 2.5s infinite ease-in-out;
}
.anim-shoulder-right {
  animation: scapular-squeeze-r 2.5s infinite ease-in-out;
}

@keyframes cat-cow-spine {
  0%, 100% { transform: translateY(0px) scaleY(1); }
  50% { transform: translateY(6px) scaleY(0.85); }
}
.anim-cat-cow {
  transform-origin: 50% 30%;
  animation: cat-cow-spine 4.5s infinite ease-in-out;
}

@keyframes knee-extension-anim {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-72deg); }
}
.anim-knee-shin {
  transform-origin: 80px 140px; /* Pivots around knee joint node */
  animation: knee-extension-anim 4s infinite ease-in-out;
}

@keyframes balance-sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(2.5deg); }
}
.anim-balance-body {
  transform-origin: 100px 170px; /* Pivots around support ankle node */
  animation: balance-sway 3s infinite ease-in-out;
}

/* Modal and layout styling */
#rehab-player-modal.active {
  opacity: 1;
  pointer-events: auto;
}
#rehab-player-modal.active > div {
  transform: translateY(0);
}
#rehab-player-modal > div {
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rehab-zone-btn.active {
  background-color: var(--text-accent);
  color: white;
  border-color: var(--text-accent);
}

/* Simple circular timer animations */
#player-progress-ring {
  transition: stroke-dashoffset 0.1s linear;
}

@media (max-width: 767px) {
  /* Full screen modals on mobile for a native app feel */
  #clinician-portal {
    padding: 0 !important;
  }
  #clinician-portal > div {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
  }
  #clinician-portal > div > div.px-6.py-5 {
    padding: 0.75rem 1rem !important; /* Thinner header on mobile */
  }

  #rehab-player-modal {
    padding: 0 !important;
  }
  #rehab-player-modal > div {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
  }
}

/* Google Translate styling overrides to look extremely professional */
#google_translate_element {
  display: inline-block;
  vertical-align: middle;
}
#google_translate_element select {
  background-color: rgba(255, 255, 255, 0.45) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 12px !important;
  padding: 6px 28px 6px 12px !important; /* Right padding to make room for custom arrow */
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #0f172a !important; /* brand-navy */
  outline: none !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-family: inherit !important;
  appearance: none !important; /* Remove native browser select arrow */
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230ea5e9'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 10px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="dark"] #google_translate_element select {
  background-color: rgba(15, 23, 42, 0.45) !important;
  border: 1px solid rgba(51, 65, 85, 0.8) !important;
  color: #e2e8f0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230ea5e9'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
}
#google_translate_element select:hover {
  background-color: rgba(255, 255, 255, 0.85) !important;
  border-color: #0ea5e9 !important; /* brand-primary */
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.12) !important;
  transform: translateY(-0.5px);
}
[data-theme="dark"] #google_translate_element select:hover {
  background-color: rgba(15, 23, 42, 0.8) !important;
  border-color: #0ea5e9 !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2) !important;
  transform: translateY(-0.5px);
}
.goog-logo-link {
  display: none !important;
}
.goog-te-gadget {
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
.goog-te-gadget .goog-te-combo {
  margin: 0 !important;
}
/* Completely hide Google Translate header bar */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}
iframe.skiptranslate {
  display: none !important;
  visibility: hidden !important;
}
body {
  top: 0px !important;
}

/* Custom pulsing animation for the floating language switcher button */
.lang-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #0ea5e9; /* brand-primary */
  animation: lang-pulse 2.2s infinite;
  opacity: 0;
  pointer-events: none;
}
@keyframes lang-pulse {
  0% { transform: scale(0.9); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 0.15; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* Completely suppress Google Translate hover text suggestions and original tooltips */
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* AI Chatbot bubbles styling */
#ai-chat-history {
  scrollbar-width: thin;
}
.chat-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 2px;
  animation: bubble-fade-in 0.25s ease-out forwards;
  word-wrap: break-word;
}
.chat-bubble.ai {
  background-color: #f1f5f9;
  color: #0f172a;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
[data-theme="dark"] .chat-bubble.ai {
  background-color: #1e293b;
  color: #e2e8f0;
}
.chat-bubble.user {
  background-color: #0ea5e9;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
@keyframes bubble-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.typing-indicator {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background-color: #f1f5f9;
  border-radius: 16px;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  width: 42px;
  margin-bottom: 2px;
}
[data-theme="dark"] .typing-indicator {
  background-color: #1e293b;
}
.typing-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #64748b;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Responsive Mobile Layout Fixes for Floating Elements */
@media (max-width: 767px) {
  /* 1. Hide floating AI Assistant button on mobile, but keep Translate button active */
  #floating-ai-btn {
    display: none !important;
  }
  #floating-ai-widget {
    position: static !important;
    width: 0 !important;
    height: 0 !important;
    overflow: visible !important;
  }

  /* 2. Format AI Chatbot panel as a slide-up bottom sheet on mobile devices */
  #floating-ai-panel {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 80vh !important;
    max-height: 80vh !important;
    border-radius: 24px 24px 0 0 !important;
    z-index: 200 !important;
    margin: 0 !important;
    transform: translateY(100%) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 0;
    pointer-events: none;
  }
  #floating-ai-panel.show-mobile-panel {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* 3. Format Hiring advertisement card to slide up cleanly from the bottom on mobile */
  #hiring-ad-card {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    width: calc(100% - 24px) !important;
    z-index: 140 !important;
    transform: translateY(160%) !important;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
  }
  #hiring-ad-card:not(.translate-x-\[120\%\]) {
    transform: translateY(0) !important;
  }
}
