/* ======================================== 
   SignalSight - Grounded Intelligence
   CSS Style Sheet
   ======================================== */

:root {
  /* ======================================== 
     DARK THEME (Default) - Deep Pharma Intelligence
     ======================================== */
  --bg-primary: #0D1117;
  --bg-dark: #010409;
  --bg-surface: #161B22;
  --bg-surface-hover: #1C2128;
  --bg-card: #21262D;
  --bg-card-hover: #282E36;

  /* Professional Text Colors */
  --text-primary: #E6EDF3;
  --text-secondary: #8B949E;
  --text-muted: #6E7681;
  --text-light: #484F58;

  /* Accent Colors - Teal/Cyan Focus */
  --accent-primary: #58A6FF;
  --accent-primary-hover: #79B8FF;
  --accent-success: #3FB950;
  --accent-warning: #D29922;
  --accent-error: #F85149;
  --accent-regulatory: #388BFD;
  --accent-info: #58A6FF;

  /* Borders & Shadows */
  --border-light: #30363D;
  --border-medium: #484F58;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --glow-primary: 0 0 20px rgba(88, 166, 255, 0.15);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #58A6FF 0%, #388BFD 100%);
  --gradient-success: linear-gradient(135deg, #3FB950 0%, #2EA043 100%);
  --gradient-regulatory: linear-gradient(135deg, #388BFD 0%, #58A6FF 100%);

  /* Glass Effects */
  --glass-bg: rgba(33, 38, 45, 0.85);
  --glass-border: rgba(48, 54, 61, 0.8);
  --glass-backdrop: blur(12px);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Animation Variables */
  --animation-speed: 0.3s;
  --animation-curve: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================================== 
   LIGHT THEME - Clean Medical Light Mode
   ======================================== */
:root.light-theme {
  --bg-primary: #F8FAFC;
  --bg-dark: #E2E8F0;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;

  /* Text Colors - Dark text on light backgrounds */
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Accent Colors - Teal/Green Healthcare Focus */
  --accent-primary: #0D9488;
  --accent-primary-hover: #0F766E;
  --accent-success: #10B981;
  --accent-warning: #F59E0B;
  --accent-error: #EF4444;
  --accent-regulatory: #0891B2;
  --accent-info: #0D9488;

  /* Borders & Shadows - Soft, subtle */
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --glow-primary: 0 0 20px rgba(13, 148, 136, 0.15);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0D9488 0%, #0891B2 100%);
  --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --gradient-regulatory: linear-gradient(135deg, #0891B2 0%, #0D9488 100%);

  /* Glass Effects - Light mode version */
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(226, 232, 240, 0.8);
  --glass-backdrop: blur(12px);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ======================================== 
   STICKY TOP NAVBAR
   ======================================== */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.navbar-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

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

.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.navbar-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--bg-surface);
  color: var(--accent-primary);
}

.nav-link i {
  font-size: 1rem;
}

/* Theme Toggle (In Navbar) */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--animation-speed) var(--animation-curve);
}

.theme-toggle:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

.theme-toggle i {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.theme-toggle .bi-sun-fill {
  display: block;
}

.theme-toggle .bi-moon-fill {
  display: none;
}

:root.light-theme .theme-toggle .bi-sun-fill {
  display: none;
}

:root.light-theme .theme-toggle .bi-moon-fill {
  display: block;
}

/* ======================================== 
   COMPACT HERO SECTION
   ======================================== */
.compact-hero {
  text-align: center;
  padding: 40px 24px 24px;
  margin-top: 70px;
  /* Navbar height offset */
}

.compact-hero .hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.compact-hero .hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* Hero CTA Button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 16px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.hero-cta i {
  font-size: 1.2rem;
}

/* ======================================== 
   WORKFLOW STEP INDICATOR
   ======================================== */
.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 24px 32px;
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.step.active .step-circle {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  color: white;
  box-shadow: var(--glow-primary);
}

.step.completed .step-circle {
  border-color: var(--accent-success);
  background: var(--accent-success);
  color: white;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

.step.active .step-label {
  color: var(--accent-primary);
  font-weight: 600;
}

.step-connector {
  flex: 1;
  height: 2px;
  min-width: 40px;
  max-width: 80px;
  background: var(--border-medium);
  margin: 0 8px;
  margin-bottom: 24px;
}

.step.completed+.step-connector {
  background: var(--accent-success);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Background Dot Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, var(--border-light) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

/* Serif font for headings */
h1,
h2,
h3,
.hero-title,
.section-title,
.card-title {
  font-family: 'Merriweather', Georgia, serif;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.app-header {
  position: relative;
  margin-bottom: 2rem;
}

.header-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  height: 70px;
  width: 70px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: all var(--animation-speed) var(--animation-curve);
  z-index: 10;
}

.header-logo:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Section with Advanced Glassmorphism */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 40px 50px;
  min-height: 50vh;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
  animation: heroFadeIn 1s var(--animation-curve) forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--accent-regulatory);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--animation-speed) var(--animation-curve);
  box-shadow: var(--shadow-md);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--accent-primary-hover);
}

