/* ==========================================================================
   FRACTURE DETECTION AI — GLOBAL DESIGN SYSTEM (MOCKUP 1 SPECIFICATION)
   Clean, modern healthcare UI with pale blue/white palette, 16-20px rounded cards,
   soft shadows, #2F80ED primary buttons, and pastel status chips.
   ========================================================================== */

:root {
  /* Color Tokens */
  --bg-app: #F4F7FC;
  --bg-sidebar: #FFFFFF;
  --bg-card: #FFFFFF;
  --border-light: #E8EEF5;
  --border-subtle: #F1F5F9;
  --border-focus: #2F80ED;

  /* Primary Blue Theme (#2F80ED) */
  --blue-primary: #2F80ED;
  --blue-hover: #1C6DD0;
  --blue-active: #1557A6;
  --blue-light: #EBF3FE;
  --blue-border: #D0E3FA;
  --blue-shadow: rgba(47, 128, 237, 0.22);

  /* Status Chips (Soft Pastels) */
  --chip-fracture-bg: #FEE2E2;
  --chip-fracture-text: #DC2626;
  --chip-fracture-border: #FECACA;

  --chip-normal-bg: #DCFCE7;
  --chip-normal-text: #16A34A;
  --chip-normal-border: #BBF7D0;

  --chip-pending-bg: #FEF3C7;
  --chip-pending-text: #D97706;
  --chip-pending-border: #FDE68A;

  /* Typography Colors */
  --text-main: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Radii & Shadows */
  --radius-card: 18px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 20px rgba(0, 40, 100, 0.04);
  --shadow-hover: 0 8px 26px rgba(0, 40, 100, 0.08);

  /* Dimensions */
  --sidebar-width: 250px;
  --topbar-height: 70px;

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ==========================================================================
   APP SHELL LAYOUT: FIXED LEFT SIDEBAR & WORKSPACE
   ========================================================================== */

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Fixed Left Sidebar */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  z-index: 50;
  padding: 24px 18px 20px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-brand-box {
  margin-bottom: 32px;
  padding: 0 4px;
}

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

.brand-bone-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue-border);
  flex-shrink: 0;
}

.brand-bone-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Sidebar Navigation Items */
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: all 0.15s ease;
  user-select: none;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  color: var(--text-light);
  stroke-width: 2;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.nav-item:hover {
  color: var(--text-main);
  background-color: #F8FAFC;
}

.nav-item:hover svg {
  color: var(--blue-primary);
}

/* Active Nav Item as Soft Light-Blue Rounded Pill */
.nav-item.active {
  background-color: var(--blue-light);
  color: var(--blue-primary);
  font-weight: 600;
}

.nav-item.active svg {
  color: var(--blue-primary);
}

/* Sidebar Bottom: Dynamic User Profile Pill & Logout */
.sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.sidebar-user-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background-color: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  gap: 8px;
}

.user-pill-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.user-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2F80ED 0%, #1557A6 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-form-inline {
  display: inline-flex;
  margin: 0;
}

.btn-logout-icon {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-logout-icon:hover {
  color: #DC2626;
  background-color: #FEE2E2;
}

.btn-logout-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

/* ==========================================================================
   TOPBAR & MAIN WORKSPACE
   ========================================================================== */

.app-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.workspace-topbar {
  height: var(--topbar-height);
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px;
  cursor: pointer;
  color: var(--text-main);
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb-sep {
  color: var(--text-light);
  font-size: 0.85rem;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.topbar-action-icon:hover {
  background: #F8FAFC;
  color: var(--blue-primary);
  border-color: var(--blue-border);
}

.topbar-action-icon svg {
  width: 18px;
  height: 18px;
}

.topbar-avatar-pill {
  display: flex;
  align-items: center;
}

.topbar-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2F80ED 0%, #1557A6 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 40, 100, 0.08);
  overflow: hidden;
}

.topbar-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Flash Messages Banner */
.flashes-container {
  padding: 16px 32px 0;
}

.flash-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  margin-bottom: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.flash-ok, .flash-success {
  background-color: var(--chip-normal-bg);
  border-color: var(--chip-normal-border);
  color: var(--chip-normal-text);
}

.flash-erreur, .flash-danger {
  background-color: var(--chip-fracture-bg);
  border-color: var(--chip-fracture-border);
  color: var(--chip-fracture-text);
}

.flash-info {
  background-color: var(--blue-light);
  border-color: var(--blue-border);
  color: var(--blue-primary);
}

/* Workspace Content Wrapper */
.workspace-content {
  flex: 1;
  padding: 28px 32px 40px;
}

/* Generic White Rounded Card */
.white-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: box-shadow 0.2s ease;
}

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

/* Buttons */
.btn-primary-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--blue-primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--blue-shadow);
  transition: all 0.2s ease;
}

