/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #1a1a1a; /* True neutral grey instead of green-tinted night */
  color: var(--platinum);
  line-height: 1.6;
}

/* Apply greyscale only to specific elements that should be grey */
/* Inactive tabs only */
.tab:not(.active):not(:hover) {
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

/* Content areas when not being interacted with */
.content:not(:hover) .content li:not(:hover) a:not(:hover) {
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

/* Specific content links when not hovered */
.content li:not(:hover) {
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

/* Header logo when not hovered */
header .logo-clickable:not(:hover) {
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

/* Logo turns green when search is active */
header .logo-clickable.search-active {
  filter: none !important;
  transition: filter 0.3s ease;
}

/* Theme toggle when not hovered */
.theme-toggle:not(:hover) {
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

/* Heart icons when not hovered or pinned */
.link-heart:not(:hover):not(.pinned) {
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

/* Specialty selector when not in pediatric or interventional mode */
.specialty-selector:not(:has(#pediatric-rad:checked)):not(:has(#interventional-rad:checked)) {
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

/* Digital Clock Styling */
.digital-clock-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.digital-clock {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--aquamarine);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(48, 250, 181, 0.3);
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  min-width: 120px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.digital-clock:hover {
  text-shadow: 0 0 15px rgba(48, 250, 181, 0.5);
  transform: scale(1.02);
}

.timezone-selector {
  background: rgba(35, 35, 35, 0.9);
  border: 1px solid rgba(48, 250, 181, 0.3);
  border-radius: 6px;
  color: var(--aquamarine);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.timezone-selector:hover {
  border-color: var(--aquamarine);
  box-shadow: 0 0 8px rgba(48, 250, 181, 0.2);
}

.timezone-selector:focus {
  border-color: var(--aquamarine);
  box-shadow: 0 0 12px rgba(48, 250, 181, 0.4);
}

.timezone-selector option {
  background: var(--rich-black);
  color: var(--platinum);
  padding: 0.3rem;
}

/* Footer */
footer {
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

/* Apply greyscale to background colors via CSS variables instead of filters */

/* Ensure these elements always remain in full color */
.splash-screen,
.search-and-ai-container,
.search-container,
.ai-button,
.search-icon,
.search-container input,
.tab.active,
.tab:hover,
.content li:hover,
.content li:hover a,
.content a:hover,
.theme-toggle:hover,
.link-heart:hover,
.link-heart.pinned,
header .logo-clickable:hover,
.specialty-selector:has(#pediatric-rad:checked),
.specialty-selector:has(#interventional-rad:checked) {
  filter: none !important;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header - Match site background */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: #1a1a1a; /* Match site background */
  position: relative;
  z-index: 100;
}

.logo-clickable {
  height: 45px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-clickable:hover {
  transform: scale(1.05);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hero Section - Professional styling */
.hero {
  text-align: center;
  padding: 3rem 2rem 2rem;
  background: #1a1a1a;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 2.5rem;
  color: var(--platinum); /* Changed from green to platinum */
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Main Content - Expanded layout */
.main-content {
  display: none;
  flex: 1;
  flex-direction: column;
  width: 100%;
  max-width: none; /* Remove width restrictions */
}

.main-content.show {
  display: flex !important;
}

.hidden {
  display: none !important;
}

/* Remove hamburger menu completely */
.drawer-toggle {
  display: none !important;
}

.drawer {
  display: none !important;
}

/* Modern Professional Tabs */
.tabs-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.tabs {
  display: grid;
  gap: 1rem;
  justify-content: center;
  place-items: stretch;
  padding: 1rem;
  background: rgba(25, 25, 25, 0.8);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

/* Diagnostic tabs layout - 4 columns for better width, 3 rows for 11 tabs */
.tabs.diagnostic-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, 1fr) !important;
  grid-auto-flow: row !important;
}

/* Force desktop layout with higher specificity */
.tabs-wrapper .tabs.diagnostic-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, 1fr) !important;
}

/* Interventional tabs layout - 3 equal columns */
.interventional-tabs {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
}

.tab {
  background: rgba(35, 35, 35, 0.9);
  border-radius: 8px;
  padding: 1.2rem 1rem;
  height: 80px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.05, 0.7, 0.1, 1.0);
  text-align: center;
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 1px 3px 0px rgba(0, 0, 0, 0.2),
    0 1px 1px 0px rgba(0, 0, 0, 0.14),
    0 2px 1px -1px rgba(0, 0, 0, 0.12);
  /* Force equal widths */
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.tab:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 2px 4px -1px rgba(0, 0, 0, 0.25),
    0 4px 5px 0px rgba(0, 0, 0, 0.16),
    0 1px 10px 0px rgba(0, 0, 0, 0.14);
}

.tab:active {
  transform: translateY(0px) scale(0.98);
  transition: all 0.1s ease;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 1px 3px 1px rgba(0, 0, 0, 0.12);
}

.tab.active {
  background: linear-gradient(135deg, var(--aquamarine), var(--jungle-green));
  color: var(--night);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(48, 250, 181, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab.active:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 
    0 4px 12px rgba(48, 250, 181, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.tab.active:hover::before {
  left: 100%;
}

.tab h2 {
  color: rgba(218, 227, 227, 0.7);
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  word-break: break-word;
  hyphens: auto;
}

.tab.active h2 {
  color: var(--night);
  font-weight: 700;
}

.tab:hover h2 {
  color: var(--aquamarine);
}

/* Content Sections - Material 3 Elevation */
.content {
  display: none;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 3rem;
  background: linear-gradient(145deg, rgba(35, 38, 38, 0.95), rgba(25, 28, 28, 0.98));
  border-radius: 8px;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    0 4px 5px 0px rgba(0, 0, 0, 0.14),
    0 1px 10px 0px rgba(0, 0, 0, 0.12),
    0 0 10px rgba(48, 250, 181, 0.03);
}

.content.active {
  display: block;
}

.content h2 {
  color: var(--aquamarine);
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--aquamarine);
  padding-bottom: 1rem;
}

.content ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.content li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(35, 38, 38, 0.6);
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 1px 3px 1px rgba(0, 0, 0, 0.12);
}

.content li:hover {
  background: linear-gradient(135deg, var(--aquamarine), var(--jungle-green));
  transform: translateX(4px);
  box-shadow: 
    0 8px 24px rgba(48, 250, 181, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.content li:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
  left: 100%;
}

.content li:hover a {
  color: var(--night) !important;
  font-weight: 600;
}

.content li:hover .link-heart {
  color: var(--night);
}

.content li:active {
  transform: translateX(2px) scale(1);
  box-shadow: 
    0 4px 12px rgba(48, 250, 181, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.content a {
  color: var(--platinum);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  flex: 1;
}

.content a:hover {
  color: var(--aquamarine);
}

/* Professional Search Container */
.search-and-ai-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.search-container {
  display: flex;
  align-items: center;
  background: rgba(35, 35, 35, 0.8);
  border: 2px solid rgba(128, 128, 128, 0.3);
  border-radius: 16px;
  padding: 1rem 2rem;
  flex: 1;
  transition: all 0.4s cubic-bezier(0.05, 0.7, 0.1, 1.0);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 1px 3px 0px rgba(0, 0, 0, 0.2),
    0 1px 1px 0px rgba(0, 0, 0, 0.14),
    0 2px 1px -1px rgba(0, 0, 0, 0.12);
}

.search-container:focus-within {
  border-color: var(--aquamarine);
  box-shadow: 
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    0 4px 5px 0px rgba(0, 0, 0, 0.14),
    0 1px 10px 0px rgba(0, 0, 0, 0.12),
    0 0 20px rgba(48, 250, 181, 0.3);
  transform: translateY(-2px);
}

.search-icon {
  color: var(--aquamarine);
  font-size: 1.3rem;
  margin-right: 12px;
  opacity: 0.8;
}

.search-container input {
  border: none;
  background: transparent;
  color: var(--platinum);
  font-size: 1.1rem;
  flex: 1;
  outline: none;
  font-weight: 400;
}

.search-container input::placeholder {
  color: var(--ash-gray);
  opacity: 0.7;
}

/* AI Button - Material 3 Floating Action Button */
.ai-button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: var(--aquamarine);
  color: var(--night);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.05, 0.7, 0.1, 1.0);
  flex-shrink: 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    0 4px 5px 0px rgba(0, 0, 0, 0.14),
    0 1px 10px 0px rgba(0, 0, 0, 0.12),
    0 0 20px rgba(48, 250, 181, 0.6);
  animation: ai-pulse 2s ease-in-out infinite;
}

@keyframes ai-pulse {
  0%, 100% {
    box-shadow: 
      0 2px 4px -1px rgba(0, 0, 0, 0.2),
      0 4px 5px 0px rgba(0, 0, 0, 0.14),
      0 1px 10px 0px rgba(0, 0, 0, 0.12),
      0 0 20px rgba(48, 250, 181, 0.6);
  }
  50% {
    box-shadow: 
      0 2px 4px -1px rgba(0, 0, 0, 0.2),
      0 4px 5px 0px rgba(0, 0, 0, 0.14),
      0 1px 10px 0px rgba(0, 0, 0, 0.12),
      0 0 30px rgba(48, 250, 181, 0.8);
  }
}

.ai-button:hover {
  background: rgba(48, 250, 181, 0.9);
  color: var(--night);
  transform: scale(1.05) translateY(-2px);
  box-shadow: 
    0 3px 5px -1px rgba(0, 0, 0, 0.2),
    0 6px 10px 0px rgba(0, 0, 0, 0.14),
    0 1px 18px 0px rgba(0, 0, 0, 0.12);
}

/* Search Filters - Professional */
.search-filters {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 1rem auto 0 auto;
  max-width: 600px;
  gap: 2rem;
}

/* Specialty Selector - Segmented Control */
.specialty-selector {
  position: relative;
  display: flex;
  background: rgba(35, 35, 35, 0.9);
  border: 1px solid rgba(48, 250, 181, 0.3);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 
    inset 0 1px 3px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 0 12px rgba(48, 250, 181, 0.1);
}

.specialty-selector input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.specialty-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  min-width: 100px;
  user-select: none;
  border: 1px solid transparent;
}

.specialty-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(218, 227, 227, 0.6);
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(48, 250, 181, 0);
}

.specialty-option:hover {
  background: rgba(48, 250, 181, 0.08);
  border-color: rgba(48, 250, 181, 0.2);
}

.specialty-option:hover .specialty-text {
  color: rgba(48, 250, 181, 0.95);
  text-shadow: 0 0 8px rgba(48, 250, 181, 0.3);
}

/* Active state */
input[type="radio"]:checked + .specialty-option {
  background: linear-gradient(135deg, #30FAB5, #22BF8D);
  box-shadow: 
    0 2px 12px rgba(48, 250, 181, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(48, 250, 181, 0.2);
  border-color: rgba(48, 250, 181, 0.4);
}

input[type="radio"]:checked + .specialty-option .specialty-text {
  color: var(--night);
  font-weight: 600;
  text-shadow: none;
}

/* Special styling for Interventional specialty */
.specialty-selector:has(#interventional-rad:checked) {
  background: rgba(35, 35, 35, 0.9);
  border-color: rgba(255, 165, 0, 0.3);
  box-shadow: 
    inset 0 1px 3px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 0 12px rgba(255, 165, 0, 0.1);
}

.specialty-option[data-specialty="interventional"]:hover {
  background: rgba(255, 165, 0, 0.08);
  border-color: rgba(255, 165, 0, 0.2);
}

.specialty-option[data-specialty="interventional"]:hover .specialty-text {
  color: rgba(255, 165, 0, 0.95);
  text-shadow: 0 0 8px rgba(255, 165, 0, 0.3);
}

input#interventional-rad:checked + .specialty-option {
  background: linear-gradient(135deg, #FFA500, #FF8C00);
  box-shadow: 
    0 2px 12px rgba(255, 165, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(255, 140, 0, 0.2);
  border-color: rgba(255, 165, 0, 0.4);
}

input#interventional-rad:checked + .specialty-option .specialty-text {
  color: var(--night);
  font-weight: 600;
  text-shadow: none;
}

/* Sliding indicator */
.specialty-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background: linear-gradient(135deg, var(--aquamarine), var(--jungle-green));
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  box-shadow: 
    0 2px 8px rgba(48, 250, 181, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Position indicator based on selection */
#diagnostic-rad:checked ~ .specialty-indicator {
  width: calc(33.33% - 2px);
  transform: translateX(0);
}

#interventional-rad:checked ~ .specialty-indicator {
  width: calc(33.33% - 2px);
  transform: translateX(calc(100% + 2px));
}

#pediatric-rad:checked ~ .specialty-indicator {
  width: calc(33.33% - 2px);
  transform: translateX(calc(200% + 4px));
}

/* Content change animation */
@keyframes contentPulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.content-switching {
  animation: contentPulse 0.6s ease-in-out;
}

/* Notification animations */
@keyframes slideInNotification {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideOutNotification {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

/* Ripple effect on selection */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.8;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.specialty-option::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--aquamarine);
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

/* Numbers Tab - Clickable Link */
#numbersTab {
  cursor: pointer;
}

#numbersTab:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    0 4px 5px 0px rgba(0, 0, 0, 0.14),
    0 1px 10px 0px rgba(0, 0, 0, 0.12),
    0 0 20px rgba(48, 250, 181, 0.2);
}

/* Enhanced Search Results */
.search-results {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  z-index: 1;
  position: relative;
}

.search-results-header {
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(35, 38, 38, 0.95), rgba(25, 28, 28, 0.98));
  border-radius: 8px;
  text-align: center;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 
    0 2px 3px rgba(0, 0, 0, 0.3),
    0 4px 8px 3px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(48, 250, 181, 0.1);
}

.search-results-header h3 {
  color: var(--aquamarine);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.search-meta {
  color: var(--ash-gray);
  font-size: 0.95rem;
  opacity: 0.8;
}

.search-result-card {
  background: linear-gradient(145deg, rgba(35, 38, 38, 0.95), rgba(25, 28, 28, 0.98));
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 2px 6px 2px rgba(0, 0, 0, 0.15);
}

.search-result-card:focus {
  outline: 2px solid var(--aquamarine);
  outline-offset: 2px;
}

.search-result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(48, 250, 181, 0.05), transparent);
  transition: left 0.5s;
}

.search-result-card:hover::before {
  left: 100%;
}

.search-result-card:hover {
  background: linear-gradient(145deg, rgba(48, 250, 181, 0.08), rgba(34, 191, 141, 0.05));
  transform: translateY(-4px);
  box-shadow: 
    0 4px 4px rgba(0, 0, 0, 0.3),
    0 8px 12px 6px rgba(0, 0, 0, 0.15),
    0 0 25px rgba(48, 250, 181, 0.2);
}

.search-relevance-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(48, 250, 181, 0.1);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.relevance-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--aquamarine), var(--jungle-green));
  transition: width 0.8s ease-out;
  border-radius: 12px 12px 0 0;
}

.search-result-path {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.result-number {
  background: var(--aquamarine);
  color: var(--night);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  min-width: 2rem;
  text-align: center;
}

.result-category {
  color: var(--aquamarine);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.external-indicator {
  background: rgba(48, 250, 181, 0.1);
  color: var(--aquamarine);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(48, 250, 181, 0.3);
  font-weight: 500;
}

.internal-indicator {
  background: rgba(214, 139, 42, 0.1);
  color: var(--bronze);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(214, 139, 42, 0.3);
  font-weight: 500;
}

.search-result-title {
  font-size: 1.4rem;
  color: var(--platinum);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.search-result-description {
  font-size: 1rem;
  color: var(--ash-gray);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.search-result-url {
  font-size: 0.85rem;
  color: var(--aquamarine);
  opacity: 0.8;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  background: rgba(48, 250, 181, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 1rem;
  border: 1px solid rgba(48, 250, 181, 0.2);
}

.search-result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(48, 250, 181, 0.1);
}

.relevance-score {
  background: rgba(48, 250, 181, 0.1);
  color: var(--aquamarine);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  border: 1px solid rgba(48, 250, 181, 0.2);
}

.result-type {
  color: var(--ash-gray);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.8;
}

.data-completeness,
.ref-count {
  background: rgba(214, 139, 42, 0.1);
  color: var(--bronze);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(214, 139, 42, 0.2);
}

/* Pediatric Search Result Sections */
.pediatric-clinical-section,
.pediatric-measurements-section,
.pediatric-references-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(35, 38, 38, 0.7);
  border-radius: 8px;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 1px 3px 1px rgba(0, 0, 0, 0.12),
    0 0 12px rgba(48, 250, 181, 0.08);
}

.pediatric-clinical-section h4,
.pediatric-measurements-section h4,
.pediatric-references-section h4 {
  color: var(--aquamarine);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 0.5rem;
  position: relative;
}

.pediatric-clinical-section h4::after,
.pediatric-measurements-section h4::after,
.pediatric-references-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--aquamarine), transparent);
  box-shadow: 0 1px 3px rgba(48, 250, 181, 0.3);
}

.clinical-info-item {
  margin: 0.8rem 0;
  padding: 0.8rem;
  background: rgba(25, 28, 28, 0.6);
  border-radius: 6px;
  position: relative;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 1px 3px 1px rgba(0, 0, 0, 0.12);
}

.clinical-info-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--aquamarine);
  border-radius: 6px 0 0 6px;
  box-shadow: 3px 0 6px rgba(48, 250, 181, 0.3);
}

.clinical-info-item strong {
  color: var(--aquamarine);
  font-weight: 600;
  display: inline-block;
  min-width: 140px;
  margin-right: 0.5rem;
}

/* Measurement Table Styling */
.measurement-table {
  display: grid;
  gap: 0.5rem;
}

.measurement-row {
  display: grid;
  grid-template-columns: 100px 1fr 2fr;
  gap: 1rem;
  padding: 0.8rem;
  background: rgba(25, 28, 28, 0.6);
  border-radius: 6px;
  align-items: center;
  position: relative;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 1px 3px 1px rgba(0, 0, 0, 0.12);
}

.measurement-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--jungle-green);
  border-radius: 6px 0 0 6px;
  box-shadow: 3px 0 6px rgba(34, 191, 141, 0.3);
}

