/* Fonts moved out of CSS @import (slow). Each HTML file now uses
   <link rel="preconnect"> + <link rel="stylesheet" media="print" onload="...">
   to load Outfit + Montserrat + Inter asynchronously with display=swap. */

:root {
  /* Core Brand Colors — Aquatic Theme */
  --primary-color: #032b49;
  --primary-light: #074775;
  --primary-dark: #011b2f;
  --accent-color: #008eb3;
  --accent-light: #00a8cc;
  --cyan-color: #00c2cb;
  --cyan-dark: #008c99;
  --aqua-bright: #00e5ff;
  --aqua-light: #e0f7fa;
  --aqua-soft: #f0fdfa;

  /* Neutrals */
  --secondary-color: #f3f4f6;
  --text-dark: #1f2937;
  --text-mid: #374151;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --white: #ffffff;
  --border-color: #e5e7eb;

  /* Role Colors */
  --role-attendee: #1565C0;
  --role-vip: #B8860B;
  --role-speaker: #8B1A1A;
  --role-chairperson: #6B21A8;
  --role-organizer: #1E293B;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-bg-dark: rgba(10, 22, 40, 0.85);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-border-dark: rgba(255, 255, 255, 0.1);

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-xl: 0 30px 70px rgba(0,0,0,0.18), 0 12px 24px rgba(0,0,0,0.08);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Outfit', sans-serif;
  background-color: #f0f4f8;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(21,101,192,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0,180,216,0.03) 0%, transparent 50%),
    radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .fw-bold { font-family: 'Montserrat', sans-serif; }

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-glass:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-flat {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.text-primary-custom { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-cyan { color: var(--cyan-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 600;
  padding: 11px 26px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.3);
  letter-spacing: 0.3px;
}
.btn-primary-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(21, 101, 192, 0.4);
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
}
.btn-primary-custom:active { transform: translateY(0); }

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan-color), var(--accent-color));
  border: none;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 600;
  padding: 11px 26px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.3);
}
.btn-cyan:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 180, 216, 0.4);
  color: var(--white);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  padding: 11px 16px;
  font-size: 0.93rem;
  transition: all 0.25s ease;
  background: var(--white);
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
  outline: none;
}
.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}
.input-group-text {
  border: 1.5px solid var(--border-color);
  background: #f8fafc;
}

/* ============================================
   NAVBAR — DESKTOP
   ============================================ */