/* Trust Row - Badges in Hero */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: all var(--animation-speed) var(--animation-curve);
}

.trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trust-badge .badge-icon {
  font-size: 1rem;
}

/* Content Area with Smooth Reveal */
.content-area {
  margin-top: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s var(--animation-curve);
}

.content-area.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form Section - Single Column Layout */
.report-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
}

/* Upload Hub - Horizontal Layout with Hover Focus */
.upload-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.upload-hub .professional-card {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  transition: all var(--animation-speed) var(--animation-curve);
  overflow: visible;
  z-index: 10;
  position: relative;
  border-left: 4px solid var(--accent-primary);
  border-radius: 4px 12px 12px 4px;
}

/* Hover: Focus on one card, fade the other */
.upload-hub:hover .professional-card {
  opacity: 0.65;
}

.upload-hub .professional-card:hover {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  z-index: 20;
}

.upload-hub .professional-card-header {
  flex-shrink: 0;
  overflow: visible;
  position: relative;
}

.upload-hub .file-upload {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 0;
}

/* Compact Input Group for ICSR */
.upload-hub .input-group {
  margin-bottom: 12px;
}

/* Info Tooltip */
.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: help;
  margin-left: auto;
  transition: all var(--animation-speed) var(--animation-curve);
}

.info-tooltip:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.info-tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  padding: 12px 14px;
  background: var(--bg-dark);
  color: white;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: all 0.2s ease;
}

.info-tooltip .tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--bg-dark) transparent transparent transparent;
}

.info-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Right-aligned tooltip for SPC card on small screens */
.upload-hub .professional-card:last-child .info-tooltip .tooltip-text {
  left: auto;
  right: 0;
  transform: translateX(0);
}

.upload-hub .professional-card:last-child .info-tooltip .tooltip-text::after {
  left: auto;
  right: 14px;
  transform: translateX(0);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Opaque Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: all var(--animation-speed) var(--animation-curve);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Professional Card Variant */
.glass-advanced {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* File Upload */
.file-upload {
  position: relative;
  border: 2px dashed var(--border-medium);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  background: var(--bg-surface);
  transition: all var(--animation-speed) var(--animation-curve);
  cursor: pointer;
  margin-bottom: 16px;
}

.file-upload:hover {
  border-color: var(--accent-primary);
  background: var(--bg-surface-hover);
}

.file-upload.dragover {
  border-color: var(--accent-success);
  background: rgba(63, 185, 80, 0.1);
}

.file-upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.file-upload-text {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.file-upload-subtext {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  top: 0;
  left: 0;
}

.file-name {
  color: var(--accent-success);
  font-size: 0.875rem;
  margin-top: 8px;
  padding: 8px 14px;
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid var(--accent-success);
  border-radius: 6px;
  display: inline-block;
}

/* CTA Button */
.cta-button {
  width: 100%;
  padding: 16px 28px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--animation-speed) var(--animation-curve);
  margin-top: 20px;
  box-shadow: var(--shadow-md);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--accent-primary-hover);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loading State */
.loading-container {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-top: 20px;
}

/* Simple Loader */
.simple-loader {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: simpleSpinner 0.8s linear infinite;
}

@keyframes simpleSpinner {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Results Section */
.results-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.results-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.results-content {
  color: var(--text-secondary);
  text-align: center;
  padding: 32px 20px;
}

/* ========================================
   FLOATING LOADING OVERLAY
   ======================================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loading-overlay.active {
  display: flex;
  opacity: 1;
}

.loading-content {
  background: var(--glass-bg);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 48px 64px;
  text-align: center;
  box-shadow: var(--shadow-lg), var(--glow-primary);
  max-width: 500px;
  animation: floatIn 0.5s ease-out;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border-light);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 1s linear infinite;
}

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

.loading-overlay .loading-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 20px;
  min-height: 28px;
}

.loading-progress {
  width: 100%;
  height: 6px;
  background: var(--bg-surface);
  border-radius: 3px;
  overflow: hidden;
}

.loading-progress-bar {
  width: 30%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0% {
    width: 10%;
  }

  50% {
    width: 70%;
  }

  100% {
    width: 10%;
  }
}


/* ========================================
   PREMIUM GLASS PILL TOAST NOTIFICATIONS
   ======================================== */

/* Toast Container - Fixed at top center, below navbar */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  width: 100%;
  max-width: 400px;
  padding: 0 16px;
}

/* Glass Pill Base */
.toast-pill {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  padding: 10px 16px 10px 14px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  cursor: pointer;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);

  /* Animation */
  opacity: 0;
  transform: translateY(-30px);
  animation: toastSlideIn 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.toast-pill:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 50px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Toast Icon */
.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Toast Content */
.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-message {
  line-height: 1.4;
  word-wrap: break-word;
}

/* Dismiss Button */
.toast-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.toast-dismiss:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

/* ===== TYPE VARIANTS ===== */

/* Success Toast */
.toast-pill.toast-success {
  border-left: 3px solid var(--accent-success);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.12),
    inset 0 0 20px rgba(141, 163, 153, 0.15);
}

.toast-pill.toast-success .toast-icon {
  background: rgba(141, 163, 153, 0.2);
  color: #5B8A72;
}

/* Error Toast */
.toast-pill.toast-error {
  border-left: 3px solid #DC2626;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.12),
    inset 0 0 20px rgba(220, 38, 38, 0.1);
}

.toast-pill.toast-error .toast-icon {
  background: rgba(220, 38, 38, 0.12);
  color: #DC2626;
}

/* Warning Toast */
.toast-pill.toast-warning {
  border-left: 3px solid var(--accent-warning);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.12),
    inset 0 0 20px rgba(212, 160, 86, 0.15);
}