.measurement-modality {
  background: var(--jungle-green);
  color: var(--night);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-align: center;
  text-transform: uppercase;
}

.measurement-parameter {
  color: var(--platinum);
  font-weight: 600;
  font-size: 0.9rem;
}

.measurement-values {
  color: var(--ash-gray);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 0.85rem;
  background: rgba(35, 38, 38, 0.8);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.structured-values {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.measurement-detail {
  color: var(--platinum);
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.measurement-detail:last-child {
  border-bottom: none;
}

.age-range {
  margin-bottom: 0.3rem;
  color: var(--ash-gray);
}

.age-range strong {
  color: var(--aquamarine);
}

/* References Styling */
.references-list {
  display: grid;
  gap: 0.8rem;
}

.reference-item {
  display: flex;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(25, 28, 28, 0.6);
  border-radius: 6px;
  align-items: flex-start;
  position: relative;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 1px 3px 1px rgba(0, 0, 0, 0.12);
}

.reference-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--bronze);
  border-radius: 6px 0 0 6px;
  box-shadow: 3px 0 6px rgba(214, 139, 42, 0.3);
}

.reference-number {
  background: var(--bronze);
  color: var(--night);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  min-width: 2rem;
  text-align: center;
  flex-shrink: 0;
}

.reference-link {
  color: var(--aquamarine);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.reference-link:hover {
  color: var(--platinum);
  text-decoration: underline;
}

.reference-citation {
  color: var(--ash-gray);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Mobile optimizations for pediatric data */
@media (max-width: 768px) {
  .measurement-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: left;
  }
  
  .measurement-modality {
    justify-self: start;
    width: fit-content;
  }
  
  .pediatric-clinical-section,
  .pediatric-measurements-section,
  .pediatric-references-section {
    padding: 1rem;
    margin-top: 1rem;
  }
  
  .reference-item {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* No Results - Enhanced */
.search-results.no-results {
  text-align: center;
  padding: 4rem 2rem;
}

.no-results-message {
  background: linear-gradient(145deg, rgba(35, 38, 38, 0.95), rgba(25, 28, 28, 0.98));
  border-radius: 8px;
  padding: 3rem;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 
    0 2px 3px rgba(0, 0, 0, 0.3),
    0 4px 8px 3px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(48, 250, 181, 0.08);
}

.no-results-message h3 {
  color: var(--platinum);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.no-results-message p {
  color: var(--ash-gray);
  font-size: 1rem;
  line-height: 1.6;
}

/* Theme Toggle - Material 3 Icon Button */
.theme-toggle {
  background: rgba(48, 250, 181, 0.1);
  border: none;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aquamarine);
  transition: all 0.4s cubic-bezier(0.05, 0.7, 0.1, 1.0);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 1px 3px 0px rgba(0, 0, 0, 0.2),
    0 1px 1px 0px rgba(0, 0, 0, 0.14),
    0 2px 1px -1px rgba(0, 0, 0, 0.12);
}

.theme-toggle:hover {
  background: rgba(48, 250, 181, 0.2);
  color: var(--aquamarine);
  transform: scale(1.05) rotate(180deg);
  box-shadow: 
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    0 4px 5px 0px rgba(0, 0, 0, 0.14),
    0 1px 10px 0px rgba(0, 0, 0, 0.12);
}

/* Heart Icons - Enhanced */
.link-heart {
  cursor: pointer;
  margin-left: 12px;
  opacity: 0.6;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(48, 250, 181, 0.05);
  border: 1px solid rgba(48, 250, 181, 0.1);
}

.link-heart:hover {
  opacity: 1;
  transform: scale(1.2);
  background: rgba(48, 250, 181, 0.1);
  border-color: rgba(48, 250, 181, 0.3);
}

.link-heart.pinned {
  opacity: 1;
  color: var(--bronze);
  background: rgba(214, 139, 42, 0.1);
  border-color: rgba(214, 139, 42, 0.3);
}

/* Professional Footer - Sticky to bottom */
footer {
  background: linear-gradient(145deg, rgba(35, 38, 38, 0.95), rgba(25, 28, 28, 0.98));
  padding: 2rem 0;
  margin-top: auto;
  text-align: center;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 
    0 -2px 3px rgba(0, 0, 0, 0.3),
    0 -4px 8px 3px rgba(0, 0, 0, 0.15),
    0 0 30px rgba(48, 250, 181, 0.05);
}

footer p {
  color: var(--ash-gray);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 400;
}

.privacy-link {
  color: var(--aquamarine) !important;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.privacy-link:hover {
  color: var(--platinum) !important;
  background: rgba(48, 250, 181, 0.1);
  text-decoration: none;
}

/* Floating Sidebars - Material 3 Elevation */
.floating-sidebar {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 350px;
  max-height: 80vh;
  background: linear-gradient(145deg, rgba(35, 38, 38, 0.95), rgba(25, 28, 28, 0.98));
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.05, 0.7, 0.1, 1.0);
  z-index: 1000;
  overflow: hidden;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    0 4px 5px 0px rgba(0, 0, 0, 0.14),
    0 1px 10px 0px rgba(0, 0, 0, 0.12);
}

/* Calculator Sidebar - Right side */
#floatingSidebar {
  right: -350px;
}

#floatingSidebar.expanded {
  right: 20px;
}

#floatingSidebar .sidebar-toggle {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 72px;
  background: linear-gradient(145deg, rgba(35, 38, 38, 0.95), rgba(25, 28, 28, 0.98));
  border-radius: 16px 0 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aquamarine);
  font-size: 1.4rem;
  transition: all 0.4s cubic-bezier(0.05, 0.7, 0.1, 1.0);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    0 4px 5px 0px rgba(0, 0, 0, 0.14),
    0 1px 10px 0px rgba(0, 0, 0, 0.12);
}

