/* ========================================================
   Nexus Avatar & Oranim Learning Center Schedule Stylesheet
   ======================================================== */

:root {
  --primary-cyan: #38c3d9;
  --primary-cyan-dark: #1ea0b5;
  --primary-cyan-light: #e0f7fa;
  --accent-orange: #f59e0b;
  --accent-orange-dark: #d97706;
  --accent-orange-light: #fef3c7;
  --dark-slate: #1e293b;
  --dark-surface: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(226, 232, 240, 0.8);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --badge-green: #10b981;
  --badge-green-light: #d1fae5;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body.kiosk-body {
  font-family: 'Assistant', 'Heebo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f0f7f9;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  user-select: none;
}

/* Background Atmosphere */
.app-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #38c3d9, transparent 70%);
  top: -100px;
  right: -50px;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #fde68a, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-duration: 25s;
}

.orb-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #67e8f9, transparent 70%);
  top: 40%;
  left: 20%;
  animation-duration: 18s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ========================================================
   Header
   ======================================================== */
.kiosk-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-sm);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  height: 34px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.05));
  transition: transform var(--transition-fast);
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

.location-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 195, 217, 0.12);
  color: var(--primary-cyan-dark);
  font-weight: 600;
  font-size: 13.5px;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 195, 217, 0.25);
}

.header-center {
  text-align: center;
}

.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-slate);
  letter-spacing: -0.3px;
}

.date-badge {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 1px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.israel-clock-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--transition-fast);
}

.israel-clock-card:hover {
  transform: translateY(-1px);
}

.clock-icon {
  width: 17px;
  height: 17px;
  color: var(--primary-cyan);
  flex-shrink: 0;
}

.clock-time {
  font-family: 'Heebo', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.8px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(56, 195, 217, 0.35);
}

.icon-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--dark-slate);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background: #f8fafc;
  border-color: var(--primary-cyan);
  color: var(--primary-cyan-dark);
  transform: translateY(-1px);
}

.icon {
  width: 20px;
  height: 20px;
}

.spin-on-click:active {
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ========================================================
   Main Layout: Split Mascot & Schedule
   ======================================================== */
.kiosk-main {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 40% 60%;
  flex: 1;
  min-height: 0;
  gap: 28px;
  padding: 18px 32px 22px;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1101px) {
  body.kiosk-body {
    height: 100vh;
    overflow: hidden;
  }
  .kiosk-main {
    height: calc(100vh - 72px);
  }
  .mascot-section {
    height: 100%;
    min-height: 0;
  }
  .schedule-section {
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 1100px) {
  .kiosk-main {
    grid-template-columns: 1fr;
    height: auto;
  }
}

/* ========================================================
   Mascot Section (Right 40% - Exclusively for Character)
   ======================================================== */
.mascot-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
  padding: 16px 20px 0;
  position: relative;
  overflow: hidden;
  min-height: 650px;
}

/* Camera Button in Header */
.camera-btn.active {
  background: rgba(56, 195, 217, 0.15);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan-dark);
}

/* Vision AI Camera HUD Card (Fixed at side/bottom-left) */
.vision-card {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 195, 217, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  width: 145px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vision-card.minimized .vision-feed-box,
.vision-card.minimized .vision-footer {
  display: none;
}

.vision-card.minimized {
  width: 135px;
}

.vision-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vision-indicator-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.vision-live-dot {
  width: 6px;
  height: 6px;
  background-color: var(--badge-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--badge-green);
  animation: pulseBadge 1.5s infinite;
}

.vision-title {
  font-size: 10px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.2px;
}

.vision-min-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 11px;
  padding: 2px;
  line-height: 1;
}

.vision-min-btn:hover {
  color: #ffffff;
}

.vision-feed-box {
  position: relative;
  width: 100%;
  height: 95px;
  background: #000000;
  overflow: hidden;
  cursor: pointer;
}

.vision-prompt-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  padding: 8px;
  text-align: center;
}

.vision-prompt-overlay:hover {
  background: rgba(15, 23, 42, 0.95);
}

.prompt-cam-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-cyan);
  animation: pulseCam 1.8s infinite ease-in-out;
}

@keyframes pulseCam {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 6px var(--primary-cyan)); }
}

.prompt-text {
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
}

#visionVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror camera for natural selfie view */
  display: block;
}

#visionOverlayCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.vision-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 195, 217, 0.8), transparent);
  animation: scanLine 3s infinite linear;
  pointer-events: none;
}