.btn-primary-blue:hover {
  background-color: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(47, 128, 237, 0.32);
}

.btn-outline-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--blue-primary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--blue-border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-outline-blue:hover {
  background-color: var(--blue-light);
  border-color: var(--blue-primary);
}

/* Status Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.chip-fracture {
  background-color: var(--chip-fracture-bg);
  color: var(--chip-fracture-text);
  border: 1px solid var(--chip-fracture-border);
}

.chip-normal {
  background-color: var(--chip-normal-bg);
  color: var(--chip-normal-text);
  border: 1px solid var(--chip-normal-border);
}

.chip-pending {
  background-color: var(--chip-pending-bg);
  color: var(--chip-pending-text);
  border: 1px solid var(--chip-pending-border);
}

/* ==========================================================================
   DASHBOARD: 3D ROTATING SKELETON SCAN & STATS (PHOTO 2 & MOCKUP 1)
   ========================================================================== */

/* Top 3 Stat Cards Row across full width (Mockup 1) */
.dashboard-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .dashboard-stats-row {
    grid-template-columns: 1fr;
  }
}

/* Middle Grid: 3D Skeleton Scanner (Photo 2) + Analytics Stack (Mockup 1) */
.dashboard-middle-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}

@media (max-width: 1080px) {
  .dashboard-middle-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-charts-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-bottom: 24px;
}

/* 3D Skeleton Full Body Scan Card (Photo 2 Dark Teal Radial Aesthetic) */
.skeleton-scan-card {
  background: radial-gradient(circle at 50% 45%, #053b49 0%, #032029 55%, #011117 100%);
  border-radius: var(--radius-card);
  border: 1px solid #143547;
  box-shadow: 0 12px 36px rgba(1, 10, 16, 0.45);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  height: 100%;
}

.skeleton-scan-hud-top {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(3, 20, 29, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  color: #38BDF8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.hud-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00F2FE;
  box-shadow: 0 0 10px #00F2FE;
  animation: hudPulse 1.4s infinite ease-in-out;
}

@keyframes hudPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hud-controls-toolbar {
  pointer-events: auto;
  display: flex;
  gap: 8px;
}

.hud-btn {
  background: rgba(3, 20, 29, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-pill);
  color: #E0F2FE;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #FFFFFF;
  border-color: #38BDF8;
}

.skeleton-viewport-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
  cursor: grab;
}

.skeleton-viewport-container:active {
  cursor: grabbing;
}

.skeleton-scan-hud-bottom {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.85);
}

.skeleton-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #38BDF8;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 5;
}

.model-missing-notice {
  background: rgba(3, 20, 29, 0.85);
  border: 1px dashed rgba(56, 189, 248, 0.5);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #E0F2FE;
  max-width: 320px;
}

/* Dashboard Summary Stat Cards (Right column / Row) */
.dashboard-stats-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.stat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-title {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-blue {
  background: var(--blue-light);
  color: var(--blue-primary);
}

.stat-icon-red {
  background: var(--chip-fracture-bg);
  color: var(--chip-fracture-text);
}

.stat-icon-green {
  background: var(--chip-normal-bg);
  color: var(--chip-normal-text);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.stat-trend {
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend-up {
  color: #16A34A;
}

.trend-down {
  color: #DC2626;
}

/* Dashboard Bottom Grid: Activity Line Chart & Donut Distribution */
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

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

.card-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.chart-filter-select {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #FFFFFF;
  outline: none;
}

/* Recent Analyses List Card */
.recent-analyses-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.recent-list {
  display: flex;
  flex-direction: column;
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s ease;
}

.recent-item:last-child {
  border-bottom: none;
}

.recent-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.recent-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #0B1320;
  object-fit: cover;
}

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

.recent-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

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

.recent-item-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.confidence-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-primary);
}