#floatingSidebar .sidebar-toggle:hover {
  background: rgba(48, 250, 181, 0.1);
  color: var(--platinum);
  transform: translateY(-50%) scale(1.05);
}

/* Favorites Sidebar - Left side */
#favorites-sidebar {
  left: -350px;
}

#favorites-sidebar.expanded {
  left: 20px;
}

#favorites-sidebar .sidebar-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 72px;
  background: linear-gradient(145deg, rgba(35, 38, 38, 0.95), rgba(25, 28, 28, 0.98));
  border-radius: 0 16px 16px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bronze);
  font-size: 1.4rem;
  transition: all 0.4s cubic-bezier(0.05, 0.7, 0.1, 1.0);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    0 4px 5px 0px rgba(0, 0, 0, 0.14),
    0 1px 10px 0px rgba(0, 0, 0, 0.12);
}

#favorites-sidebar .sidebar-toggle:hover {
  background: rgba(214, 139, 42, 0.1);
  color: var(--platinum);
  transform: translateY(-50%) scale(1.05);
}

/* Sidebar Content */
.sidebar-content {
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.floating-sidebar.expanded .sidebar-content {
  opacity: 1;
  visibility: visible;
}

.sidebar-header {
  padding: 1.5rem;
  background: var(--aquamarine);
  color: var(--night);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#favorites-sidebar .sidebar-header {
  background: var(--bronze);
}

.sidebar-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
}