.navbar-custom {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border-color), var(--shadow-xs);
  padding: 0.7rem 0;
}
.navbar-brand img { height: 38px; margin-right: 10px; }
.navbar-brand span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.05rem;
}
.nav-link {
  color: var(--text-light) !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-link:hover { color: var(--primary-color) !important; background: rgba(21,101,192,0.06); }
.nav-link.active { color: var(--primary-color) !important; background: rgba(21,101,192,0.08); }

/* ============================================
   BOTTOM NAV — MOBILE
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -1px 0 var(--border-color), 0 -4px 20px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px 0;
  z-index: 1000;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.25s;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
}
.bottom-nav-item i {
  font-size: 1.3rem;
  margin-bottom: 3px;
  transition: transform 0.25s;
}
.bottom-nav-item.active { color: var(--accent-color); }
.bottom-nav-item.active i { transform: translateY(-2px); }

/* ============================================
   STATS CARDS
   ============================================ */
.stat-card {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: -20px; right: 20px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.stat-card h3 { font-size: 2.2rem; margin: 0; font-weight: 800; line-height: 1; }
.stat-card p { margin: 4px 0 0 0; opacity: 0.85; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.3px; }
.stat-card .stat-icon { font-size: 2.5rem; opacity: 0.3; z-index: 1; }
.stat-bg-blue   { background: linear-gradient(135deg, #0d47a1, #1976D2); box-shadow: 0 8px 24px rgba(21,101,192,0.3); }
.stat-bg-green  { background: linear-gradient(135deg, #065F46, #10b981); box-shadow: 0 8px 24px rgba(16,185,129,0.3); }
.stat-bg-purple { background: linear-gradient(135deg, #4c1d95, #8b5cf6); box-shadow: 0 8px 24px rgba(139,92,246,0.3); }

/* ============================================
   ROLE BADGES
   ============================================ */
.role-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.role-attendee    { background: rgba(21,101,192,0.1);  color: #1565C0; border: 1px solid rgba(21,101,192,0.2); }
.role-vip         { background: rgba(184,134,11,0.12); color: #92660a; border: 1px solid rgba(184,134,11,0.3); }
.role-speaker     { background: rgba(139,26,26,0.1);   color: #8B1A1A; border: 1px solid rgba(139,26,26,0.2); }
.role-organizer   { background: rgba(30,41,59,0.08);   color: #1E293B; border: 1px solid rgba(30,41,59,0.2); }
.role-chairperson { background: rgba(107,33,168,0.1);  color: #6B21A8; border: 1px solid rgba(107,33,168,0.2); }

/* ============================================
   TABLE ENHANCEMENTS
   ============================================ */
.table { font-size: 0.87rem; }
.table th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 10px 16px;
  border-bottom: 2px solid var(--border-color);
  background: #f8fafc;
}
.table td { padding: 13px 16px; vertical-align: middle; border-color: var(--border-color); }
.table-hover tbody tr:hover { background-color: rgba(21,101,192,0.025); }
.table-hover tbody tr { transition: background 0.15s; }

/* Search box */
.search-box { position: relative; }
.search-box .search-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}
.search-box input { padding-left: 38px; }

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-fade-in { animation: fadeInUp 0.5s ease-out both; }
.animate-fade-in-delay { animation: fadeInUp 0.5s ease-out 0.15s both; }

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21,101,192,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(21,101,192,0); }
}
.pulse { animation: pulse-glow 2s infinite; }

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

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 6px;
  display: block;
}
@keyframes skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-color), var(--cyan-color));
  top: 0; bottom: 0; left: 50%;
  margin-left: -1.5px;
  border-radius: 4px;
}
.timeline-item {
  padding: 10px 44px;
  position: relative;
  background: inherit;
  width: 50%;
}
.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  right: -8px;
  background: var(--white);
  border: 3px solid var(--accent-color);
  top: 18px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(21,101,192,0.12);
}
.left  { left: 0; }
.right { left: 50%; }
.right::after { left: -8px; }
.timeline-content {
  padding: 18px 22px;
  background: var(--white);
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
}
.timeline-content:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.timeline-content h5 { font-size: 0.95rem; }

@media screen and (max-width: 768px) {
  .timeline::after { left: 24px; }
  .timeline-item { width: 100%; padding-left: 62px; padding-right: 16px; }
  .timeline-item::after { left: 16px; }
  .right { left: 0%; }
}

/* ============================================
   INFO CARDS (Homepage)
   ============================================ */
.info-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.info-card .info-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: linear-gradient(145deg, var(--primary-color) 0%, #0f2547 50%, #0d47a1 100%);
  color: var(--white);
  padding: 90px 0 130px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 50% 8%;
  border-bottom-right-radius: 50% 8%;
  margin-bottom: -70px;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(0,180,216,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -10%; right: -10%;
  width: 50%; height: 80%;
  background: radial-gradient(ellipse, rgba(21,101,192,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-logo {
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)) brightness(1.05);
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================
   ACTION BUTTONS
   ============================================ */
.btn-icon {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--text-light);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  vertical-align: middle;
}
.btn-icon:hover { background: var(--secondary-color); color: var(--text-dark); border-color: #d1d5db; }
.btn-icon.danger:hover { background: #fef2f2; color: #dc2626; border-color: #fca5a5; }
.btn-icon.success:hover { background: #f0fdf4; color: #16a34a; border-color: #86efac; }
.btn-icon.primary:hover { background: rgba(21,101,192,0.08); color: var(--accent-color); border-color: rgba(21,101,192,0.3); }

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-header h5 {
  margin: 0;
  font-size: 0.93rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Empty state */
.empty-state { padding: 60px 20px; text-align: center; color: var(--text-muted); }
.empty-state i { font-size: 3rem; opacity: 0.2; margin-bottom: 14px; display: block; }
.empty-state p { font-size: 0.9rem; }

/* ============================================
   IPHONE / IOS SAFE AREA
   ============================================ */
@supports (padding: env(safe-area-inset-bottom)) {
  .bottom-nav {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
  /* scanner page uses padding-bottom:90px — extend it */
  body.scanner-page { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}

/* ============================================
   TOUCH TARGETS — MINIMUM 44px (Apple HIG)
   ============================================ */
.btn-icon {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
}
/* Revert to design size on desktop */
@media (min-width: 768px) {
  .btn-icon { width: 34px; height: 34px; min-width: 34px; min-height: 34px; }
}

/* Prevent accidental text-selection on tap */
.action-btn, .btn-icon, .bottom-nav-item, .nav-link {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Momentum scrolling on iOS */
.table-responsive, .tab-content, body {
  -webkit-overflow-scrolling: touch;
}

/* ============================================
   MOBILE — phones < 576 px
   ============================================ */
@media (max-width: 575.98px) {

  /* --- Stats cards --- */
  .stat-card { padding: 14px 16px; }
  .stat-card h3 { font-size: 1.6rem; }
  .stat-card p  { font-size: 0.72rem; }
  .stat-card .stat-icon { font-size: 1.8rem; }

  /* --- Admin tabs: horizontal scroll instead of wrapping --- */
  #adminTabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
    gap: 6px !important;
  }
  #adminTabs::-webkit-scrollbar { display: none; }
  #adminTabs .nav-link {
    white-space: nowrap;
    padding: 8px 14px !important;
    font-size: 0.8rem;
  }

  /* --- Section header: buttons wrap below title --- */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .section-header > div { width: 100%; }

  /* --- Participants table: hide Specialty column --- */
  .table-participants td:nth-child(3),
  .table-participants th:nth-child(3) { display: none; }

  /* --- Cards padding --- */
  .card-glass { padding: 16px !important; }
  .card-flat  { padding: 14px !important; }

  /* --- Reduce hero padding --- */
  .hero-section { padding: 60px 0 100px 0; }
  .hero-logo { height: 60px; }

  /* --- Pill buttons bar wrapping gap --- */
  .d-flex.gap-2.flex-wrap { gap: 6px !important; }

  /* --- Admin bottom padding so content clears bottom-nav --- */
  .container-fluid.pb-5 { padding-bottom: 100px !important; }
}

/* ============================================
   TABLET — 576px to 991px (iPad, iPad Mini)
   ============================================ */
@media (min-width: 576px) and (max-width: 991.98px) {

  .stat-card h3 { font-size: 1.85rem; }

  /* Two-column tabs on tablet */
  #adminTabs { gap: 8px !important; }
  #adminTabs .nav-link { padding: 9px 20px !important; }

  /* Form and table side by side starting at md */
  .col-lg-4, .col-lg-8 { width: 100%; }
}

/* ============================================
   LARGE SCREENS — iPads landscape / laptops
   ============================================ */
@media (min-width: 992px) {
  .stat-card h3 { font-size: 2.2rem; }
}

/* ============================================
   FOCUS ACCESSIBILITY
   ============================================ */
.btn-primary-custom:focus-visible,
.btn-icon:focus-visible,
.btn-login:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.nav-link:focus-visible,
.bottom-nav-item:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip-link for keyboard users — add <a href="#main" class="skip-link">Skip to content</a> at top of body if needed */
.skip-link {
  position: absolute;
  top: -40px; left: 8px;
  background: var(--primary-color);
  color: #fff;
  padding: 8px 14px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============================================
   PRODUCTION POLISH
   ============================================ */

/* — Toast / SweetAlert containment — */
.swal2-popup {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-xl) !important;
}
.swal2-title { font-family: 'Montserrat', sans-serif; }

/* — Stat cards: subtle hover lift — */
.stat-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.stat-card:hover { transform: translateY(-2px); }

/* — Card-glass / card-flat: smoother borders — */
.card-glass, .card-flat { transition: border-color 0.2s, box-shadow 0.25s; }

/* — Form invalid state — */
.form-control:invalid:not(:placeholder-shown) {
  border-color: #fca5a5;
  background: #fff7f7;
}
.form-control.is-valid {
  border-color: #86efac;
}

/* — Disabled button polish — */
.btn-primary-custom:disabled,
.btn-cyan:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* — Tab pill polish — */
.nav-pills .nav-link {
  border: 1px solid transparent;
  background: #fff;
}
.nav-pills .nav-link.active {
  background: var(--primary-color) !important;
  color: #fff !important;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(10,22,40,0.18);
}

/* — Better empty state — */
.empty-state svg, .empty-state i { color: #cbd5e1; }
.empty-state .empty-title {
  font-weight: 700;
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

/* — Selection highlight uses brand colour — */
::selection { background: rgba(21,101,192,0.18); color: var(--primary-color); }

/* — Make long names wrap gracefully on ID cards & participant rows — */
.participant-name, .card-name, .recent-name, .p-name, .wa-name {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ============================================
   REDUCED MOTION  (system preference)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   HIGH CONTRAST  (Windows users)
   ============================================ */
@media (prefers-contrast: more) {
  .form-control, .form-select { border-width: 2px; }
  .btn-icon { border-width: 1.5px; }
  .role-badge-pill { border-width: 1.5px; }
}

/* ============================================
   PRINT STYLES — admin pages don't print well by default
   ============================================ */
@media print {
  body { background: #fff !important; }
  .navbar, .bottom-nav, .nav-pills, .btn, .btn-icon,
  .swal2-container, .skip-link, .marquee-outer { display: none !important; }
  .card-glass, .card-flat {
    box-shadow: none !important;
    border: 1px solid #d1d5db !important;
    page-break-inside: avoid;
  }
  a { text-decoration: none; color: inherit; }
}

/* ============================================
   OFFLINE INDICATOR
   ============================================ */
.offline-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #f59e0b;
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  z-index: 10000;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.offline-banner.show { transform: translateY(0); }

/* ============================================
   AQUATIC THERAPY THEME STYLES (AAIC 2026)
   ============================================ */

/* Water Ripple Animation */
@keyframes waterWave {
  0% { transform: translate3d(0, 0, 0) scaleY(1); }
  50% { transform: translate3d(-25%, 8px, 0) scaleY(1.08); }
  100% { transform: translate3d(-50%, 0, 0) scaleY(1); }
}

@keyframes pulseGlowCyan {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 229, 255, 0.35); }
  50% { box-shadow: 0 0 30px rgba(0, 229, 255, 0.7); }
}

.hero-aqua {
  background: linear-gradient(160deg, #011627 0%, #032b49 45%, #024a6e 85%, #008eb3 100%);
  position: relative;
  overflow: hidden;
}

.hero-aqua::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(0, 229, 255, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(0, 180, 216, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(3, 43, 73, 0.5) 0%, transparent 80%);
  pointer-events: none;
}

/* Water wave bottom */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* Badges */
.badge-aqua-pill {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #00e5ff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge-tag {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-block;
}

/* Conference Pillar Cards */
.pillar-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 180, 216, 0.18);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 20px rgba(3, 43, 73, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan-color);
  box-shadow: 0 16px 36px rgba(0, 180, 216, 0.18);
}
.pillar-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #00838f;
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}
.pillar-card:hover .pillar-icon {
  transform: scale(1.12) rotate(4deg);
  background: linear-gradient(135deg, #008eb3 0%, #00e5ff 100%);
  color: #ffffff;
}

/* 6 Clinical Specialties Cards */
.specialty-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 26px 22px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.specialty-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #008eb3, #00e5ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.specialty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 142, 179, 0.12);
  border-color: #bae6fd;
}
.specialty-card:hover::before { opacity: 1; }

.specialty-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #0284c7;
  margin-bottom: 16px;
}

/* Educational Comparison Section */
.comp-card {
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  transition: transform 0.3s;
}
.comp-bad {
  background: #fff5f5;
  border: 2px dashed #fca5a5;
}
.comp-good {
  background: #f0fdfa;
  border: 2px solid #5eead4;
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.12);
}
.comp-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* Speaker Showcase Card */
.speaker-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  transition: all 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.speaker-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(3, 43, 73, 0.14);
  border-color: #7dd3fc;
}
.speaker-thumb-wrap {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  aspect-ratio: 1 / 1;
}
.speaker-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}
.speaker-card:hover .speaker-thumb-img {
  transform: scale(1.04);
}
.speaker-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.speaker-topic-box {
  background: #f0f9ff;
  border-left: 3px solid #00a8cc;
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #03446b;
  margin: 14px 0;
  line-height: 1.5;
}

/* Hands-on Pool Workshop Card */
.workshop-banner {
  background: linear-gradient(135deg, #022038 0%, #03446b 50%, #007799 100%);
  border-radius: 24px;
  padding: 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(2, 32, 56, 0.25);
  border: 1px solid rgba(0, 229, 255, 0.2);
}
.workshop-banner::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* Poster Modal / Lightbox */
.poster-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(3, 27, 47, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.poster-modal.open {
  display: flex;
}
.poster-modal-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.poster-modal-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(0, 229, 255, 0.3);
}
.poster-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #032b49;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: all 0.2s;
  z-index: 10;
}
.poster-modal-close:hover {
  transform: scale(1.1);
  background: #00e5ff;
  color: #032b49;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================
   1. FLOATING WHATSAPP BOOKING WIDGET
   ============================================ */
.wa-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wa-floating-btn:hover {
  transform: scale(1.1) translateY(-3px);
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}
.wa-floating-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2s infinite ease-out;
  pointer-events: none;
}
@keyframes waPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.wa-tooltip {
  position: absolute;
  right: 70px;
  background: rgba(3, 43, 73, 0.95);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  border: 1px solid rgba(0, 229, 255, 0.3);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s, transform 0.3s;
}
.wa-floating-btn:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   2. FILTER PILLS (SPEAKERS & GALLERY)
   ============================================ */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter-pill {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-pill:hover, .filter-pill.active {
  background: linear-gradient(135deg, #008eb3 0%, #00e5ff 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.35);
  transform: translateY(-2px);
}

/* ============================================
   3. AGENDA TABS & TRACK TAGS
   ============================================ */
.agenda-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}
.agenda-tab-btn {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  color: #03446b;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.agenda-tab-btn:hover, .agenda-tab-btn.active {
  background: #03446b;
  color: #ffffff;
  border-color: #03446b;
  box-shadow: 0 8px 24px rgba(3, 68, 107, 0.25);
}
.track-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 6px;
}
.track-tech { background: #e0f2fe; color: #0284c7; }
.track-manual { background: #fef3c7; color: #b45309; }
.track-neuro { background: #ede9fe; color: #7c3aed; }
.track-sports { background: #dcfce7; color: #15803d; }
.track-pediatrics { background: #fce7f3; color: #be185d; }
.track-geriatrics { background: #fae8ff; color: #a21caf; }
.track-collab { background: #ccfbf1; color: #0f766e; }

/* ============================================
   4. INTERACTIVE FAQ ACCORDION
   ============================================ */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.faq-item:hover {
  border-color: #bae6fd;
  box-shadow: 0 8px 20px rgba(0, 180, 216, 0.08);
}
.faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #032b49;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
[dir="rtl"] .faq-btn { text-align: right; }
.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0f7fa;
  color: #008eb3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
  background: #008eb3;
  color: #ffffff;
}
.faq-body {
  padding: 0 22px 20px 22px;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  display: none;
}
.faq-item.open .faq-body { display: block; }

/* ============================================
   5. POSTER GALLERY & LIGHTBOX CAROUSEL
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.gallery-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 180, 216, 0.22);
  border-color: #00e5ff;
}
.gallery-card:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 43, 73, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #032b49;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10055;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.modal-nav-btn:hover { background: #00e5ff; color: #032b49; transform: translateY(-50%) scale(1.1); }
.modal-nav-prev { left: -24px; }
.modal-nav-next { right: -24px; }
@media (max-width: 768px) {
  .modal-nav-prev { left: 8px; }
  .modal-nav-next { right: 8px; }
}

/* ============================================
   6. LANGUAGE TOGGLE BUTTON IN NAVBAR
   ============================================ */
.lang-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s;
}
.lang-btn:hover {
  background: #00e5ff;
  color: #032b49 !important;
  border-color: #00e5ff;
}


/* Chart.js measures its dedicated parent. Keep titles outside that fixed-height area. */
#analyticsTab .analytics-card { height: 100%; min-width: 0; }
#analyticsTab .analytics-description { min-height: 3em; line-height: 1.5; }
#analyticsTab .analytics-chart { position: relative; width: 100%; height: 260px; min-width: 0; }
@media (max-width: 575.98px) {
  #analyticsTab .analytics-chart { height: 240px; }
}
