/* ============================================================
   مركز الشفاء الطبي — Ocean Trust Design System
   ============================================================ */

:root {
  --radius: 0.875rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);

  --background: #fbfdfd;
  --foreground: #0d2b30;

  --card: #ffffff;

  /* ألوان مطابقة لشعار مركز الشفاء الطبي (تركواز/سماوي وبرتقالي) */
  --primary: #067a86;
  --primary-dark: #045862;
  --primary-foreground: #fbfdfd;

  --teal: #00a0b0;
  --teal-dark: #007e8c;

  --gold: #f0932b;

  --emergency: #e0402c;
  --emergency-foreground: #ffffff;

  --secondary: #e5f5f6;
  --secondary-foreground: #067a86;

  --muted: #e5f5f6;
  --muted-foreground: #5c7a7d;

  --accent: #fdf1e2;
  --accent-foreground: #b8630f;

  --border: #dcebec;

  --sidebar: #063e46;
  --sidebar-foreground: #eef4f6;
  --sidebar-accent: #0a5560;

  --gradient-hero: linear-gradient(135deg, #045862 0%, #067a86 50%, #14a6b6 100%);
  --gradient-primary: linear-gradient(135deg, #067a86 0%, #0b95a3 100%);
  --gradient-teal: linear-gradient(135deg, #0f97a6 0%, #4fc9d6 100%);

  --shadow-soft: 0 2px 12px -4px rgba(6, 122, 134, 0.14);
  --shadow-card: 0 6px 24px -8px rgba(6, 122, 134, 0.16);
  --shadow-elegant: 0 20px 50px -16px rgba(6, 122, 134, 0.30);

  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Cairo", "Tajawal", system-ui, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

html, body {
  width: 100%;
  max-width: 100%;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container-page {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (max-width: 767px) {
  .container-page {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

.bg-hero { background-image: var(--gradient-hero); }
.bg-gradient-primary { background-image: var(--gradient-primary); }
.bg-gradient-teal { background-image: var(--gradient-teal); }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-card { box-shadow: var(--shadow-card); }
.shadow-elegant { box-shadow: var(--shadow-elegant); }

.text-primary-c { color: var(--primary); }
.text-teal-c { color: var(--teal); }
.text-muted-c { color: var(--muted-foreground); }
.bg-primary-c { background-color: var(--primary); }
.bg-teal-c { background-color: var(--teal); }
.bg-secondary-c { background-color: var(--secondary); }
.bg-gold-c { background-color: var(--gold); }
.bg-emergency-c { background-color: var(--emergency); }

/* ---------- Buttons ---------- */
.btn-hospital {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}
.btn-hospital-lg { padding: 0.9rem 1.75rem; font-size: 1rem; }
.btn-hospital-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn-primary-c {
  background-image: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}
.btn-primary-c:hover { transform: translateY(-1px); filter: brightness(1.06); color: var(--primary-foreground); }
.btn-teal-c {
  background-color: var(--teal);
  color: #fff;
}
.btn-teal-c:hover { background-color: var(--teal-dark); color: #fff; }
.btn-outline-light-c {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}
.btn-outline-light-c:hover { background-color: rgba(255,255,255,0.16); color: #fff; }
.btn-block-c { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 253, 253, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar {
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
}
.topbar .container-page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 2.25rem;
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.emergency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--emergency);
  color: var(--emergency-foreground);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-weight: 700;
}
.topbar a { color: inherit; }
.topbar a:hover { color: var(--teal); }
.topbar-phone { display: none; align-items: center; gap: 0.35rem; }
.topbar-addr { display: none; align-items: center; gap: 0.35rem; }
@media (min-width: 576px) { .topbar-phone { display: inline-flex; } }
@media (min-width: 768px) { .topbar-addr { display: flex; } }

.mainnav {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 3.5rem; width: 3.5rem; object-fit: contain; flex-shrink: 0; }
.brand-title { font-size: 1rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.brand-sub { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.05em; color: var(--teal); }

.mainnav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 992px) { .mainnav-links { display: flex; } }
.mainnav-links a {
  position: relative;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(28, 35, 64, 0.8);
  transition: var(--transition-base);
}
.mainnav-links a:hover { color: var(--primary); }
.mainnav-links a.active { color: var(--teal); }
.mainnav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  border-radius: 999px;
  background-color: var(--teal);
}
.mainnav-cta { display: none; }
@media (min-width: 992px) { .mainnav-cta { display: block; } }

.navbar-toggle-btn {
  display: grid;
  place-items: center;
  height: 2.5rem;
  width: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
}
@media (min-width: 992px) { .navbar-toggle-btn { display: none; } }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--background);
}
.mobile-menu.open { display: block; }
@media (min-width: 992px) { .mobile-menu { display: none !important; } }
.mobile-menu .container-page {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.mobile-menu a {
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(28, 35, 64, 0.8);
}
.mobile-menu a.active { background-color: var(--secondary); color: var(--primary); }
.mobile-menu a:hover { background-color: var(--secondary); }

/* ---------- Hero ---------- */
.hero-section { position: relative; overflow: hidden; color: var(--primary-foreground); }
.hero-grid {
  display: grid;
  gap: 2.5rem;
  padding: 4rem 0;
  align-items: center;
}
@media (min-width: 992px) {
  .hero-grid { grid-template-columns: 1fr 1fr; padding: 6rem 0; }
}
.hero-badge-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.hero-badge-row img {
  height: 4.75rem; width: 4.75rem; border-radius: 999px;
  background: rgba(255,255,255,0.95); padding: 0.2rem; box-shadow: var(--shadow-soft);
}
.hero-pill {
  border-radius: 999px; background-color: rgba(255,255,255,0.14);
  padding: 0.4rem 1rem; font-size: 0.75rem; font-weight: 700; color: #fff;
  backdrop-filter: blur(4px);
}
.hero-title { font-size: 2.25rem; font-weight: 800; line-height: 1.2; }
@media (min-width: 768px) { .hero-title { font-size: 3.5rem; } }
.hero-title .accent { color: var(--teal); }
.hero-text { margin-top: 1.25rem; max-width: 36rem; font-size: 1rem; line-height: 2; color: rgba(251,253,253,0.85); }
@media (min-width: 768px) { .hero-text { font-size: 1.125rem; } }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-image-wrap {
  position: relative; overflow: hidden; border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-elegant); outline: 1px solid rgba(255,255,255,0.1);
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(34,48,90,0.4), transparent);
}

.quick-actions-wrap { position: relative; margin-top: -0.5rem; padding-bottom: 4rem; }
.quick-actions {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
.quick-actions .quick-action:last-child { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .quick-actions { grid-template-columns: repeat(5, 1fr); }
  .quick-actions .quick-action:last-child { grid-column: auto; }
}
.quick-action {
  display: flex; align-items: center; gap: 0.75rem; border-radius: var(--radius-2xl);
  background: #fff; padding: 1rem; color: var(--primary); box-shadow: var(--shadow-card);
  transition: var(--transition-base); border: none; text-align: right; cursor: pointer; width: 100%;
  font-family: inherit;
}
.quick-action:hover { transform: translateY(-2px); }
.quick-action-icon {
  display: grid; place-items: center; height: 2.75rem; width: 2.75rem; border-radius: 0.75rem;
  color: #fff; flex-shrink: 0; font-size: 1.15rem;
}
.quick-action-label { font-size: 0.875rem; font-weight: 700; line-height: 1.25; }

/* ---------- Ads ---------- */
.ads-section { margin-bottom: 3rem; }
.ads-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .ads-grid { grid-template-columns: repeat(2, 1fr); } .ads-grid-single { grid-template-columns: 1fr; } }
.ads-card {
  position: relative; display: block; border-radius: var(--radius-2xl); overflow: hidden;
  box-shadow: var(--shadow-card); background: #fff; color: inherit; text-decoration: none;
  transition: var(--transition-base);
}
.ads-card:hover { transform: translateY(-2px); }
.ads-card img { display: block; width: 100%; height: 100%; max-height: 260px; object-fit: cover; }
.ads-card-title {
  position: absolute; inset-inline: 0; bottom: 0; padding: 0.75rem 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), rgba(0,0,0,0)); color: #fff;
  font-weight: 700; font-size: 0.95rem;
}

/* ---------- Stats ---------- */
.stats-section { position: relative; z-index: 1; margin-top: -2rem; margin-bottom: 4rem; }
.stats-card {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
  border-radius: var(--radius-3xl); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .stats-card { grid-template-columns: repeat(4, 1fr); padding: 2rem; } }
.stat-item { display: flex; align-items: center; gap: 0.75rem; }
.stat-icon { display: grid; place-items: center; height: 3rem; width: 3rem; border-radius: 0.75rem; background: var(--secondary); color: var(--teal); font-size: 1.35rem; flex-shrink: 0; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.75rem; color: var(--muted-foreground); }

/* ---------- Section title ---------- */
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title h2 { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
@media (min-width: 768px) { .section-title h2 { font-size: 1.875rem; } }
.section-title p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.section-title .bar { margin: 0.75rem auto 0; height: 4px; width: 4rem; border-radius: 999px; background-color: var(--teal); }

/* ---------- Cards: rooms / departments / doctors ---------- */
.card-hospital {
  overflow: hidden; border-radius: var(--radius-2xl); border: 1px solid var(--border);
  background: var(--card); box-shadow: var(--shadow-soft); transition: var(--transition-base); height: 100%;
}
.card-hospital:hover { box-shadow: var(--shadow-card); }
.card-hospital.lift:hover { transform: translateY(-4px); }
.card-img-wrap { overflow: hidden; aspect-ratio: 4 / 3; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card-hospital:hover .card-img-wrap img { transform: scale(1.05); }
.card-body-c { padding: 1.1rem; }
.card-body-c h3 { font-size: 1rem; font-weight: 700; color: var(--primary); }
.card-body-c p { margin-top: 0.4rem; font-size: 0.8rem; color: var(--muted-foreground); }

.status-pill {
  display: inline-block; border-radius: 999px; padding: 0.25rem 0.75rem;
  font-size: 0.7rem; font-weight: 700; color: #fff;
}
.status-pill.gold { background-color: var(--gold); }
.status-pill.teal { background-color: var(--teal); }
.status-pill.emergency { background-color: var(--emergency); }
.status-pill-abs { position: absolute; top: 0.75rem; right: 0.75rem; box-shadow: var(--shadow-soft); }

.doctor-card { text-align: center; }
.doctor-card .card-img-wrap { aspect-ratio: 1 / 1; background: var(--secondary); }

/* ---------- Sections & CTA ---------- */
.section-alt { background-color: rgba(238, 244, 246, 0.4); padding: 5rem 0; }
.section-pad { padding: 5rem 0; }
.cta-box {
  overflow: hidden; border-radius: var(--radius-3xl); background-image: var(--gradient-primary);
  padding: 2rem; color: var(--primary-foreground); box-shadow: var(--shadow-elegant);
}
@media (min-width: 768px) { .cta-box { padding: 3rem; } }
.cta-box .row-flex {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; justify-content: space-between;
}
@media (min-width: 768px) { .cta-box .row-flex { flex-direction: row; align-items: center; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background-image: var(--gradient-hero); color: var(--primary-foreground); padding: 4rem 0; }
@media (min-width: 768px) { .page-hero { padding: 5rem 0; } }
.page-hero .eyebrow {
  display: inline-block; margin-bottom: 0.75rem; border-radius: 999px; background: rgba(255,255,255,0.14);
  padding: 0.3rem 1rem; font-size: 0.75rem; font-weight: 700; color: #fff;
}
.page-hero h1 { font-size: 1.875rem; font-weight: 800; }
@media (min-width: 768px) { .page-hero h1 { font-size: 3rem; } }
.page-hero p { margin-top: 1rem; max-width: 42rem; font-size: 0.875rem; line-height: 1.75; color: rgba(251,253,253,0.8); }
@media (min-width: 768px) { .page-hero p { font-size: 1rem; } }

/* ---------- Forms ---------- */
.form-label-c { font-size: 0.85rem; font-weight: 700; color: var(--foreground); margin-bottom: 0.35rem; display: block; }
.form-control-c {
  width: 100%; border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.6rem 0.85rem;
  font-family: inherit; font-size: 0.9rem; background: #fff; color: var(--foreground);
  transition: var(--transition-base);
}
.form-control-c:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(79,184,196,0.15); }
textarea.form-control-c { resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 5rem; background-color: var(--primary); color: var(--primary-foreground); }
.footer-grid { display: grid; gap: 2.5rem; padding: 3.5rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand .logo-box {
  display: grid; place-items: center; height: 4.75rem; width: 4.75rem; border-radius: 1rem;
  background: #fff; padding: 0.25rem; box-shadow: var(--shadow-soft);
}
.footer-brand .logo-box img { height: 100%; width: 100%; object-fit: contain; }
.footer-title { font-size: 1rem; font-weight: 800; }
.footer-sub { font-size: 0.66rem; letter-spacing: 0.05em; color: var(--teal); }
.footer-desc { font-size: 0.85rem; line-height: 1.75; color: rgba(251,253,253,0.75); }
.footer-social { margin-top: 1.25rem; display: flex; gap: 0.5rem; }
.footer-social a {
  display: grid; place-items: center; height: 2.25rem; width: 2.25rem; border-radius: 999px;
  background-color: rgba(255,255,255,0.1); transition: var(--transition-base); color: #fff;
}
.footer-social a:hover { background-color: var(--teal); color: var(--primary); }
.footer-col h4 { margin-bottom: 1rem; font-size: 0.875rem; font-weight: 700; color: var(--teal); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; font-size: 0.875rem; color: rgba(251,253,253,0.8); }
.footer-col li a:hover { color: var(--teal); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.75rem; font-size: 0.875rem; color: rgba(251,253,253,0.8); }
.footer-contact-item i { color: var(--teal); margin-top: 0.2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem 0; text-align: center; font-size: 0.75rem; color: rgba(251,253,253,0.6); }

/* ---------- Booking Modal ---------- */
.modal-hospital .modal-content { border-radius: var(--radius-2xl); border: none; }
.modal-hospital .modal-title { color: var(--primary); font-weight: 800; display: flex; align-items: center; gap: 0.5rem; }
.modal-hospital .modal-title i { color: var(--teal); }
.preset-note { border-radius: 0.6rem; background-color: var(--secondary); padding: 0.75rem; font-size: 0.875rem; color: var(--primary); }

/* ---------- Toast ---------- */
.toast-hospital {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--primary); color: #fff; padding: 0.85rem 1.5rem; border-radius: 0.75rem;
  box-shadow: var(--shadow-elegant); font-size: 0.875rem; font-weight: 700; z-index: 2000;
  opacity: 0; pointer-events: none; transition: all 0.3s ease; display: flex; align-items: center; gap: 0.5rem;
}
.toast-hospital.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-hospital.error { background-color: var(--emergency); }

/* ---------- Services & values ---------- */
.icon-box {
  display: grid; place-items: center; height: 3.5rem; width: 3.5rem; border-radius: 1rem;
  background-image: var(--gradient-teal); color: var(--primary); font-size: 1.5rem; margin-bottom: 1rem;
  transition: var(--transition-base);
}
.service-card:hover .icon-box { transform: scale(1.1); }
.icon-box-solid {
  display: grid; place-items: center; height: 3rem; width: 3rem; border-radius: 0.75rem;
  background-image: var(--gradient-primary); color: #fff; font-size: 1.25rem; flex-shrink: 0;
}

/* ---------- Departments split rows ---------- */
.dept-row { display: grid; gap: 2rem; align-items: center; margin-bottom: 2.5rem; }
@media (min-width: 992px) { .dept-row { grid-template-columns: 1fr 1fr; } }
.dept-row .dept-img { overflow: hidden; border-radius: var(--radius-3xl); box-shadow: var(--shadow-card); }
.dept-row .dept-img img { width: 100%; height: 100%; object-fit: cover; }
.dept-row.reverse .dept-img { order: 2; }
@media (max-width: 991px) { .dept-row.reverse .dept-img { order: 0; } }
.dept-tag { display: inline-block; margin-bottom: 0.5rem; border-radius: 999px; background: var(--secondary); padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 700; color: var(--teal); }
.dept-list { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 0.5rem; font-size: 0.875rem; color: rgba(28,35,64,0.8); }
.dept-list li { display: flex; align-items: center; gap: 0.5rem; }
.dept-list li::before { content: ""; height: 6px; width: 6px; border-radius: 999px; background-color: var(--teal); flex-shrink: 0; }

/* ---------- Contact info cards ---------- */
.contact-info-card { display: flex; align-items: flex-start; gap: 1rem; border-radius: var(--radius-2xl); border: 1px solid var(--border); background: var(--card); padding: 1.25rem; box-shadow: var(--shadow-soft); margin-bottom: 1rem; }
.contact-info-card h3 { font-size: 0.875rem; font-weight: 700; color: var(--primary); }
.contact-info-card p { margin: 0.15rem 0 0; font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-2xl); border: 1px solid var(--border); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-soft); transition: var(--transition-base); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.news-cat { align-self: flex-start; border-radius: 999px; background: var(--secondary); padding: 0.25rem 0.75rem; font-size: 0.7rem; font-weight: 700; color: var(--teal); }
.news-card h3 { margin-top: 0.75rem; font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.news-card p { margin-top: 0.5rem; flex: 1; font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }
.news-date { margin-top: 1rem; display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--muted-foreground); }

.admin-card { border-radius: var(--radius-2xl); border: 1px solid var(--border); background: var(--card); padding: 1.25rem; box-shadow: var(--shadow-soft); }

/* Utility */
.text-white-c { color: #fff; }
.mt-n2 { margin-top: -0.5rem; }
.gap-3c { gap: 0.75rem; }
.flex-wrap-c { display: flex; flex-wrap: wrap; }

/* ---------- Lab result / medication reply boxes ---------- */
.lab-result-box {
  border-radius: var(--radius-xl, 0.85rem);
  padding: 1rem 1.1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  border: 1px solid var(--border);
  background: var(--secondary);
}
.lab-result-box.success { background: rgba(58, 154, 109, 0.08); border-color: rgba(58, 154, 109, 0.35); }
.lab-result-box.warn { background: rgba(217, 165, 32, 0.1); border-color: rgba(217, 165, 32, 0.35); color: #7a5b06; }
.lab-result-box.error { background: rgba(217, 80, 62, 0.08); border-color: rgba(217, 80, 62, 0.35); color: var(--emergency); }
.lab-result-item {
  border-top: 1px dashed var(--border);
  padding-top: 0.6rem;
  margin-top: 0.6rem;
}
.lab-result-item:first-of-type { border-top: none; margin-top: 0.4rem; padding-top: 0; }
.lab-result-item-title { font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }
.lab-result-item.ready .lab-result-item-title { color: var(--teal); }
.lab-result-item.pending .lab-result-item-title { color: var(--gold); }
.lab-result-item.cancelled .lab-result-item-title { color: var(--emergency); }
.lab-result-item-status { font-size: 0.78rem; color: var(--muted-foreground); margin-top: 0.15rem; }
.lab-result-item-text { margin-top: 0.4rem; white-space: pre-wrap; }
.lab-result-file-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.5rem; font-weight: 700; color: var(--primary); }