/* Calculator Styling */
.calculator {
  background: rgba(25, 28, 28, 0.7);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.calculator-display {
  margin-bottom: 1rem;
}

.calculator-display input {
  width: 100%;
  padding: 1rem;
  background: var(--night);
  border-radius: 8px;
  color: var(--platinum);
  font-size: 1.2rem;
  text-align: right;
  font-family: monospace;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.calculator-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.calc-btn {
  padding: 1rem;
  background: rgba(35, 38, 38, 0.8);
  color: var(--platinum);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.calc-btn:hover {
  background: rgba(48, 250, 181, 0.1);
  box-shadow: 
    0 2px 3px rgba(0, 0, 0, 0.3),
    0 4px 8px 3px rgba(0, 0, 0, 0.15),
    0 0 12px rgba(48, 250, 181, 0.2);
}

.calc-btn.operator {
  background: rgba(48, 250, 181, 0.1);
  color: var(--aquamarine);
}

.calc-btn.clear {
  background: rgba(178, 13, 48, 0.2);
  color: var(--red-ncs);
}

/* Favorites List */
#favorites-list {
  list-style: none;
  padding: 0;
}

#favorites-list li {
  margin: 0.8rem 0;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(35, 38, 38, 0.6);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 1px 3px 1px rgba(0, 0, 0, 0.12),
    0 0 8px rgba(214, 139, 42, 0.1);
}

#favorites-list li:hover {
  background: rgba(214, 139, 42, 0.1);
  transform: translateX(4px);
  box-shadow: 
    0 2px 3px rgba(0, 0, 0, 0.3),
    0 4px 8px 3px rgba(0, 0, 0, 0.15),
    0 0 15px rgba(214, 139, 42, 0.2);
}

