/* ==========================================================================
   modern.css — Modern Clinical Design System for BloodLab
   ========================================================================== */

:root {
  /* Brand Palette */
  --brand-navy: #0f172a;
  --brand-navy-card: #1e293b;
  --brand-primary: #0284c7;
  --brand-primary-hover: #0369a1;
  --brand-primary-light: #e0f2fe;
  --brand-teal: #0d9488;
  --brand-cyan: #06b6d4;
  --brand-accent: #38bdf8;

  /* Surfaces & Neutrals */
  --surface-bg: #eaeff5;
  --surface-card: #ffffff;
  --surface-subtle: #e2e8f0;
  --surface-hover: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-subtle: #cbd5e1;
  --border-focus: #38bdf8;

  /* Status Colors */
  --status-success-bg: #ecfdf5;
  --status-success-text: #059669;
  --status-success-border: #a7f3d0;

  --status-warning-bg: #fffbeb;
  --status-warning-text: #b45309;
  --status-warning-border: #fde68a;

  --status-danger-bg: #fff1f2;
  --status-danger-text: #e11d48;
  --status-danger-border: #fecdd3;

  --status-info-bg: #f0f9ff;
  --status-info-text: #0284c7;
  --status-info-border: #bae6fd;

  /* Elevation & Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.09), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset Tweaks */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--surface-bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. SVG Icon Utilities
   ========================================================================== */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke-width: 2px;
}
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

.icon-primary { color: var(--brand-primary); }
.icon-success { color: var(--status-success-text); }
.icon-warning { color: var(--status-warning-text); }
.icon-danger { color: var(--status-danger-text); }
.icon-muted { color: var(--text-muted); }

/* ==========================================================================
   2. Modern Header & Topbar Navigation (Balanced Medical Ocean Slate)
   ========================================================================== */
.topbar {
  background: linear-gradient(90deg, #173b64 0%, #1e4570 50%, #17385c 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 3px 12px rgba(15, 35, 60, 0.15);
  position: sticky;
  top: 0;
  z-index: 999;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 32px !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Brand container: clean white pill for Dr's Lab logo */
.brand-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 5px 16px 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}
.brand-container:hover {
  transform: scale(1.02);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
.brand-logo-img {
  height: 38px;
  width: auto;
  display: block;
}
.brand-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  border-left: 1px solid #e2e8f0;
  padding-left: 10px;
  margin-left: 2px;
}
.brand-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -0.2px;
}
.brand-sarl {
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
}
.brand-subtitle {
  font-size: 10.5px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.1px;
}
@media (max-width: 900px) {
  .brand-subtitle { display: none; }
}
@media (max-width: 550px) {
  .brand-text-block { display: none; }
}

/* Topbar Navigation */
.topbar nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  float: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: #e2e8f0 !important;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--trans-fast);
  margin-right: 0 !important;
}
.nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.14);
}
.nav-link.active {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #7dd3fc !important;
  font-weight: 600;
}

/* Navigation Dropdown Menus */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: #e2e8f0;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans-fast);
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}
.nav-dropdown-trigger .icon-caret {
  color: #93c5fd;
  transition: transform var(--trans-fast);
}
.nav-dropdown.open .nav-dropdown-trigger .icon-caret {
  transform: rotate(180deg);
  color: #ffffff;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #cbd5e1;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.18), 0 4px 10px rgba(15, 23, 42, 0.06);
  padding: 6px;
  z-index: 10000;
  display: none;
  animation: dropdownFadeIn 0.15s ease-out;
}
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #334155 !important;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--trans-fast);
}
.nav-dropdown-item:hover {
  background: var(--surface-subtle);
  color: var(--brand-primary) !important;
}
.nav-dropdown-item.danger:hover {
  background: var(--status-danger-bg);
  color: var(--status-danger-text) !important;
}