@keyframes scanLine {
  0% { top: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.vision-footer {
  padding: 5px 8px;
  display: flex;
  justify-content: center;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vision-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-align: center;
  white-space: nowrap;
}

.pill-active {
  background: rgba(56, 195, 217, 0.2);
  color: #67e8f9;
}

.pill-detected {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.pill-connecting {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.pill-off {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}

/* Speech Bubble — Positioned snug directly above the giraffe mascot */
.speech-bubble-container {
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
  min-height: 65px;
  margin-bottom: -40px;
  pointer-events: none;
}

.speech-bubble {
  pointer-events: auto;
  position: relative;
  background: #ffffff;
  color: var(--dark-slate);
  padding: 12px 24px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.22);
  border: 2px solid rgba(245, 158, 11, 0.45);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  max-width: 420px;
  line-height: 1.4;
  animation: bubblePop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.speech-bubble.bubble-popping {
  animation: bubblePop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.speech-bubble.farewell-bubble {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
}

.speech-bubble.farewell-bubble .speech-arrow {
  border-top-color: #fffdf5;
}

.speech-arrow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #ffffff;
}

@keyframes bubblePop {
  0% { transform: scale(0.75); opacity: 0; }
  65% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Mascot Stage & Canvas — Peeking from screen bottom */
.mascot-stage {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#mascotCanvas {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  cursor: pointer;
  z-index: 2;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(120, 60, 10, 0.18));
}

.mascot-shadow {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-cyan-dark));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(56, 195, 217, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(56, 195, 217, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: var(--dark-slate);
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-ghost {
  background: #f8fafc;
  color: var(--text-main);
  border: 1px solid #e2e8f0;
}

.btn-ghost:hover {
  background: #e2e8f0;
}

.btn-ghost.active {
  background: var(--dark-slate);
  color: #ffffff;
  border-color: var(--dark-slate);
}

.btn-sm {
  font-size: 11.5px;
  padding: 4px 8px;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 11px 18px;
  font-size: 15px;
}

/* ========================================================
   Schedule Section
   ======================================================== */
.schedule-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
  padding: 24px;
  min-height: 600px;
}

.schedule-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  flex-shrink: 0;
}

.board-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.board-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-slate);
}

.active-count-badge {
  background: rgba(56, 195, 217, 0.15);
  color: var(--primary-cyan-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Toggle Slider */
.toggle-control {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.toggle-control input {
  display: none;
}

.toggle-slider {
  width: 36px;
  height: 20px;
  background-color: #cbd5e1;
  border-radius: 20px;
  position: relative;
  transition: var(--transition-fast);
}

.toggle-slider::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: white;
  top: 3px;
  left: 3px;
  transition: var(--transition-fast);
}

.toggle-control input:checked + .toggle-slider {
  background-color: var(--primary-cyan);
}

.toggle-control input:checked + .toggle-slider::after {
  transform: translateX(16px);
}

.toggle-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Schedule List: Full Height to bottom with smooth vertical scrolling */
.schedule-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 8px 16px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 195, 217, 0.45) rgba(241, 245, 249, 0.6);
}

.schedule-list-container::-webkit-scrollbar {
  width: 8px;
}

.schedule-list-container::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.6);
  border-radius: 8px;
}

.schedule-list-container::-webkit-scrollbar-thumb {
  background: rgba(56, 195, 217, 0.45);
  border-radius: 8px;
}

.schedule-list-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary-cyan);
}

/* ========================================================
   Prominent Meeting Cards (Clean, Large, Kiosk-Optimized)
   ======================================================== */
.meeting-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: 22px 28px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  flex-shrink: 0;   /* CRITICAL: Never squish cards regardless of list count */
  min-height: 100px;  /* Guarantees spacious, comfortable room for title + badge */
  box-sizing: border-box;
}

.meeting-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(56, 195, 217, 0.2);
  border-color: var(--primary-cyan);
}

.meeting-card:active {
  transform: translateY(0);
}

/* Status Accents (Right Border in RTL) */
.meeting-card.status-ongoing {
  border-right: 7px solid var(--badge-green);
  background: linear-gradient(90deg, #ffffff 92%, rgba(16, 185, 129, 0.08) 100%);
}

.meeting-card.status-upcoming {
  border-right: 7px solid var(--accent-orange);
  background: linear-gradient(90deg, #ffffff 92%, rgba(245, 158, 11, 0.08) 100%);
}

.meeting-card.status-ended {
  border-right: 7px solid #94a3b8;
  opacity: 0.6;
  background: #f8fafc;
}

/* 1. Time Column (Right in RTL - Large & Bold) */
.card-time-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-width: 200px;
  flex-shrink: 0;
}

.time-badge-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.28);
}

.status-ongoing .time-badge-box {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
}