.toast-pill.toast-warning .toast-icon {
  background: rgba(212, 160, 86, 0.2);
  color: #B8860B;
}

/* Info Toast */
.toast-pill.toast-info {
  border-left: 3px solid var(--accent-regulatory);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.12),
    inset 0 0 20px rgba(47, 79, 79, 0.1);
}

.toast-pill.toast-info .toast-icon {
  background: rgba(47, 79, 79, 0.12);
  color: var(--accent-regulatory);
}

/* Danger Toast (alias for error) */
.toast-pill.toast-danger {
  border-left: 3px solid #DC2626;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.12),
    inset 0 0 20px rgba(220, 38, 38, 0.1);
}

.toast-pill.toast-danger .toast-icon {
  background: rgba(220, 38, 38, 0.12);
  color: #DC2626;
}

/* ===== ANIMATIONS ===== */

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-30px);
  }
}

.toast-pill.toast-dismissing {
  animation: toastSlideOut 0.3s ease forwards;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 576px) {
  .toast-container {
    top: 12px;
    max-width: 100%;
    padding: 0 12px;
  }

  .toast-pill {
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .toast-icon {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 80px 20px 48px;
  }

  .hero-content {
    max-width: 100%;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Compliance Badge */
.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--gradient-regulatory);
  border-radius: 6px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.badge-icon {
  font-size: 1.25rem;
}

.badge-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.badge-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}

.badge-subtitle {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Features List */
.professional-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1.5rem 0;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--accent-success);
  border-radius: 50%;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
}

/* Status Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid;
}

.status-indicator.compliant {
  background: rgba(63, 185, 80, 0.15);
  border-color: var(--accent-success);
  color: var(--accent-success);
}

.status-indicator.processing {
  background: rgba(210, 153, 34, 0.15);
  border-color: var(--accent-warning);
  color: var(--accent-warning);
}

.status-indicator.validated {
  background: rgba(88, 166, 255, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Enhanced Professional Cards */
.professional-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--glass-shadow);
  transition: all var(--animation-speed) var(--animation-curve);
  position: relative;
  overflow: hidden;
}

/* Accessibility Utility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- Social Media Section --- */
.social-section {
  margin-top: 60px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

/* Container Card */
.social-links-container {
  padding: 20px 30px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--animation-speed) var(--animation-curve);
  display: inline-block;
}

.social-links-container:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Links Layout */
.social-links-container ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Individual Icons */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-size: 1.4rem;
  transition: all var(--animation-speed) var(--animation-curve);
  position: relative;
  text-decoration: none;
}

/* Hover Effects */
.social-link:hover {
  transform: translateY(-3px) scale(1.05);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background-color: var(--bg-surface-hover);
  box-shadow: var(--shadow-md);
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
  .social-links-container {
    padding: 16px;
    width: 100%;
  }

  .social-links-container ul {
    gap: 16px;
    justify-content: space-evenly;
  }

  .social-link {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

.professional-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-clinical);
  opacity: 0;
  transition: opacity var(--animation-speed);
}

.professional-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.professional-card:hover::before {
  opacity: 1;
}

.professional-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

/* Focus styles for accessibility */
.cta-button:focus,
.input-field:focus,
.hero-cta:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Professional Responsive Design - Consolidated */
@media (max-width: 768px) {

  /* Layout & Hub */
  .app-container {
    padding: 16px;
  }

  .upload-hub {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .upload-hub .professional-card {
    min-height: auto;
    padding: 24px;
  }

  /* Hero & Header */
  .hero-title {
    font-size: 2rem;
  }

  .header-logo {
    height: 50px;
    width: 50px;
    top: 12px;
    left: 12px;
  }

  /* Components */
  .glass-card {
    padding: 20px;
  }
}