/* Staff Profile Pill */
.staff-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  padding: 4px 12px 4px 6px;
  margin-left: 12px;
}
.staff-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.staff-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.staff-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}
.staff-role {
  font-size: 10.5px;
  color: #bae6fd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.logout-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecdd3;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  margin-left: 6px;
  transition: all var(--trans-fast);
}
.logout-pill-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  background: #173b64;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.mobile-nav-drawer.open {
  display: block;
}
.mobile-nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #93c5fd;
  margin: 12px 0 6px;
  font-weight: 700;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: #e2e8f0;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 14px;
}
.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

@media (max-width: 900px) {
  .topbar .wrap {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 16px !important;
  }
  .topbar nav, .staff-profile-pill { display: none !important; }
  .mobile-nav-toggle { display: inline-flex !important; align-items: center; gap: 6px; }
}

/* ==========================================================================
   3. Full-Width Layout & Card System
   ========================================================================== */
.wrap, main.wrap {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 20px 32px !important;
  margin: 0 !important;
}

.card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  padding: 22px 28px;
  margin: 16px 0;
  transition: box-shadow var(--trans-fast);
}

.card:hover {
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.card-header h2, .card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   4. Dashboard Hero (Medical Ocean Slate) & KPI Metrics
   ========================================================================== */
.dashboard-hero {
  background: linear-gradient(135deg, #173b64 0%, #1e4b7a 50%, #0284c7 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 24px 30px 18px 30px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(23, 59, 100, 0.14);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.hero-slider-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  user-select: none;
}

/* Light shimmer reflection sweeping across the banner */
.hero-slider-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  animation: heroShimmerBeam 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes heroShimmerBeam {
  0%, 30% {
    left: -100%;
  }
  70%, 100% {
    left: 200%;
  }
}

.hero-slider-track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
  cursor: grab;
}

.hero-slider-track.is-dragging {
  cursor: grabbing;
}

/* Badges styling with themed glow and micro-interactions */
.hero-slider-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
}

.hero-slider-item:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 255, 255, 0.24);
  border-color: var(--badge-color, #38bdf8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25),
              0 0 16px var(--badge-glow, rgba(56, 189, 248, 0.5)),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.hero-slider-item .slider-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.25s ease;
}

/* Specific icon micro-animations for living medical aesthetic */
.hero-slider-item[data-icon="droplet"] .slider-icon {
  animation: labPulseDroplet 2.4s ease-in-out infinite;
}

.hero-slider-item[data-icon="heart-pulse"] .slider-icon {
  animation: labHeartBeat 2s ease-in-out infinite;
}

.hero-slider-item[data-icon="dna"] .slider-icon {
  animation: labDnaFloat 4s ease-in-out infinite;
}

.hero-slider-item[data-icon="activity"] .slider-icon {
  animation: labEcgPulse 2s ease-in-out infinite;
}

.hero-slider-item[data-icon="microscope"] .slider-icon {
  animation: labLensZoom 3.5s ease-in-out infinite;
}

.hero-slider-item[data-icon="flask"] .slider-icon {
  animation: labFlaskTilt 3s ease-in-out infinite;
}

@keyframes labPulseDroplet {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(248, 113, 113, 0.4)); }
  50% { transform: scale(1.22); filter: drop-shadow(0 0 8px rgba(248, 113, 113, 0.9)); }
}

@keyframes labHeartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.25); filter: drop-shadow(0 0 8px rgba(251, 113, 133, 0.9)); }
  28% { transform: scale(1); }
  42% { transform: scale(1.18); filter: drop-shadow(0 0 6px rgba(251, 113, 133, 0.7)); }
  56% { transform: scale(1); }
}

@keyframes labDnaFloat {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(14deg) scale(1.12); filter: drop-shadow(0 0 7px rgba(192, 132, 252, 0.8)); }
}

@keyframes labEcgPulse {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 8px rgba(110, 231, 183, 0.95)); }
}

@keyframes labLensZoom {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px) scale(1.12); filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8)); }
}