.status-ended .time-badge-box {
  background: #64748b;
  box-shadow: none;
}

.time-clock-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.time-display-text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  direction: ltr;
}

.time-sub-info {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
  white-space: nowrap;
}

/* 2. Main Column: Lesson Title & Status (Large, Clear, Prominent) */
.card-title-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.card-title-prominent {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-slate);
  line-height: 1.35;
  margin: 0;
  transition: color 0.2s ease;
  overflow-wrap: break-word;
  word-break: break-word;
}

.meeting-card:hover .card-title-prominent {
  color: var(--primary-cyan-dark);
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.card-status-badge, .card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 24px;
  line-height: 1.3;
}

.card-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  background: #f8fafc;
  padding: 5px 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.card-location-icon {
  width: 17px;
  height: 17px;
  color: var(--primary-cyan-dark);
  flex-shrink: 0;
}

.status-pulse-dot-small {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDotSmall 1.5s infinite ease-in-out;
}

@keyframes pulseDotSmall {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.badge-ongoing {
  background: var(--badge-green-light);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-upcoming {
  background: var(--accent-orange-light);
  color: #9a3412;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-ended {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* 3. Left Column: Click Action Indicator */
.card-action-column {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.card-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-cyan-dark);
  background: rgba(56, 195, 217, 0.1);
  padding: 10px 20px;
  border-radius: 14px;
  border: 1px solid rgba(56, 195, 217, 0.3);
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(56, 195, 217, 0.2);
}

.action-chevron {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.meeting-card:hover .card-action-pill {
  background: var(--primary-cyan);
  color: #ffffff;
  border-color: var(--primary-cyan);
}

.meeting-card:hover .action-chevron {
  transform: translateX(-4px);
}

@media (max-width: 900px) {
  .meeting-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
  }
  .card-time-column {
    min-width: auto;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .card-action-column {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Empty & Loading States */
.empty-state, .loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  gap: 14px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid rgba(56, 195, 217, 0.2);
  border-top-color: var(--primary-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Schedule Status Footer */
.schedule-status-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 12.5px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.status-indicator-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--badge-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--badge-green);
  animation: pulseBadge 1.8s infinite;
}

/* ========================================================
   Interactive Detail Modal
   ======================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-backdrop.open {
  opacity: 1 !important;
  pointer-events: auto !important;
  display: flex !important;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  margin: auto;
}

.modal-card > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  left: 16px;
  background: #f1f5f9;
  border: none;
  font-size: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--dark-slate);
}

.modal-header {
  padding: 24px 24px 16px 54px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.modal-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: var(--badge-green-light);
  color: #065f46;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--dark-slate);
  line-height: 1.35;
}

.modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f8fafc;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

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

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.detail-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon svg {
  width: 22px;
  height: 22px;
}

.orange-bg {
  background: var(--accent-orange-light);
  color: var(--accent-orange-dark);
}

.cyan-bg {
  background: rgba(56, 195, 217, 0.18);
  color: var(--primary-cyan-dark);
}

.dark-bg {
  background: #f1f5f9;
  color: var(--dark-slate);
}

.detail-content {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.detail-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-slate);
  margin-top: 2px;
}

.detail-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-cyan-dark);
  margin-top: 2px;
}

.modal-footer {
  padding: 16px 24px 24px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.modal-footer-dual {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Camera Diagnostics & Help Modal */
.camera-help-card {
  max-width: 580px;
}

.vision-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vision-help-icon {
  font-size: 11px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.vision-help-icon:hover {
  opacity: 1;
}

.help-status-box {
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
}

.diag-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.diag-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.diag-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark-slate);
}

.help-steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.help-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-cyan);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content {
  flex: 1;
}

.step-content strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark-slate);
  display: block;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.step-content code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
  color: var(--accent-orange-dark);
}


/* ========================================================
   Settings Button & Authentication Gate Styles
   ======================================================== */
.settings-btn {
  text-decoration: none;
}

.settings-btn:hover svg {
  transform: rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.auth-gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  padding: 36px 32px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(0);
  transition: transform var(--transition-smooth);
}

.auth-card.shake {
  animation: authShake 0.45s ease-in-out;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.auth-brand-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.auth-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.auth-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: rgba(56, 195, 217, 0.15);
  color: var(--primary-cyan-dark);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-slate);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  right: 14px;
  width: 20px;
  height: 20px;
  color: #94a3b8;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 12px 42px 12px 42px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: #f8fafc;
  color: var(--dark-slate);
  transition: all 0.2s ease;
  outline: none;
  direction: ltr;
  text-align: right;
}

.auth-input:focus {
  background: #ffffff;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 4px rgba(56, 195, 217, 0.18);
}

