/* ==========================================
   AuraHealth - CSS Design System & Layout
   ========================================== */

:root {
  /* Dark Palette System */
  --bg-color: #0b0c10;
  --bg-card: rgba(22, 26, 37, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(112, 0, 255, 0.3);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Theme gradients and highlights */
  --color-primary: #7000ff;
  --color-secondary: #00f2fe;
  --color-danger: #ff4b5c;
  --color-warning: #f59e0b;
  --color-success: #10b981;
  --color-info: #3b82f6;

  --grad-primary: linear-gradient(135deg, #7000ff, #b500ff);
  --grad-sys: linear-gradient(135deg, #ff4b5c, #ff8585);
  --grad-dia: linear-gradient(135deg, #00f2fe, #4facfe);
  --grad-pulse: linear-gradient(135deg, #ec4899, #f43f5e);
  --grad-normal: linear-gradient(135deg, #10b981, #059669);
  --grad-stage1: linear-gradient(135deg, #f59e0b, #d97706);
  --grad-stage2: linear-gradient(135deg, #ef4444, #b91c1c);

  /* Shadows and filters */
  --glow-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glow-primary: 0 0 15px rgba(112, 0, 255, 0.4);
}

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

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

h1, h2, h3, h4, h5, h6, .brand {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Ambient glow blobs */
.ambient-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  top: 10%;
  left: 5%;
  background: var(--color-primary);
}

.glow-2 {
  bottom: 15%;
  right: 10%;
  background: var(--color-secondary);
}

.glow-3 {
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-danger);
  width: 300px;
  height: 300px;
  opacity: 0.08;
}

/* Glassmorphism Panel styles */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--glow-shadow);
  border-radius: 16px;
}

/* Screen Transitions */
.screen-container {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
  position: relative;
}

.screen-container.active {
  display: block;
  opacity: 1;
}

/* ==========================================
   AUTH SCREEN STYLES
   ========================================== */

#auth-screen {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#auth-screen.active {
  display: flex;
}

.auth-card {
  width: 100%;
  max-width: 450px;
  padding: 40px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.auth-card:hover {
  border-color: var(--border-highlight);
}

.auth-header {
  text-align: center;
  margin-bottom: 35px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pulse-icon {
  color: var(--color-danger);
  animation: pulse 1.6s infinite alternate;
  filter: drop-shadow(0 0 5px rgba(255, 75, 92, 0.6));
  -webkit-text-fill-color: var(--color-danger); /* bypass text-fill-color */
}

@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 10px;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-toggle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 25px;
}

.auth-toggle a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-toggle a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Form Styling */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group label i {
  margin-right: 6px;
  color: var(--text-muted);
}

.form-group label small {
  color: var(--text-muted);
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(112, 0, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.color-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.dot-sys { background: var(--color-danger); }
.dot-dia { background: var(--color-secondary); }
.dot-pulse { background: #ec4899; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(112, 0, 255, 0.6);
}

.btn-gradient {
  background: linear-gradient(135deg, #7000ff, #00f2fe);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 25px rgba(0, 242, 254, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-text {
  background: transparent;
  color: var(--text-secondary);
  padding: 4px 8px;
}

.btn-text:hover {
  color: var(--text-primary);
}

.error-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin-top: 20px;
  color: #fca5a5;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hidden {
  display: none !important;
}

/* ==========================================
   DASHBOARD SCREEN STYLES
   ========================================== */

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  margin: 20px auto;
  width: calc(100% - 80px);
  max-width: 1400px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Content Layout */
.dashboard-content {
  max-width: 1400px;
  margin: 0 auto 50px;
  padding: 0 40px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stats-card {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.card-systolic::before { background: var(--color-danger); }
.card-diastolic::before { background: var(--color-secondary); }
.card-pulse::before { background: #ec4899; }
.card-logs::before { background: var(--color-primary); }

.stats-info {
  display: flex;
  flex-direction: column;
}

.stats-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-value {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 5px 0;
}

.stats-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stats-icon {
  font-size: 1.8rem;
  opacity: 0.25;
}

.status-indicator {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Grid Layout */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
}

@media (max-width: 1024px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
}

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

.card-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header h2 i {
  color: var(--color-secondary);
}

.card-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Upload zone */
.upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(0, 0, 0, 0.15);
}

.upload-zone:hover {
  border-color: var(--color-secondary);
  background: rgba(0, 242, 254, 0.03);
}

.file-input-hidden {
  display: none;
}

.cloud-icon {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  transition: color 0.3s, transform 0.3s;
}

.upload-zone:hover .cloud-icon {
  color: var(--color-secondary);
  transform: translateY(-5px);
}

.main-upload-text {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.main-upload-text span {
  color: var(--color-secondary);
  text-decoration: underline;
}

.sub-upload-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Uploading/Scanner Loader Overlay */
.scanner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 12, 16, 0.9);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scanner-spinner-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.scanner-circle {
  width: 100%;
  height: 100%;
  border: 3px solid rgba(112, 0, 255, 0.15);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

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

.scanner-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  box-shadow: 0 0 10px var(--color-secondary);
  animation: scan 2s infinite ease-in-out;
}

@keyframes scan {
  0%, 100% { top: 10%; }
  50% { top: 90%; }
}

.scanning-sparkle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: var(--color-secondary);
  animation: bounce 1.5s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.scanning-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.scanning-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Image preview container */
.image-preview-box {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  background: #000;
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btn-remove-img {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-remove-img:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
}

/* OCR Badge notification */
.ocr-badge {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 10px;
  border-radius: 8px;
  color: #a5f3fc;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

/* SVG Chart styles */
.chart-container {
  height: 200px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state {
  text-align: center;
  padding: 30px 10px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.empty-state p {
  font-size: 0.9rem;
}

.chart-visual {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#trend-svg {
  flex-grow: 1;
  width: 100%;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
  stroke-dasharray: 4, 4;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.color-sys { background: var(--color-danger); }
.color-dia { background: var(--color-secondary); }

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.badge-accent {
  background: rgba(112, 0, 255, 0.2);
  color: #c084fc;
}

/* Records List History */
.records-list-wrapper {
  max-height: 480px;
  overflow-y: auto;
}

.records-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.record-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.record-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

/* BP severity borders */
.record-card.normal { border-left: 4px solid var(--color-success); }
.record-card.elevated { border-left: 4px solid var(--color-warning); }
.record-card.stage1 { border-left: 4px solid #f59e0b; }
.record-card.stage2 { border-left: 4px solid var(--color-danger); }

.record-bp-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bp-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.record-card.normal .bp-circle { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.record-card.elevated .bp-circle { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.record-card.stage1 .bp-circle { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.record-card.stage2 .bp-circle { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.bp-subtext {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 1px;
}

.record-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bp-values-label {
  font-size: 1rem;
  font-weight: 600;
}

.bp-values-label .pulse-val {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: 8px;
}

.bp-values-label .pulse-val i {
  color: var(--color-danger);
}

.record-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.record-meta i {
  font-size: 0.7rem;
}

.record-notes {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 3px;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Image Thumbnail on Record List Card */
.record-thumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  cursor: zoom-in;
}

.record-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.record-thumb:hover img {
  transform: scale(1.1);
}

.record-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-action {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.btn-action.btn-edit:hover {
  color: var(--color-secondary);
  background: rgba(0, 242, 254, 0.1);
}

.btn-action.btn-delete:hover {
  color: var(--color-danger);
  background: rgba(255, 75, 92, 0.1);
}

/* Notification Toast */
.notification-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: rgba(22, 26, 37, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 14px 24px;
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.notification-toast.error {
  border-color: rgba(239, 68, 68, 0.3);
}

.notification-toast.error .info-icon {
  color: var(--color-danger);
}

.info-icon {
  color: var(--color-success);
  font-size: 1.15rem;
}

/* Google Auth Button Styles */
.auth-google-container {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.btn-google {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.google-logo {
  width: 20px;
  height: 20px;
  display: block;
}

/* ==========================================
   INTEGRATED SCANNER STYLES
   ========================================== */
.integrated-scanner-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.integrated-scanner-wrapper .upload-zone {
  padding: 24px 15px;
  border-radius: 10px;
  border-style: dashed;
}

.integrated-scanner-wrapper .camera-upload-icon {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.3s, transform 0.3s;
}

.integrated-scanner-wrapper .upload-zone:hover .camera-upload-icon {
  color: var(--color-secondary);
  transform: translateY(-3px) scale(1.05);
}

.integrated-scanner-wrapper .scanner-overlay {
  border-radius: 10px;
}

/* ==========================================
   LANGUAGE SWITCHER STYLES
   ========================================== */
.lang-selector, .auth-lang-selector {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
  width: fit-content;
}

.auth-lang-selector {
  margin: 0 auto 25px auto;
}

.btn-lang {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Outfit', sans-serif;
}

.btn-lang.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--glow-primary);
}

.btn-lang:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================
   MEDICAL TOOLTIP STYLES
   ========================================== */
.medical-info-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
  transition: color 0.2s ease;
}

.medical-info-icon:hover {
  color: var(--color-secondary);
}

.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  width: 240px;
  background-color: rgba(22, 26, 37, 0.95);
  border: 1px solid var(--border-highlight);
  color: var(--text-primary);
  text-align: left;
  border-radius: 8px;
  padding: 10px 14px;
  position: absolute;
  z-index: 100;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(5px) scale(0.95);
  opacity: 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease, visibility 0.2s;
  pointer-events: none;
  white-space: normal;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(22, 26, 37, 0.95) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