#favorites-list a {
  color: var(--platinum);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

#favorites-list a:hover {
  color: var(--bronze);
}

#no-favorites-message {
  color: var(--ash-gray);
  font-style: italic;
  text-align: center;
  padding: 2rem;
  opacity: 0.8;
}

/* Splash Screen - Material 3 Card Design */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, var(--night) 0%, var(--rich-black) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
  overflow: hidden;
  padding: min(2rem, 3vh);
  box-sizing: border-box;
}

.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-content {
  text-align: center;
  color: var(--platinum);
  max-width: min(600px, 90vw);
  max-height: calc(100vh - min(4rem, 6vh));
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: min(2rem, 3vh) min(1.5rem, 4vw);
  box-sizing: border-box;
  position: relative;
  overflow-y: auto;
  
  /* Material 3 Card Styling */
  background: linear-gradient(145deg, rgba(35, 38, 38, 0.95), rgba(25, 28, 28, 0.98));
  border-radius: 8px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    0 4px 5px 0px rgba(0, 0, 0, 0.14),
    0 1px 10px 0px rgba(0, 0, 0, 0.12),
    0 0 30px rgba(214, 139, 42, 0.15);
  
  /* Elevated surface styling */
  border: 1px solid rgba(214, 139, 42, 0.1);
}