/* ==========================================================================
   NEW ANALYSIS PAGE (MOCKUP 1)
   ========================================================================== */

.analysis-hero-header {
  margin-bottom: 24px;
}

.badge-ai-powered {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-primary);
  background: var(--blue-light);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  margin-bottom: 8px;
}

.analysis-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.analysis-subtitle {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* 3 Feature Chips */
.feature-chips-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 1px 3px rgba(0, 40, 100, 0.03);
}

.feature-chip svg {
  width: 15px;
  height: 15px;
  color: var(--blue-primary);
}

/* Analysis Layout Grid */
.analysis-upload-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

/* Large Dashed Drag-and-Drop Zone */
.upload-dropzone-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  border: 2px dashed #CFE0F5;
  box-shadow: var(--shadow-card);
  padding: 44px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.upload-dropzone-card:hover, .upload-dropzone-card.drag-over {
  border-color: var(--blue-primary);
  background-color: #F8FBFF;
}

.dropzone-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.2s ease;
}

.upload-dropzone-card:hover .dropzone-icon-circle {
  transform: translateY(-2px);
}

.dropzone-icon-circle svg {
  width: 32px;
  height: 32px;
}

.dropzone-prompt-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.dropzone-or-text {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.dropzone-formats-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Floating X-Ray Card on Right */
.analysis-preview-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.preview-image-container {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0B1320;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-image-container img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.badge-floating-ai {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(47, 128, 237, 0.4);
}

/* "How it works?" 3-Step Strip */
.how-it-works-strip {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 24px 28px;
}

.how-it-works-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.step-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.step-arrow-divider {
  color: var(--text-light);
}

/* ==========================================================================
   ANALYSIS RESULT PAGE (MOCKUP 1)
   ========================================================================== */

.result-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.btn-back-link:hover {
  color: var(--blue-primary);
}

.result-time-stamp {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.result-grid-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}

/* Left Image Card with Toggle */
.result-scan-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.result-scan-viewer {
  border-radius: 14px;
  background: #0B1320;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  position: relative;
}

.result-scan-viewer img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.scan-view-toggle-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  justify-content: center;
}

.toggle-pill-btn {
  background: #F1F5F9;
  color: var(--text-muted);
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.toggle-pill-btn.active {
  background: var(--blue-primary);
  color: #FFFFFF;
}

/* Right Result Cards Column */
.result-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Verdict Status Card */
.verdict-status-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.verdict-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verdict-icon-red {
  background: var(--chip-fracture-bg);
  color: var(--chip-fracture-text);
}

.verdict-icon-green {
  background: var(--chip-normal-bg);
  color: var(--chip-normal-text);
}

.verdict-info-wrap h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.verdict-info-wrap p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Confidence Score Card with Circular Progress Ring */
.confidence-ring-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.circular-progress-wrap {
  width: 76px;
  height: 76px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.progress-ring-circle {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-ring-bg {
  stroke: #E2E8F0;
}

.progress-ring-bar {
  stroke: var(--blue-primary);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.progress-ring-text {
  position: absolute;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.confidence-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.confidence-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Highlighted Area Card */
.highlight-area-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.highlight-legend-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--blue-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-area-card h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.highlight-area-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Action Buttons & Disclaimer */
.result-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.result-actions-row .btn-primary-blue,
.result-actions-row .btn-outline-blue {
  flex: 1;
}

.ai-disclaimer-card {
  background: #F8FAFC;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ai-disclaimer-card svg {
  width: 16px;
  height: 16px;
  color: var(--blue-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   ANALYSIS HISTORY TABLE (MOCKUP 1)
   ========================================================================== */

.history-card-container {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.history-search-input {
  position: relative;
  width: 320px;
}

.history-search-input input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0 16px 0 38px;
  font-size: 0.88rem;
  outline: none;
  color: var(--text-main);
  transition: border-color 0.15s ease;
}

.history-search-input input:focus {
  border-color: var(--blue-primary);
}

.history-search-input svg {
  position: absolute;
  left: 14px;
  top: 11px;
  width: 16px;
  height: 16px;
  color: var(--text-light);
}

.history-filter-select {
  height: 40px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: #FFFFFF;
  outline: none;
}

/* Clean Medical Data Table */
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  background: #FAFBFD;
}

.data-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tr:hover td {
  background-color: #F8FBFE;
}

.table-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #0B1320;
  object-fit: cover;
  display: block;
}

.table-pagination-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.page-num-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.page-num-btn.active {
  background: var(--blue-primary);
  color: #FFFFFF;
  border-color: var(--blue-primary);
}

.page-num-btn:hover:not(.active) {
  background: #F1F5F9;
}

/* ==========================================================================
   ANALYSIS RESULT & CASE DETAIL PAGE (MOCKUP 1 CLINICAL DESIGN)
   ========================================================================== */

.result-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.result-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.result-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.result-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.15s ease;
}

.result-back-link:hover {
  color: var(--blue-primary);
}

.result-back-link svg {
  width: 20px;
  height: 20px;
}

.result-completed-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: #F1F5F9;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.result-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}

.result-image-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 16px;
}

.result-image-viewport {
  position: relative;
  width: 100%;
  max-height: 520px;
  min-height: 400px;
  background: #0B1320;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.result-image-viewport img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  transition: filter 0.25s ease;
}

.result-prediction-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.result-prediction-overlay.overlay-fracture {
  border: 2px dashed rgba(239, 68, 68, 0.7);
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.04) 70%, transparent 100%);
}

.result-prediction-overlay.overlay-healthy {
  border: 2px dashed rgba(16, 185, 129, 0.6);
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.03) 70%, transparent 100%);
}