@keyframes labFlaskTilt {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.dashboard-hero::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-welcome {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 280px;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.hero-pulse-track {
  flex: 1;
  height: 22px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.hero-pulse-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(
    to right,
    rgba(56, 189, 248, 0.5) 0%,
    rgba(56, 189, 248, 0.2) 60%,
    rgba(255, 255, 255, 0.08) 100%
  );
}

.hero-pulse-runner {
  position: absolute;
  left: 0;
  width: 110px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.35) 30%,
    #38bdf8 75%,
    #ffffff 100%
  );
  box-shadow: 0 0 12px #38bdf8, 0 0 24px rgba(56, 189, 248, 0.85);
  animation: heroPulseShoot 5.5s ease-in-out infinite;
  opacity: 0;
}

.hero-pulse-runner::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 18px #38bdf8, 0 0 28px #0284c7;
}

@keyframes heroPulseShoot {
  0%, 12% {
    left: 0;
    opacity: 0;
    transform: scaleX(0.2);
  }
  16% {
    left: 0;
    opacity: 1;
    transform: scaleX(0.7);
  }
  58% {
    left: calc(100% - 90px);
    opacity: 1;
    transform: scaleX(1);
  }
  64%, 100% {
    left: 100%;
    opacity: 0;
    transform: scaleX(0.3);
  }
}

/* Blinking badge every few seconds */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: #e0f2fe;
  width: fit-content;
  animation: heroBadgeBlink 5.5s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

@keyframes heroBadgeBlink {
  0%, 6% {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #e0f2fe;
  }
  12% {
    background: rgba(56, 189, 248, 0.4);
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.85), inset 0 0 8px rgba(56, 189, 248, 0.35);
    color: #ffffff;
  }
  18%, 100% {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #e0f2fe;
  }
}

.hero-badge-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  display: inline-block;
  box-shadow: 0 0 6px #38bdf8;
  animation: pulseDotBlink 5.5s ease-in-out infinite;
}

@keyframes pulseDotBlink {
  0%, 6% {
    opacity: 0.85;
    transform: scale(1);
    box-shadow: 0 0 6px #38bdf8;
  }
  12% {
    opacity: 1;
    transform: scale(1.4);
    box-shadow: 0 0 14px #38bdf8, 0 0 22px #0284c7;
    background: #ffffff;
  }
  18%, 100% {
    opacity: 0.85;
    transform: scale(1);
    box-shadow: 0 0 6px #38bdf8;
    background: #38bdf8;
  }
}

/* Quote of the Day */
.hero-quote-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
  max-width: 900px;
}

.quote-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #7dd3fc;
  white-space: nowrap;
}

.quote-content {
  font-size: 13.5px;
  color: #f1f5f9;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: 0.1px;
}

