/* HP-3 Phase 2: shared base CSS rules — extracted because their text is
   byte-identical across every page (unlike tokens.css, these are rules,
   not custom-property values). Loaded after tokens.css since .skip-link's
   outline references var(--teal), which each page's local :root may
   override. */

/* MP-2: skip-to-content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  z-index: 10000;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* HP-3 Phase 2: bare button reset (15/19 pages had this verbatim; the
   other 4 either have no <button> elements, or a higher-specificity .btn
   class that already sets all four of these properties, so this rule has
   no effect there). */
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Brand logo image — bouncing tooth */
.brand-logo-img { animation: tooth-bounce 2.4s ease-in-out infinite; }
@keyframes tooth-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Wordmark — navy blue, not black; white on dark backgrounds */
.brand-logo-text { color: #003087 !important; }
footer .brand-logo-text,
.pane-brand .brand-logo-text,
.sidebar .brand-logo-text,
.sb-logo .brand-logo-text { color: #fff !important; }

/* Mobile responsiveness — global fixes */
@media (max-width: 640px) {
  .mobile-stack-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .topnav-inner { padding: 0.75rem 1rem; gap: 0.75rem; }
  .topnav-actions .btn { padding: 0.6rem 0.9rem; font-size: 0.82rem; }
  .brand-logo-img { height: 32px !important; }
  .brand-logo-lockup .brand-tagline { display: none; }
  .container, .container-sm, .container-xs { padding: 0 1rem; }
  .hero-ctas, .final-cta-ctas { flex-direction: column; }
  .hero-ctas .btn, .final-cta-ctas .btn { width: 100%; }
  .btn-lg { padding: 0.85rem 1.25rem; font-size: 0.92rem; }
  .steps-grid, .why-grid, .audience-grid, .testimonials-grid { grid-template-columns: 1fr !important; }
  .stats-band { grid-template-columns: repeat(2, 1fr) !important; }
  .trust-strip { flex-direction: column; gap: 0.5rem; text-align: left; }
  section.block { padding: 2.5rem 0; }
  .display-xl { font-size: 2rem !important; }
  .display-lg { font-size: 1.8rem !important; }
  .display-md { font-size: 1.5rem !important; }
}

/* Prevent horizontal overflow on all pages */
html { overflow-x: hidden; }

/* ============================================================
   UX IMPROVEMENTS — Dashboard mobile, transitions, states
   ============================================================ */

/* Dashboard sidebar — mobile responsive */
@media (max-width: 768px) {
  .sidebar { display: none !important; }
  .main { margin-left: 0 !important; }
  .page { grid-template-columns: 1fr !important; }
  .pane-brand { display: none !important; }
  .stat-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-card { padding: 1rem !important; }
  .section-head { flex-direction: column; gap: 0.75rem; }
  .section-head .btn { width: 100%; }
  .card-body { padding: 1rem !important; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr !important; }
}

/* Smooth transitions on interactive elements */
.btn { transition: all 0.15s ease; }
.btn:active { transform: scale(0.97); }
.card { transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.sb-link { transition: background 0.15s, color 0.15s; }

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

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #94a3b8;
}
.empty-state i { font-size: 2.5rem; margin-bottom: 1rem; display: block; color: #cbd5e1; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; color: #64748b; margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.88rem; max-width: 360px; margin: 0 auto 1.25rem; line-height: 1.55; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  animation: toast-in 0.3s ease;
  max-width: 400px;
}
.toast.success { border-left: 4px solid #16a34a; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.info { border-left: 4px solid #00c4b8; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Focus styles for accessibility */
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid #00c4b8;
  outline-offset: 2px;
}

/* Badge improvements */
.badge { transition: transform 0.15s; }
.badge:hover { transform: scale(1.05); }

/* Table row hover */
.tbl tr:hover td { background: #f8fafc; }
.tbl tr { transition: background 0.1s; }

/* Smooth page transitions for dashboard sections */
.page { animation: page-enter 0.25s ease; }
@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Mobile header for dashboards */
.mobile-dash-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0a0f1e;
  padding: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.mobile-dash-header .brand { color: #fff; font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
@media (max-width: 768px) {
  .mobile-dash-header { display: flex; }
}