.splash-logo {
  position: relative;
  z-index: 10;
  margin-bottom: min(1.5rem, 2vh);
  flex-shrink: 0;
}

.splash-logo img {
  max-width: min(350px, 80vw);
  width: 90%;
  height: auto;
  max-height: 15vh;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) sepia(1) hue-rotate(25deg) saturate(2) brightness(0.8);
  transition: filter 0.5s ease;
}

/* Remove bronze filter when acknowledgment is checked */
.splash-content.checked .splash-logo img {
  filter: drop-shadow(0 4px 8px rgba(48, 250, 181, 0.3)) !important;
}

.splash-main-image {
  position: relative;
  z-index: 20;
  margin: min(1.5rem, 2vh) 0;
  flex-shrink: 0;
  min-height: 0;
}

.central-image {
  max-width: min(350px, 70vw);
  width: 100%;
  height: auto;
  max-height: min(300px, 30vh);
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(214, 139, 42, 0.2)) sepia(1) hue-rotate(25deg) saturate(2) brightness(0.8);
  border-radius: 8px;
  transition: filter 0.5s ease;
}

/* Remove bronze overlay when acknowledgment is checked */
.splash-content.checked .central-image {
  filter: drop-shadow(0 8px 16px rgba(48, 250, 181, 0.2)) !important;
}

.splash-title {
  position: relative;
  z-index: 15;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: min(1rem, 2vh);
  color: var(--bronze);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.splash-text {
  position: relative;
  z-index: 15;
  margin: min(2rem, 3vh) 0;
  flex-shrink: 0;
  max-width: 450px;
  width: 90%;
  display: flex;
  justify-content: center;
}

.splash-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  margin: 0;
  color: var(--ash-gray);
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 100%;
}

/* Splash Acknowledgment Section */
.splash-acknowledgment {
  position: relative;
  z-index: 25;
  margin: min(2rem, 3vh) 0 min(1.5rem, 2vh);
  padding: min(1.5rem, 2vh);
  background: rgba(214, 139, 42, 0.05);
  border: 1px solid rgba(214, 139, 42, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
  max-width: 450px;
  width: 90%;
}

.splash-acknowledgment.checked {
  background: rgba(48, 250, 181, 0.05);
  border: 1px solid rgba(48, 250, 181, 0.2);
}

.splash-acknowledgment.attention {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.5);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
  animation: pulse-attention 2s ease-in-out;
}