.auth-eye-btn {
  position: absolute;
  left: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s;
}

.auth-eye-btn:hover {
  color: var(--dark-slate);
}

.auth-error-msg {
  font-size: 13px;
  font-weight: 700;
  color: #ef4444;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
}

.auth-submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  justify-content: center;
  border-radius: var(--radius-md);
}

.auth-footer-tip {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-light);
}

.auth-footer-tip code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  color: var(--primary-cyan-dark);
}

/* ========================================================
   Admin Page Dashboard Styles
   ======================================================== */
.admin-body {
  background-color: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-brand-logo {
  height: 34px;
  width: auto;
}

.admin-brand-info {
  display: flex;
  flex-direction: column;
}

.admin-brand-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark-slate);
}

.admin-brand-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-container {
  max-width: 960px;
  width: 100%;
  margin: 28px auto;
  padding: 0 20px;
  flex: 1;
}

.admin-page-heading {
  margin-bottom: 24px;
}

.admin-page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark-slate);
}

.admin-page-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  padding: 26px;
}

.admin-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.admin-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 195, 217, 0.12);
  color: var(--primary-cyan-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-card-icon svg {
  width: 20px;
  height: 20px;
}

.admin-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark-slate);
}

.admin-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.admin-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dark-slate);
}

.admin-input {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--dark-slate);
  transition: all 0.2s ease;
  outline: none;
}

.admin-input:focus {
  background: #ffffff;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(56, 195, 217, 0.2);
}

.admin-input-ltr {
  direction: ltr;
  text-align: left;
}

.admin-field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.admin-stats-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.admin-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.admin-stat-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark-slate);
}

.admin-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-success { background: #10b981; }
.toast-error { background: #ef4444; }

@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ========================================================
   Meeting Detail Modal - Location Image Box
   ======================================================== */
.modal-location-image-box {
  margin-top: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
}

.modal-location-image-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-slate);
}

.modal-loc-icon {
  width: 18px;
  height: 18px;
  color: var(--primary-cyan-dark);
}

.modal-location-image-wrap {
  width: 100%;
  max-height: 240px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.modal-location-img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.modal-location-img:hover {
  transform: scale(1.02);
}

/* ========================================================
   Location Image Lightbox (Fullscreen Large Image Viewer)
   ======================================================== */
.image-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: zoom-out;
}

.image-lightbox-backdrop.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.image-lightbox-card {
  background: #1e293b;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.image-lightbox-backdrop.open .image-lightbox-card {
  transform: scale(1);
}

.image-lightbox-close-btn {
  position: absolute;
  top: 12px;
  left: 14px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  font-size: 26px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}

.image-lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  transform: rotate(90deg);
}

.image-lightbox-header {
  padding: 14px 20px 14px 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
}

.image-lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  padding: 10px;
  overflow: hidden;
  max-width: 88vw;
  max-height: calc(85vh - 110px);
  cursor: zoom-out;
}

.image-lightbox-img {
  max-width: 100%;
  max-height: calc(85vh - 120px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  user-select: none;
  transition: transform 0.2s ease;
  cursor: zoom-out;
}

.image-lightbox-img:hover {
  transform: scale(1.008);
}

.image-lightbox-footer {
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lightbox-hint-text {
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 600;
}

/* ========================================================
   Admin Dashboard - Location & Image Management
   ======================================================== */
.admin-card-wide {
  grid-column: 1 / -1;
}

.admin-card-header-main {
  flex: 1;
}

.admin-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.locations-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--text-muted);
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.locations-empty svg {
  width: 44px;
  height: 44px;
  color: #94a3b8;
}

.locations-empty p {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.loc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.loc-card:hover {
  border-color: var(--primary-cyan);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.loc-card-thumb {
  width: 100%;
  height: 140px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.loc-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loc-card-thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.loc-card-thumb-placeholder svg {
  width: 32px;
  height: 32px;
}

.loc-card-info {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loc-card-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark-slate);
}

.loc-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
}

.loc-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 12px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.location-editor-card {
  max-width: 540px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

.location-editor-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.location-editor-card .modal-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 20px 24px;
}

.location-editor-card .modal-footer {
  flex-shrink: 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 16px 24px;
}

.image-upload-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 16px;
}

.or-divider {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}

.loc-preview-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 10px;
}

.loc-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 8px;
}

.loc-preview-img-wrap {
  width: 100%;
  max-height: 180px;
  background: #0f172a;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loc-preview-img-wrap img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
}

.loc-audio-preview-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 10px;
}

.loc-audio-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 4px;
  width: fit-content;
}