.quote-author {
  font-size: 12px;
  color: #93c5fd;
  font-weight: 600;
  white-space: nowrap;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.hero-date-badge {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  text-align: center;
  animation: heroDatePulseReact 5.5s ease-in-out infinite;
  transition: all 0.3s ease;
}

@keyframes heroDatePulseReact {
  0%, 56%, 100% {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
  }
  62% {
    border-color: #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.7);
  }
}
.hero-date-day {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}
.hero-date-month {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #bae6fd;
  margin-top: 4px;
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-icon-wrap.cyan { background: #e0f2fe; color: #0284c7; }
.kpi-icon-wrap.emerald { background: #ecfdf5; color: #059669; }
.kpi-icon-wrap.amber { background: #fffbeb; color: #d97706; }
.kpi-icon-wrap.teal { background: #ccfbf1; color: #0d9488; }

.kpi-content {
  flex: 1;
  min-width: 0;
}
.kpi-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.kpi-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}
.kpi-badge.trending { background: #ecfdf5; color: #059669; }
.kpi-badge.alert { background: #fffbeb; color: #b45309; }

/* ==========================================================================
   5. Quick Actions Launcher
   ========================================================================== */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 1024px) {
  .quick-actions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .quick-actions-grid { grid-template-columns: 1fr; }
}

.action-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main) !important;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-fast);
}
.action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.action-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--trans-fast);
}
.action-card:hover .action-icon {
  transform: scale(1.08);
}
.action-icon.blue { background: #e0f2fe; color: #0284c7; }
.action-icon.teal { background: #ccfbf1; color: #0d9488; }
.action-icon.emerald { background: #ecfdf5; color: #059669; }
.action-icon.amber { background: #fffbeb; color: #d97706; }

.action-text {
  flex: 1;
  min-width: 0;
}
.action-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}
.action-desc {
  font-size: 12px;
  color: var(--text-muted);
}
.action-arrow {
  color: var(--text-light);
  transition: transform var(--trans-fast), color var(--trans-fast);
}
.action-card:hover .action-arrow {
  transform: translateX(3px);
  color: var(--brand-primary);
}

/* ==========================================================================
   6. Modern Buttons & Status Badges
   ========================================================================== */
.btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--trans-fast);
  box-sizing: border-box;
}

.btn-primary, .btn.primary {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.2);
}
.btn-primary:hover, .btn.primary:hover {
  background: var(--brand-primary-hover) !important;
  border-color: var(--brand-primary-hover) !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.btn-secondary, .btn.secondary {
  background: #ffffff !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-main) !important;
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover, .btn.secondary:hover {
  background: var(--surface-subtle) !important;
  border-color: #cbd5e1 !important;
}

.btn-danger, .btn.danger {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}
.btn-danger:hover, .btn.danger:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

.btn-sm, .btn.small {
  padding: 6px 11px !important;
  font-size: 12px !important;
  border-radius: var(--radius-sm);
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.status-pill.completed {
  background: var(--status-success-bg);
  color: var(--status-success-text);
  border: 1px solid var(--status-success-border);
}
.status-pill.processing, .status-pill.pending {
  background: var(--status-warning-bg);
  color: var(--status-warning-text);
  border: 1px solid var(--status-warning-border);
}
.status-pill.abnormal {
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
  border: 1px solid var(--status-danger-border);
}

/* Test Chips */
.test-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: var(--brand-primary-light);
  color: var(--brand-primary-hover);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  margin-right: 4px;
}

/* Search bar with icon prefix */
.search-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
}
.search-icon-wrap .icon {
  position: absolute;
  left: 12px;
  color: var(--text-light);
  pointer-events: none;
}
.search-icon-wrap input {
  padding-left: 36px !important;
}

/* Footer Full-Width */
.footer {
  width: 100% !important;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 18px 0;
  margin-top: 40px;
  color: #64748b;
  font-size: 13px;
}
.footer .wrap {
  padding: 0 32px !important;
}

/* ==========================================================================
   7. Modern Button Component System
   ========================================================================== */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1px;
  height: 38px;
  padding: 0 16px !important;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none !important;
  vertical-align: middle;
  transition: all var(--trans-fast);
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  border: 1px solid #0284c7;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.2);
}
.btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.28);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.3);
}