@keyframes pulse-attention {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.acknowledgment-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.acknowledgment-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--bronze);
  border-radius: 4px;
  background: transparent;
  position: relative;
  transition: all 0.3s ease;
  margin-top: 2px;
}

.splash-acknowledgment.checked .checkmark {
  border: 2px solid var(--aquamarine);
}

.acknowledgment-checkbox input[type="checkbox"]:checked + .checkmark {
  background: var(--bronze);
  border-color: var(--bronze);
}

.splash-acknowledgment.checked .acknowledgment-checkbox input[type="checkbox"]:checked + .checkmark {
  background: var(--aquamarine);
  border-color: var(--aquamarine);
}

.acknowledgment-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid var(--night);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.acknowledgment-text {
  color: var(--ash-gray);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.disclaimer-link {
  color: var(--bronze);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.splash-acknowledgment.checked .disclaimer-link {
  color: var(--aquamarine);
}

.disclaimer-link:hover {
  color: var(--platinum);
  border-bottom-color: var(--bronze);
  text-shadow: 0 0 8px rgba(214, 139, 42, 0.5);
}

.splash-acknowledgment.checked .disclaimer-link:hover {
  border-bottom-color: var(--aquamarine);
  text-shadow: 0 0 8px rgba(48, 250, 181, 0.5);
}

/* Switch splash content elements to green when checked */
.splash-content.checked {
  border: 1px solid rgba(48, 250, 181, 0.1) !important;
  box-shadow: 
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    0 4px 5px 0px rgba(0, 0, 0, 0.14),
    0 1px 10px 0px rgba(0, 0, 0, 0.12),
    0 0 30px rgba(48, 250, 181, 0.15) !important;
}

.splash-content.checked .splash-title {
  color: var(--aquamarine) !important;
}

.splash-content.checked .central-image {
  filter: drop-shadow(0 8px 16px rgba(48, 250, 181, 0.2)) !important;
}

.splash-enter-btn {
  position: relative;
  z-index: 30;
  background: rgba(48, 250, 181, 0.1);
  border: 2px solid var(--aquamarine);
  color: var(--aquamarine);
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: 2rem;
  
  /* Material 3 button styling */
  box-shadow: 
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    0 4px 5px 0px rgba(0, 0, 0, 0.14),
    0 1px 10px 0px rgba(0, 0, 0, 0.12);
  
  /* Hidden by default until disclaimer is acknowledged */
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  visibility: hidden;
  pointer-events: none;
}

.splash-enter-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: all;
}

.splash-enter-btn:hover:not(:disabled) {
  background: var(--aquamarine);
  color: var(--night);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px rgba(48, 250, 181, 0.4);
}

.splash-enter-btn:disabled,
.splash-enter-btn.disabled {
  background: rgba(128, 128, 128, 0.1);
  border-color: rgba(128, 128, 128, 0.3);
  color: rgba(128, 128, 128, 0.6);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* Mobile splash screen optimizations - Card styling maintained */
  .splash-screen {
    padding: 2rem 1rem;
  }
  
  .splash-content {
    padding: 2rem 1.5rem;
    max-width: 90%;
    border-radius: 8px;
    gap: 1rem;
    
    /* Adjust shadows for mobile */
    box-shadow: 
      0 2px 4px -1px rgba(0, 0, 0, 0.3),
      0 4px 5px 0px rgba(0, 0, 0, 0.2),
      0 1px 10px 0px rgba(0, 0, 0, 0.15),
      0 0 20px rgba(48, 250, 181, 0.1);
  }
  
  .splash-logo img {
    max-width: 280px;
    width: 85%;
    margin-bottom: 1rem;
  }
  
  .splash-main-image {
    margin: 1rem 0;
  }
  
  .central-image {
    max-width: 320px;
    width: 90%;
    border-radius: 8px;
  }
  
  .splash-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
  }
  
  .splash-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
  }
  
  .splash-acknowledgment {
    margin: 1.5rem 0 1rem;
    padding: 1rem;
  }
  
  .acknowledgment-checkbox {
    gap: 0.8rem;
  }
  
  .acknowledgment-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .splash-enter-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    width: auto;
    min-width: 200px;
  }

  header {
    padding: 1rem;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }
  
  .search-and-ai-container {
    flex-direction: row;
    gap: 1rem;
    max-width: 95%;
  }
  
  /* Specialty selector on mobile */
  .specialty-selector {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
  }
  
  .specialty-option {
    padding: 0.5rem 0.8rem;
    min-width: 80px;
  }
  
  .specialty-text {
    font-size: 0.85rem;
  }
  
  /* Hide sidebars only on very small mobile screens */
  
  .tabs.diagnostic-tabs {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(4, 1fr) !important;
    gap: 0.5rem;
  }
  
  .interventional-tabs {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 0.5rem;
  }
  
  .tab {
    padding: 1rem 0.5rem;
    height: 70px;
  }
  
  .tab h2 {
    font-size: 0.85rem;
  }
  
  .content {
    max-width: 95%;
    padding: 2rem 1rem;
    margin: 1rem auto;
  }
  
  .search-results {
    padding: 0 1rem;
  }
  
  .search-result-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  /* Hide sidebars on very small screens */
  .floating-sidebar {
    display: none !important;
  }
  
  .tabs.diagnostic-tabs {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(6, 1fr) !important;
  }
  
  .interventional-tabs {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
  }
  
  .search-and-ai-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .ai-button {
    width: 80px;
    border-radius: 16px;
  }
}