.ai-box-marker {
  position: absolute;
  top: 16px;
  right: 16px;
}

.ai-box-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.overlay-fracture .ai-box-badge {
  background: rgba(239, 68, 68, 0.92);
  color: #FFFFFF;
}

.overlay-healthy .ai-box-badge {
  background: rgba(16, 185, 129, 0.92);
  color: #FFFFFF;
}

.result-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  gap: 12px;
  flex-wrap: wrap;
}

.pill-toggle-group {
  display: inline-flex;
  background: #F1F5F9;
  padding: 3px;
  border-radius: var(--radius-pill);
}

.pill-btn {
  border: none;
  background: transparent;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.pill-btn svg {
  width: 14px;
  height: 14px;
}

.pill-btn.active {
  background: #FFFFFF;
  color: var(--blue-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.image-file-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-file-label svg {
  width: 14px;
  height: 14px;
  color: var(--text-light);
}

.result-details-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-status-card {
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid transparent;
}

.result-status-card.status-fracture {
  background: #FEF2F2;
  border-color: #FECACA;
}

.result-status-card.status-fracture .status-card-icon {
  background: #FEE2E2;
  color: #DC2626;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-status-card.status-fracture .status-card-title {
  color: #991B1B;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.result-status-card.status-fracture .status-card-desc {
  color: #B91C1C;
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.45;
}

.result-status-card.status-normal {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.result-status-card.status-normal .status-card-icon {
  background: #DCFCE7;
  color: #16A34A;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-status-card.status-normal .status-card-title {
  color: #166534;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.result-status-card.status-normal .status-card-desc {
  color: #15803D;
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.45;
}

.result-info-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.card-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 14px;
}

.confidence-ring-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.confidence-ring-container {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}

.conf-svg {
  transform: rotate(-90deg);
}

.conf-svg-bar.bar-fracture {
  stroke: #EF4444;
}

.conf-svg-bar.bar-normal {
  stroke: #10B981;
}

.conf-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.confidence-text-col {
  flex: 1;
}

.confidence-rating {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.confidence-subtext {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.probability-bars-sub {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prob-sub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
}

.prob-label {
  width: 90px;
  color: var(--text-muted);
  font-weight: 500;
}

.prob-track {
  flex: 1;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
}

.prob-fill {
  display: block;
  height: 100%;
  background: var(--blue-primary);
  border-radius: 3px;
}

.prob-val {
  width: 44px;
  text-align: right;
  font-weight: 600;
  color: var(--text-main);
}

.highlighted-area-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.legend-swatch-blue {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--blue-primary);
  display: inline-block;
}

.highlighted-area-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.45;
}

.result-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: #F8FAFC;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meta-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

.meta-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.result-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary-blue.w-full,
.btn-outline-blue.w-full {
  width: 100%;
  justify-content: center;
}

.result-disclaimer-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.result-disclaimer-box svg {
  width: 16px;
  height: 16px;
  color: var(--blue-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   ANALYSIS HISTORY PAGE (MOCKUP 1 ACCURATE)
   ========================================================================== */

.history-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.history-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.history-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px;
}

.history-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

.history-card-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.history-search-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: #FAFBFD;
  flex-wrap: wrap;
}

.search-input-pill {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-input-pill input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0 16px 0 38px;
  font-size: 0.88rem;
  outline: none;
  background: #FFFFFF;
  color: var(--text-main);
  transition: border-color 0.15s ease;
}

.search-input-pill input:focus {
  border-color: var(--blue-primary);
}

.search-input-pill svg {
  position: absolute;
  left: 14px;
  top: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-light);
}

.filter-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.custom-select-wrap {
  position: relative;
}

.select-pill-filter {
  height: 40px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0 32px 0 14px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-main);
  background: #FFFFFF;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.table-responsive-wrap {
  width: 100%;
  overflow-x: auto;
}

.mockup-history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.mockup-history-table th {
  padding: 14px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  background: #FAFBFD;
}

.mockup-history-table td {
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.mockup-history-table tr:hover td {
  background-color: #F8FBFE;
}

.cell-date .date-main {
  font-weight: 600;
  color: var(--text-main);
}

.cell-date .date-sub {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* THUMBNAIL HARD CONSTRAINTS */
.cell-image {
  width: 68px;
}

.history-thumb-wrap {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #0B1320;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  vertical-align: middle;
}

.history-thumb-wrap img {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: cover !important;
  display: block;
}

.mockup-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
}

.mockup-chip.chip-fracture {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.mockup-chip.chip-normal {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.chip-dot.dot-red {
  background: #DC2626;
}

.chip-dot.dot-green {
  background: #16A34A;
}

.cell-conf {
  display: flex;
  align-items: center;
  gap: 10px;
}

.conf-pct-num {
  font-weight: 600;
  font-size: 0.88rem;
  width: 42px;
}

.conf-mini-track {
  width: 80px;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
}

.conf-mini-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.conf-mini-fill.fill-fracture {
  background: #DC2626;
}

.conf-mini-fill.fill-normal {
  background: #16A34A;
}

.cell-actions {
  text-align: center;
  white-space: nowrap;
}

.dropdown-actions-wrap {
  position: relative;
  display: inline-block;
}

.btn-dots-menu {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.btn-dots-menu:hover {
  background: #F1F5F9;
  color: var(--text-main);
  border-color: var(--blue-border);
}

.btn-dots-menu svg {
  width: 16px;
  height: 16px;
}

.actions-dropdown-popup {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 190px;
  padding: 6px;
  z-index: 50;
  text-align: left;
}

.actions-dropdown-popup.open {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: 6px;
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.dropdown-link svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

.dropdown-link:hover {
  background: #F8FAFC;
  color: var(--blue-primary);
}

.dropdown-link:hover svg {
  color: var(--blue-primary);
}

.dropdown-link.text-danger {
  color: #DC2626;
}

.dropdown-link.text-danger svg {
  color: #DC2626;
}

.dropdown-link.text-danger:hover {
  background: #FEF2F2;
  color: #B91C1C;
}

.mockup-pagination-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 20px;
  background: #FAFBFD;
  border-top: 1px solid var(--border-light);
}

.pagination-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-pill-arrow,
.page-pill-num {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.page-pill-arrow svg {
  width: 16px;
  height: 16px;
}

.page-pill-num.active {
  background: var(--blue-primary);
  color: #FFFFFF;
  border-color: var(--blue-primary);
  font-weight: 600;
}

.page-pill-arrow.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   REPORTS PAGE (ENHANCED HYBRID VIEW)
   ========================================================================== */

.reports-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.reports-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.reports-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px;
}

.reports-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

.reports-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.report-stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
}

.report-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.report-stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.report-stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-stat-icon-wrap.icon-blue {
  background: var(--blue-light);
  color: var(--blue-primary);
}

.report-stat-icon-wrap.icon-green {
  background: #DCFCE7;
  color: #16A34A;
}

.report-stat-icon-wrap.icon-red {
  background: #FEE2E2;
  color: #DC2626;
}

.report-stat-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.report-stat-number {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.report-stat-number.stat-green {
  color: #16A34A;
}

.report-stat-number.stat-red {
  color: #DC2626;
}

.report-stat-footer {
  font-size: 0.8rem;
  color: var(--text-light);
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stat-trend.trend-up {
  color: #16A34A;
}

.stat-trend.trend-down {
  color: #DC2626;
}

.reports-hybrid-list {
  display: flex;
  flex-direction: column;
}

.report-hybrid-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 20px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s ease;
}

.report-hybrid-item:last-child {
  border-bottom: none;
}

.report-hybrid-item:hover {
  background: #F8FBFE;
}

.report-hybrid-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1.4;
  min-width: 0;
}

/* THUMBNAIL HARD CONSTRAINTS IN REPORTS */
.report-hybrid-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: #0B1320;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.report-hybrid-thumb img {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: cover !important;
  display: block;
}

.report-hybrid-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.report-id-pill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.report-code {
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-primary);
  background: var(--blue-light);
  padding: 2px 7px;
  border-radius: 4px;
}

.report-patient-name {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-ref-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.report-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.report-date-row svg {
  width: 14px;
  height: 14px;
  color: var(--text-light);
}

.report-hybrid-center {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1.1;
}

.report-conf-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 140px;
}

.conf-bar-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.report-progress-track {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
}

.report-progress-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.report-progress-fill.fill-red {
  background: #DC2626;
}

.report-progress-fill.fill-green {
  background: #16A34A;
}

.report-hybrid-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-primary-blue.small,
.btn-outline-blue.small {
  padding: 8px 14px;
  font-size: 0.84rem;
}

/* ==========================================================================
   SETTINGS PAGE (CLINICAL & PROFILE TABS)
   ========================================================================== */

.settings-page-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.settings-header-row {
  margin-bottom: 24px;
}

.settings-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px;
}

.settings-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

.settings-tabs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.settings-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-tab-btn.active {
  background: var(--blue-light);
  color: var(--blue-primary);
}

.settings-tab-btn svg {
  width: 16px;
  height: 16px;
}

.settings-tab-section {
  display: none;
}

.settings-tab-section.active {
  display: block;
}

.settings-grid-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 28px;
}