/* Secondary / Outline Button */
.btn.secondary, .btn-secondary {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.btn.secondary:hover, .btn-secondary:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.btn.secondary:active, .btn-secondary:active {
  background: #e2e8f0 !important;
  transform: translateY(0);
}

/* Constructive / Deep Ocean Slate Button */
.btn.btn-ocean, .btn.btn-dark {
  background: linear-gradient(135deg, #173b64 0%, #1e4570 100%) !important;
  color: #ffffff !important;
  border: 1px solid #173b64 !important;
  box-shadow: 0 1px 3px rgba(23, 59, 100, 0.2);
}
.btn.btn-ocean:hover, .btn.btn-dark:hover {
  background: #112d4e !important;
  border-color: #112d4e !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(23, 59, 100, 0.3);
  transform: translateY(-1px);
}

/* Destructive / Danger Button */
.btn.danger, .btn-danger {
  background: #fff1f2 !important;
  color: #e11d48 !important;
  border: 1px solid #fecdd3 !important;
  box-shadow: 0 1px 2px rgba(225, 29, 72, 0.06);
}
.btn.danger:hover, .btn-danger:hover {
  background: #e11d48 !important;
  color: #ffffff !important;
  border-color: #e11d48 !important;
  box-shadow: 0 3px 8px rgba(225, 29, 72, 0.25);
  transform: translateY(-1px);
}
.btn.danger-solid {
  background: #dc2626 !important;
  color: #ffffff !important;
  border: 1px solid #dc2626 !important;
}
.btn.danger-solid:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
}

/* Button Sizes */
.btn.compact, .btn.small, .btn-sm {
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 12.5px !important;
  border-radius: 6px !important;
  gap: 5px !important;
}
.btn.lg, .btn-lg {
  height: 44px !important;
  padding: 0 20px !important;
  font-size: 14.5px !important;
  border-radius: var(--radius-md) !important;
  gap: 8px !important;
}
.btn.wide {
  min-width: 140px;
  justify-content: center;
}

/* Disabled State */
.btn[disabled], .btn.is-disabled, .is-disabled {
  opacity: 0.5 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   8. Table Row Action Dropdown (.dropbtn)
   ========================================================================== */
.dropbtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 5px 11px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  transition: all var(--trans-fast) !important;
}
.dropbtn:hover {
  background: #e0f2fe !important;
  border-color: #7dd3fc !important;
  color: #0284c7 !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15) !important;
  transform: translateY(-1px) !important;
}
.dropbtn:active {
  transform: translateY(0) !important;
}

/* ==========================================================================
   9. Discrete Pagination Controls (.pager)
   ========================================================================== */
.pager {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-top: 16px !important;
}
.pager a, .pager span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 32px !important;
  height: 32px !important;
  padding: 0 10px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: all var(--trans-fast) !important;
}
.pager a {
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
.pager a:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0284c7 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08) !important;
}
.pager span, .pager span.current, .pager span.cursor-default {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.25) !important;
  cursor: default !important;
}
.pager a[disabled], .pager a.is-disabled {
  background: #f8fafc !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  pointer-events: none !important;
  opacity: 0.55 !important;
  box-shadow: none !important;
}
.pager .muted {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
}

/* ==========================================================================
   10. Standard Form Fields & Inputs (Standard Shape, Unaltered Sizes)
   ========================================================================== */
input:not([type]),
input[type="text"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="tel"],
select,
textarea,
.input,
.form-control {
  border: 1px solid var(--border-subtle) !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: var(--text-main) !important;
  font-family: inherit;
  font-size: 13.5px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast), background-color var(--trans-fast);
}

/* Hover State */
input:not([type]):hover,
input[type="text"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
select:hover,
textarea:hover,
.input:hover,
.form-control:hover {
  border-color: #94a3b8 !important;
}

/* Focus / Focus-Visible State */
input:not([type]):focus,
input:not([type]):focus-visible,
input[type="text"]:focus,
input[type="text"]:focus-visible,
input[type="number"]:focus,
input[type="number"]:focus-visible,
input[type="date"]:focus,
input[type="date"]:focus-visible,
input[type="password"]:focus,
input[type="password"]:focus-visible,
input[type="email"]:focus,
input[type="email"]:focus-visible,
input[type="search"]:focus,
input[type="search"]:focus-visible,
input[type="tel"]:focus,
input[type="tel"]:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
.input:focus,
.input:focus-visible,
.form-control:focus,
.form-control:focus-visible {
  outline: none !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18), inset 0 1px 2px rgba(15, 23, 42, 0.02) !important;
  background-color: #ffffff !important;
}

/* Disabled & Readonly */
input:disabled,
input[readonly],
select:disabled,
textarea:disabled,
textarea[readonly],
.input:disabled,
.form-control:disabled {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: var(--text-light) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* Select: Clean standard chevron dropdown shape without altering size */
select, select.input, select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-position: right 10px center !important;
  background-repeat: no-repeat !important;
  background-size: 13px 13px !important;
  padding-right: 28px !important;
  cursor: pointer;
}
select:focus, select:focus-visible {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}

/* Textarea standard shaping */
textarea, textarea.input, textarea.form-control {
  padding: 8px 12px;
  line-height: 1.45;
  resize: vertical;
}

/* Standard Placeholders */
input::placeholder,
textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
  font-size: 13px;
}

/* Standard Field Labels */
form label, .field label, .filters label {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.1px;
}