.loc-audio-badge svg {
  width: 13px;
  height: 13px;
}

/* ========================================================
   Meeting Detail Modal - Location Audio Player Bar
   ======================================================== */
.modal-location-audio-box {
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(56, 195, 217, 0.12) 0%, rgba(2, 132, 199, 0.05) 100%);
  border: 1.5px solid rgba(56, 195, 217, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(56, 195, 217, 0.08);
  transition: all 0.25s ease;
}

.modal-loc-audio-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.modal-loc-audio-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-cyan);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(56, 195, 217, 0.35);
  transition: transform 0.2s ease;
}

.modal-loc-audio-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.modal-loc-audio-icon-wrap.playing {
  animation: pulseBadge 1.2s infinite;
  background: #0284c7;
}

.modal-loc-audio-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-loc-audio-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--dark-slate);
}

.modal-loc-audio-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.modal-loc-audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

/* ========================================================
   Meeting Detail Modal — Large two-column layout
   Right (RTL start): content & info | Left: image + audio button
   ======================================================== */
.meeting-modal-card {
  max-width: min(1180px, 94vw);
  max-height: calc(100vh - 40px);
  border-radius: 28px;
}

.meeting-modal-card .modal-close-btn {
  top: 22px;
  left: 24px;
  width: 46px;
  height: 46px;
  font-size: 32px;
}

.meeting-modal-card .modal-header {
  padding: 32px 40px 22px 90px;
}

.meeting-modal-card .modal-badge {
  font-size: 16px;
  padding: 5px 18px;
  margin-bottom: 12px;
}

.meeting-modal-card .modal-title {
  font-size: 34px;
  line-height: 1.3;
}

.meeting-modal-card .modal-body.modal-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 36px;
  padding: 30px 40px;
  align-items: start;
}

.meeting-modal-card .modal-split.no-media {
  grid-template-columns: minmax(0, 1fr);
}

.meeting-modal-card .modal-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.meeting-modal-card .modal-media {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
}

.meeting-modal-card .detail-row {
  gap: 20px;
}

.meeting-modal-card .detail-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.meeting-modal-card .detail-icon svg {
  width: 34px;
  height: 34px;
}

.meeting-modal-card .detail-label {
  font-size: 18px;
}

.meeting-modal-card .detail-value {
  font-size: 28px;
  margin-top: 4px;
  line-height: 1.3;
}

.meeting-modal-card .detail-sub {
  font-size: 20px;
  margin-top: 4px;
}

/* Image */
.meeting-modal-card .modal-location-image-box {
  margin-top: 0;
  border-radius: 20px;
}

.meeting-modal-card .modal-location-image-header {
  font-size: 18px;
  padding: 12px 20px;
  gap: 10px;
}

.meeting-modal-card .modal-loc-icon {
  width: 24px;
  height: 24px;
}

.meeting-modal-card .modal-location-image-wrap,
.meeting-modal-card .modal-location-img {
  max-height: clamp(160px, calc(100vh - 620px), 520px);
}

/* Audio button */
.meeting-modal-card .modal-location-audio-box {
  margin-top: 0;
  padding: 16px 22px;
  border-radius: 20px;
  gap: 18px;
}

.meeting-modal-card .modal-loc-audio-info {
  gap: 16px;
}

.meeting-modal-card .modal-loc-audio-icon-wrap {
  width: 56px;
  height: 56px;
}

.meeting-modal-card .modal-loc-audio-icon-wrap svg {
  width: 30px;
  height: 30px;
}

.meeting-modal-card .modal-loc-audio-title {
  font-size: 20px;
}

.meeting-modal-card .modal-loc-audio-sub {
  font-size: 16px;
}

.meeting-modal-card .modal-loc-audio-btn {
  font-size: 19px;
  padding: 14px 24px;
  gap: 10px;
  border-radius: 14px;
}

.meeting-modal-card .modal-loc-audio-btn .icon {
  width: 26px;
  height: 26px;
}

.meeting-modal-card .modal-footer {
  padding: 18px 40px 26px;
}

.meeting-modal-card .modal-footer .btn {
  font-size: 22px;
  padding: 16px 24px;
  border-radius: 16px;
}

/* Narrow screens: stack the columns (info first, media below) */
@media (max-width: 820px) {
  .meeting-modal-card .modal-body.modal-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 22px 22px;
  }
  .meeting-modal-card .modal-header { padding: 24px 22px 16px 76px; }
  .meeting-modal-card .modal-title { font-size: 26px; }
  .meeting-modal-card .detail-value { font-size: 22px; }
  .meeting-modal-card .modal-media { position: static; }
}