.settings-card-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.settings-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px;
}

.settings-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.avatar-upload-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.avatar-preview-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  overflow: hidden;
  border: 2px solid var(--blue-border);
  flex-shrink: 0;
}

.avatar-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.avatar-help-text {
  font-size: 0.8rem;
  color: var(--text-light);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-wrap.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  height: 42px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 0.9rem;
  color: var(--text-main);
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

.form-input:disabled {
  background: #F8FAFC;
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-textarea {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  background: #FFFFFF;
  resize: vertical;
  min-height: 90px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

.form-select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 0.9rem;
  color: var(--text-main);
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-select:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

.settings-form-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
}

.sub-card-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.sub-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 14px;
}

.toggle-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.toggle-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-primary);
  margin-top: 2px;
  cursor: pointer;
}

.toggle-label-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-label-text strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.toggle-label-text small {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-secondary-outline:hover {
  background: #F1F5F9;
  color: var(--text-main);
  border-color: var(--text-muted);
}

.btn-secondary-outline.small {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.ai-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.telemetry-box {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.telemetry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.telemetry-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.telemetry-title svg {
  width: 18px;
  height: 18px;
  color: var(--blue-primary);
}

.telemetry-sub {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.telemetry-sub code {
  font-family: monospace;
  font-weight: 600;
  color: var(--text-main);
  background: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.telemetry-card {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 18px 20px;
}

.status-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: #DCFCE7;
  color: #166534;
}

/* ==========================================================================
   HELP CENTER (3-STEP HOW IT WORKS & GUIDES)
   ========================================================================== */

.help-hero-banner {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 28px;
}

.help-hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.help-hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.help-search-box {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.help-search-box input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0 18px 0 42px;
  font-size: 0.92rem;
  outline: none;
  background: #FFFFFF;
  transition: border-color 0.15s ease;
}

.help-search-box input:focus {
  border-color: var(--blue-primary);
}

.help-search-box svg {
  position: absolute;
  left: 16px;
  top: 13px;
  width: 18px;
  height: 18px;
  color: var(--text-light);
}

.how-it-works-strip {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
}

.how-step {
  flex: 1;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.how-step:hover {
  background: #FFFFFF;
  box-shadow: var(--shadow-hover);
  border-color: var(--blue-border);
}

.how-step-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-primary);
  background: var(--blue-light);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.how-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.how-step-icon svg {
  width: 20px;
  height: 20px;
}

.how-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px;
}

.how-step-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.how-arrow {
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-arrow svg {
  width: 20px;
  height: 20px;
}

.accordion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.accordion-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.accordion-trigger {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}

.accordion-content {
  padding: 0 20px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.accordion-card.open .accordion-content {
  display: block;
}

.accordion-card.open .accordion-trigger svg {
  transform: rotate(180deg);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 1100px) {
  .dashboard-hero-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
  .analysis-upload-grid {
    grid-template-columns: 1fr;
  }
  .result-grid-layout,
  .result-main-grid {
    grid-template-columns: 1fr;
  }
  .reports-stat-row,
  .reports-stats-grid {
    grid-template-columns: 1fr;
  }
  .accordion-grid {
    grid-template-columns: 1fr;
  }
  .how-it-works-strip {
    flex-direction: column;
  }
  .how-arrow {
    transform: rotate(90deg);
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
  .report-hybrid-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .report-hybrid-center {
    width: 100%;
    justify-content: space-between;
  }
  .report-hybrid-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  }
  .app-main {
    margin-left: 0;
  }
  .mobile-menu {
    display: flex;
  }
  .workspace-topbar {
    padding: 0 20px;
  }
  .workspace-content {
    padding: 20px 16px 32px;
  }
}

/* ==========================================================================
   NOTIFICATIONS PAGE STYLES (CLINICAL DASHBOARD CARDS)
   ========================================================================== */
.notifications-container {
  max-width: 1040px;
  margin: 0 auto;
}

.notifications-header-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light, #E8EEF5);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(0, 40, 100, 0.04);
}

.notifications-title-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notifications-bell-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #EFF6FF;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #DBEAFE;
}

.notifications-bell-icon svg {
  width: 24px;
  height: 24px;
}

.notifications-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main, #0F172A);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.notifications-subheading {
  font-size: 0.9rem;
  color: var(--text-muted, #64748B);
  margin: 0;
}

.btn-mark-all-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #F8FAFC;
  color: #334155;
  border: 1px solid #CBD5E1;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mark-all-read:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light, #E8EEF5);
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 40, 100, 0.03);
}

.notification-card:hover {
  border-color: #2563EB;
  transform: translateX(3px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
}

.notification-card.unread {
  background: #F8FAFC;
  border-left: 4px solid #2563EB;
}

.notif-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.notif-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-card-icon svg {
  width: 20px;
  height: 20px;
}

.notif-icon-alert {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FEE2E2;
}

.notif-icon-report {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid #DCFCE7;
}

.notif-icon-appointment {
  background: #FAF5FF;
  color: #9333EA;
  border: 1px solid #F3E8FF;
}

.notif-icon-info {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #DBEAFE;
}

.notif-card-body {
  min-width: 0;
}

.notif-message-text {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main, #0F172A);
  margin-bottom: 4px;
}

.notif-card-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.badge-new-notif {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-read-notif {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.notif-time-text {
  font-size: 0.82rem;
  color: var(--text-muted, #64748B);
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
}

.btn-notif-check {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-notif-check:hover {
  background: #EFF6FF;
  color: #2563EB;
}

.notifications-empty-box {
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 18px;
  padding: 64px 24px;
  text-align: center;
}

.empty-bell-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #F1F5F9;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 6px;
}

.empty-subtitle {
  font-size: 0.92rem;
  color: #64748B;
}