/* Ensure all inputs and selects inside filter toolbars share the exact same uniform height and never collapse vertically */
.filters-line .field input,
.filters-line .field select,
.filters-line input {
  height: 38px !important;
  line-height: 38px !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  flex: none !important;
}

.filters-line input[name="name"],
.filters-line input[name="q"] {
  width: 260px !important;
  max-width: 300px !important;
  flex: none !important;
  height: 38px !important;
}

/* ==========================================================================
   Login Page - Showcase Layout & Blood Drops Tray
   ========================================================================== */
.login-page-body {
  position: relative;
  background-color: #f0f9ff !important;
  background-image: radial-gradient(circle at 50% 40%, rgba(224, 242, 254, 0.7) 0%, rgba(240, 249, 255, 0.85) 100%) !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* WhatsApp-style Laboratory Doodles Wallpaper */
.login-page-body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("lab_doodle_bg.svg");
  background-repeat: repeat;
  background-size: 270px 270px;
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

.login-showcase {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  display: flex;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 55px -12px rgba(15, 23, 42, 0.2), 0 0 35px rgba(2, 132, 199, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.login-page-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}


.login-art-panel {
  flex: 1 1 50%;
  position: relative;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  min-height: 520px;
}

.login-art-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.6s ease;
}

.login-showcase:hover .login-art-img {
  transform: scale(1.03);
}

.login-art-overlay {
  position: relative;
  z-index: 2;
  padding: 28px 24px 24px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 65%, transparent 100%);
  color: #ffffff;
}

.login-art-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.45);
  backdrop-filter: blur(8px);
  color: #e0f2fe;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.login-art-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 6px;
  color: #ffffff;
}

.login-art-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.45;
}

.login-form-panel {
  flex: 1 1 50%;
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  background: #ffffff;
}

.login-box {
  width: 100%;
}

.blood-password-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.blood-password-input {
  width: 100% !important;
  max-width: 320px !important;
  height: 44px !important;
  padding: 0 42px 0 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  font-size: 15px !important;
  box-sizing: border-box !important;
  color: #1e293b !important;
  margin-bottom: 0 !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blood-password-input:focus {
  outline: none !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2) !important;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  z-index: 3;
  transition: color 0.15s, background-color 0.15s;
}

.password-toggle-btn:hover {
  color: #0284c7;
  background-color: #f1f5f9;
}

.password-toggle-btn svg {
  width: 18px;
  height: 18px;
}

/* Dedicated Blood Drops Sample Rack Below Password */
.blood-drops-tray-wrap {
  width: 100%;
  max-width: 320px;
  margin-bottom: 22px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 7px 10px;
  box-sizing: border-box;
  transition: all 0.25s ease;
  min-height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blood-drops-tray-wrap.active {
  background: #fff5f5;
  border: 1px solid #fecaca;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08);
}

.blood-tray-placeholder {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #94a3b8;
  user-select: none;
}

.blood-tray-placeholder .tray-icon {
  font-size: 13px;
  line-height: 1;
}

.blood-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.blood-tray-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #991b1b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.blood-tray-count-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.blood-drops-list {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0;
  scrollbar-width: thin;
  scrollbar-color: #fca5a5 transparent;
}

.blood-drops-list::-webkit-scrollbar {
  height: 3px;
}

.blood-drops-list::-webkit-scrollbar-thumb {
  background: #fca5a5;
  border-radius: 3px;
}

.blood-drop-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 18px;
  animation: bloodDropPop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blood-drop-dot svg {
  width: 14px;
  height: 18px;
  filter: drop-shadow(0 2px 2.5px rgba(185, 28, 28, 0.45));
}

@keyframes bloodDropPop {
  0% { transform: scale(0.2) translateY(-4px); opacity: 0; }
  70% { transform: scale(1.25) translateY(1px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@media (max-width: 780px) {
  .login-showcase {
    flex-direction: column;
    max-width: 440px;
  }
  .login-art-panel {
    min-height: 220px;
    max-height: 240px;
  }
  .login-form-panel {
    padding: 28px 20px;
  }
}