/* Light Theme */
[data-theme="light"] {
  background: #f5f5f5;
  color: var(--night);
}

[data-theme="light"] body {
  background: #f5f5f5;
  color: var(--night);
}

[data-theme="light"] header {
  background: #f5f5f5;
  border-bottom-color: rgba(34, 191, 141, 0.2);
}

[data-theme="light"] .hero {
  background: #f5f5f5;
}

[data-theme="light"] .hero h1 {
  color: var(--night);
}

[data-theme="light"] .tab {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  color: var(--night);
  box-shadow: 
    0 1px 2px rgba(34, 191, 141, 0.2),
    0 1px 3px 1px rgba(34, 191, 141, 0.1);
}

[data-theme="light"] .tab h2 {
  color: var(--night);
}

[data-theme="light"] .tab.active {
  background: linear-gradient(145deg, rgba(34, 191, 141, 0.1), rgba(48, 250, 181, 0.05));
  box-shadow: 
    0 4px 4px rgba(34, 191, 141, 0.2),
    0 8px 12px 6px rgba(34, 191, 141, 0.1),
    0 0 30px rgba(34, 191, 141, 0.15);
}

[data-theme="light"] .tab.active h2 {
  color: var(--jungle-green);
}

[data-theme="light"] .tab:hover h2 {
  color: var(--jungle-green);
}

[data-theme="light"] .content {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  color: var(--night);
  box-shadow: 
    0 4px 4px rgba(34, 191, 141, 0.2),
    0 8px 12px 6px rgba(34, 191, 141, 0.1),
    0 0 40px rgba(34, 191, 141, 0.08);
}

[data-theme="light"] .content h2 {
  color: var(--jungle-green);
  border-bottom-color: var(--jungle-green);
}

[data-theme="light"] .content a {
  color: var(--night);
}

[data-theme="light"] .content a:hover {
  color: var(--jungle-green);
}

[data-theme="light"] .tabs {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 
    0 2px 4px -1px rgba(34, 191, 141, 0.1),
    0 4px 5px 0px rgba(34, 191, 141, 0.05),
    0 1px 10px 0px rgba(34, 191, 141, 0.03);
}

[data-theme="light"] .content li {
  background: rgba(248, 249, 250, 0.8);
  box-shadow: 
    0 1px 2px rgba(34, 191, 141, 0.15),
    0 1px 3px 1px rgba(34, 191, 141, 0.08);
}

[data-theme="light"] .content li:hover {
  background: rgba(34, 191, 141, 0.08);
  box-shadow: 
    0 2px 3px rgba(34, 191, 141, 0.2),
    0 4px 8px 3px rgba(34, 191, 141, 0.1),
    0 0 15px rgba(34, 191, 141, 0.15);
}

[data-theme="light"] .search-container {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(34, 191, 141, 0.4);
}

[data-theme="light"] .search-container input {
  color: var(--night);
}

[data-theme="light"] .search-container input::placeholder {
  color: var(--rich-black);
  opacity: 0.6;
}

[data-theme="light"] .search-icon {
  color: var(--jungle-green);
}

[data-theme="light"] .ai-button {
  border-color: var(--jungle-green);
  color: var(--jungle-green);
  background: rgba(34, 191, 141, 0.1);
}

[data-theme="light"] .ai-button:hover {
  background: var(--jungle-green);
  color: white;
}

[data-theme="light"] .theme-toggle {
  border-color: var(--jungle-green);
  color: var(--jungle-green);
  background: rgba(34, 191, 141, 0.1);
}

[data-theme="light"] .theme-toggle:hover {
  background: var(--jungle-green);
  color: white;
}

[data-theme="light"] .specialty-selector {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(34, 191, 141, 0.3);
}

[data-theme="light"] .specialty-text {
  color: rgba(25, 28, 28, 0.6);
}

[data-theme="light"] .specialty-option:hover .specialty-text {
  color: rgba(25, 28, 28, 0.9);
}

[data-theme="light"] input[type="radio"]:checked + .specialty-option .specialty-text {
  color: white;
}

[data-theme="light"] .specialty-indicator {
  background: linear-gradient(135deg, var(--jungle-green), var(--aquamarine));
}

[data-theme="light"] .search-result-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  box-shadow: 
    0 1px 2px rgba(34, 191, 141, 0.2),
    0 2px 6px 2px rgba(34, 191, 141, 0.1);
}

[data-theme="light"] .search-result-path {
  color: var(--jungle-green);
}

[data-theme="light"] .search-result-title {
  color: var(--night);
}

[data-theme="light"] .search-result-description {
  color: var(--rich-black);
}

[data-theme="light"] footer {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  box-shadow: 
    0 -2px 3px rgba(34, 191, 141, 0.2),
    0 -4px 8px 3px rgba(34, 191, 141, 0.1),
    0 0 30px rgba(34, 191, 141, 0.05);
}

[data-theme="light"] footer p {
  color: var(--rich-black);
}

[data-theme="light"] .privacy-link {
  color: var(--jungle-green) !important;
}