/* CertiTrial™ - Clinical Research Coordinating Platform */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ════════════════════════════════════════════
   SIDEBAR — Purple / Violet / Lavender Theme
   ════════════════════════════════════════════ */

/* Deep violet-to-purple gradient background */
.sidebar-panel {
  background: linear-gradient(185deg, #1e0a3c 0%, #2d1054 35%, #3b1278 65%, #4c1d95 100%);
  border-right: 1px solid rgba(139, 92, 246, 0.18);
  box-shadow: 4px 0 32px rgba(76, 29, 149, 0.35);
  overflow: hidden;
  position: relative;
  min-height: 0;
}

/* Subtle decorative radial glow in corner */
.sidebar-panel::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
.sidebar-panel::after {
  content: '';
  position: absolute;
  bottom: 80px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.10) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.sidebar-logo-area {
  background: rgba(255,255,255,0.04);
}

.sidebar-logo-icon {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  border: 1.5px solid rgba(167, 139, 250, 0.4);
}

.sidebar-user-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}

.sidebar-badge-admin {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(109, 40, 217, 0.35));
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.sidebar-status-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(167, 139, 250, 0.15);
}

.sidebar-signout-btn {
  color: rgba(196, 181, 253, 0.6);
}
.sidebar-signout-btn:hover {
  background: rgba(255,255,255,0.07);
  color: #e9d5ff;
}

/* Section labels */
.sidebar-section-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(167, 139, 250, 0.55);
}

/* Phase badges in sidebar */
.sidebar-phase-badge {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
  flex-shrink: 0;
}
.sidebar-phase-badge-p3 {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

/* ─── NAV ITEMS ──────────────────────── */
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(196, 181, 253, 0.75);
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.nav-item:hover {
  background: rgba(167, 139, 250, 0.12);
  color: #ede9fe;
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(109, 40, 217, 0.25));
  color: #fff;
  border: 1px solid rgba(167, 139, 250, 0.25);
  font-weight: 600;
}
.nav-item.active i {
  color: #a78bfa;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
  border-radius: 0 3px 3px 0;
}
.nav-p3 {
  opacity: 0.7;
}
.nav-p3:hover { opacity: 0.9; }

/* ─── PAGE ANIMATIONS ─────────────────────────── */
.page-enter {
  animation: pageIn 0.3s ease forwards;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── METRIC / STAT CARDS ─────────────────────── */
.stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.mini-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* ─── TABLES ──────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #94a3b8;
  padding: 14px 24px;
  text-align: left;
}
.data-table td {
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  font-size: 14px;
  color: #1e293b;
}
.data-table tr:hover td { background: #f8fafc; }

/* ─── BADGES ──────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.badge-green  { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.badge-blue   { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.badge-amber  { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.badge-red    { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.badge-slate  { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
.badge-purple { background: #faf5ff; color: #6b21a8; border-color: #e9d5ff; }
.badge-orange { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }

/* ─── FORM ELEMENTS ───────────────────────────── */
.form-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.15s ease;
  color: #1e293b;
}
.form-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: #fff;
}
.form-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #94a3b8;
  margin-bottom: 6px;
}

/* ─── BUTTONS ─────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.btn-primary:hover { background: #1e293b; }

.btn-blue {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  background: #2563eb;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.btn-blue:hover { background: #1d4ed8; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  background: transparent;
  color: #475569;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.btn-outline:hover { background: #f8fafc; }

/* ─── WIZARD STEPS ────────────────────────────── */
.wizard-step {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  transition: all 0.2s ease;
}
.wizard-step.done    { background: #2563eb; color: #fff; }
.wizard-step.active  { background: #2563eb; color: #fff; }
.wizard-step.pending { background: #f1f5f9; color: #94a3b8; }
.wizard-line { flex: 1; height: 4px; border-radius: 99px; transition: all 0.2s ease; }
.wizard-line.done { background: #2563eb; }
.wizard-line.pending { background: #e2e8f0; }

/* ─── COMPLIANCE CHECKLIST ─────────────────────── */
.compliance-item {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid;
}
.compliance-item.ready   { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.compliance-item.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ─── CHART CONTAINERS ─────────────────────────── */
.chart-container { position: relative; }

/* ─── PHASE 2 PLACEHOLDER ──────────────────────── */
.phase2-placeholder {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 32px;
  color: #e2e8f0;
}

/* ─── MOBILE APP PREVIEW ──────────────────────── */
.phone-frame {
  max-width: 380px;
  margin: 0 auto;
  background: #f8fafc;
  border: 12px solid #0f172a;
  border-radius: 48px;
  height: 780px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 80px rgba(0,0,0,0.2);
}

/* ─── UPLOAD DROP ZONE ─────────────────────────── */
.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}
.drop-zone:hover { border-color: #60a5fa; background: #eff6ff; }

/* ─── ANIMATIONS ───────────────────────────────── */
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(12px); }
  to   { opacity:1; transform: translateY(0); }
}
.fade-up { animation: fadeInUp 0.35s ease both; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.pulse { animation: pulse 2s ease-in-out infinite; }

/* ─── TOAST ─────────────────────────────────────── */
#toast { transition: all 0.3s ease; }
#toast.show { display: flex !important; }

/* ─── RISK SCORE BAR ─────────────────────────────── */
.risk-bar { height: 6px; border-radius: 99px; background: #f1f5f9; overflow: hidden; }
.risk-fill { height: 100%; border-radius: 99px; transition: width 0.5s ease; }
.risk-low  { background: #22c55e; }
.risk-med  { background: #f59e0b; }
.risk-high { background: #ef4444; }

/* ─── FOOTER ─────────────────────────────────────── */
.page-footer {
  margin-top: 80px;
  padding: 32px 0;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

/* ─── KPI CARD (Option B pages) ──────────────────── */
.kpi-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.2s;
}
.kpi-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.kpi-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kpi-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #94a3b8;
}
.kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-top: 4px;
}

/* ─── GENERIC TABLE HELPERS (Option B pages) ────── */
.table-head th {
  background: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #94a3b8;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.table-row td { border-bottom: 1px solid #f1f5f9; }
.table-row:hover td { background: #f8fafc; }
.table-row:last-child td { border-bottom: none; }

/* ─── SIDEBAR SCROLL (wide nav) ───────────────────── */
#sidebar nav {
  overflow-y: auto;
  min-height: 0;
}

/* ─── EXTRAS ──────────────────────────────────────── */
.h-18 { height: 4.5rem; }
.phone-frame .flex-1 { overflow-y: auto; }
.phone-frame ::-webkit-scrollbar { width: 3px; }
.phone-frame ::-webkit-scrollbar-thumb { background: #e2e8f0; }
@media (max-width: 1024px) { #sidebar { width: 240px; } }

/* ─── DETAIL DRAWER ───────────────────────────────── */
#detail-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 480px;
  height: 100vh;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -8px 0 48px rgba(0,0,0,0.12);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#detail-drawer.open { transform: translateX(0); }
#drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(2px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 24px; }
.drawer-section { margin-bottom: 24px; }
.drawer-section-title {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.18em; color: #94a3b8; margin-bottom: 12px;
}

/* ─── LOADING SKELETON ────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-line  { height: 14px; margin-bottom: 8px; }
.skeleton-block { height: 80px; margin-bottom: 12px; }
.skeleton-card  { height: 120px; border-radius: 16px; }

/* ─── VISIT STATUS PILL ───────────────────────────── */
.visit-status-upcoming { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
.visit-status-overdue  { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
.visit-status-completed{ background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; }

/* ─── RESCHEDULE MODAL ────────────────────────────── */
#reschedule-modal, #cancel-modal {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
#reschedule-modal.hidden, #cancel-modal.hidden { display: none; }

/* ─── TIMELINE ────────────────────────────────────── */
.timeline-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-line {
  position: absolute;
  left: 5px; top: 12px;
  width: 2px;
  background: #e2e8f0;
  bottom: -20px;
}

/* ─── CHART LEGEND ────────────────────────────────── */
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.chart-legend-item { display: flex; align-items: center; gap: 6px; }
.chart-legend-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.chart-legend-line { width: 18px; height: 3px; border-radius: 99px; flex-shrink: 0; }
.chart-legend-label { font-size: 11px; font-weight: 600; color: #64748b; }

/* ─── RESPONSIVE SIDEBAR ──────────────────────────── */
.mobile-sidebar-header {
  display: none;
}

@media (max-width: 1024px) {
  #sidebar {
    position: fixed;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 280px;
  }

  #sidebar.mobile-open { transform: translateX(0); }
  #detail-drawer { width: 100vw; }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  #mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    color: #475569;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    z-index: 9999;
    touch-action: manipulation;
  }

  #mobile-menu-toggle:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
  }

  .mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .sidebar-mission {
    display: none;
  }

  .mobile-sidebar-header h2 {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
  }

  #mobile-menu-close {
    color: rgba(196, 181, 253, 0.7);
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
  }

  #mobile-menu-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
  }

  header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #page-content {
    padding: 1.5rem;
  }

  #global-search {
    min-width: 0;
  }
}

/* ─── ENHANCED GRADIENT CARDS ─────────────────────── */
.gradient-card-violet {
  background: linear-gradient(135deg, #4c1d95, #6d28d9);
  color: #fff;
  border-radius: 20px;
  padding: 24px;
}
.gradient-card-blue {
  background: linear-gradient(135deg, #1e3a5f, #1d4ed8);
  color: #fff;
  border-radius: 20px;
  padding: 24px;
}

/* ─── STAT PILL ───────────────────────────────────── */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}
.stat-pill-up   { background: #f0fdf4; color: #166534; }
.stat-pill-down { background: #fef2f2; color: #991b1b; }
.stat-pill-flat { background: #f8fafc; color: #475569; }

/* ─── PAGE SECTION DIVIDER ────────────────────────── */
.section-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 32px 0 20px;
  color: #94a3b8;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.18em;
}
.section-divider::before, .section-divider::after {
  content: ''; flex: 1; height: 1px; background: #e2e8f0;
}

/* ─── PARTICIPANT AVATAR GRID ─────────────────────── */
.avatar-stack { display: flex; }
.avatar-stack .av {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff;
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: #fff;
  margin-left: -8px;
  flex-shrink: 0;
}
.avatar-stack .av:first-child { margin-left: 0; }

/* ─── ENHANCED SIDEBAR SCROLLBAR ─────────────────── */
#sidebar nav::-webkit-scrollbar { width: 4px; }
#sidebar nav::-webkit-scrollbar-track { background: transparent; }
#sidebar nav::-webkit-scrollbar-thumb { background: rgba(167,139,250,0.25); border-radius: 99px; }
#sidebar nav::-webkit-scrollbar-thumb:hover { background: rgba(167,139,250,0.45); }

/* ─── VISIT WINDOW INDICATOR ─────────────────────── */
.window-ok     { color: #16a34a; }
.window-warn   { color: #d97706; }
.window-breach { color: #dc2626; }

/* ─── EMPTY STATE ─────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 32px; text-align: center;
}
.empty-state-icon {
  width: 64px; height: 64px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

/* ─── PROGRESS RING ───────────────────────────────── */
.progress-ring-circle {
  transition: stroke-dashoffset 0.5s ease;
  transform-origin: center;
  transform: rotate(-90deg);
}

/* ═══════════════════════════════════════════════════
   SPRINT 4 — GRANT REPORTING AUTOPILOT
   ═══════════════════════════════════════════════════ */

/* Tab pill active state */
.gr-tab-active {
  background: #fff;
  color: #1e293b !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
  font-weight: 700;
}
.gr-tab {
  transition: background 0.15s, color 0.15s;
}
.gr-tab:hover { color: #334155 !important; }

/* CONSORT Flow Diagram boxes */
.consort-box {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
}
.consort-box-enroll { border-color: #a78bfa; }
.consort-box-excl   { border-color: #fca5a5; background: #fff7f7; }
.consort-box-alloc  { border-color: #c4b5fd; background: #faf5ff; }
.consort-box-followup { border-color: #93c5fd; background: #eff6ff; }
.consort-box-analysis { border-color: #6ee7b7; background: #f0fdf4; }

/* CONSORT connector arrows */
.consort-arrow-v {
  width: 2px; height: 28px;
  background: linear-gradient(to bottom, #a78bfa, #7c3aed);
  margin: 0 auto;
  position: relative;
}
.consort-arrow-v::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #7c3aed;
}
.consort-arrow-h-left {
  height: 2px;
  background: #fca5a5;
  align-self: flex-start;
  margin-top: 14px;
}

/* ═══════════════════════════════════════════════════
   SPRINT 5 — SITE INTELLIGENCE SCORING
   ═══════════════════════════════════════════════════ */

/* Tab pill active state */
.si-tab-active {
  background: #fff;
  color: #1e293b !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
  font-weight: 700;
}
.si-tab {
  transition: background 0.15s, color 0.15s;
}
.si-tab:hover { color: #334155 !important; }

/* Site detail expand row */
#[id^="site-detail-"] {
  transition: all 0.2s ease;
}

/* Risk score bar animation */
.risk-bar-fill {
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Activation timeline connector */
.activation-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, #7c3aed, #a78bfa);
  align-self: center;
  margin-bottom: 24px;
}

/* Hide mobile menu button on larger screens */
@media (min-width: 1025px) {
  #mobile-menu-toggle {
    display: none !important;
  }
  
  .mobile-sidebar-header {
    display: none !important;
  }
}

