/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@600;700;800&display=swap");
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities;
:root {
  --color-primary: #2455a6;
  --color-primary-strong: #173f86;
  --color-primary-tint: #e7efff;
  --color-secondary: #167e8c;
  --color-secondary-tint: #e2f5f6;
  --color-tertiary: #dc7b25;
  --color-bg-page: #f3f7fc;
  --color-bg-surface: #ffffff;
  --color-bg-subtle: #eaf1f9;
  --color-border: #c9d7e7;
  --color-text-primary: #172b4d;
  --color-text-secondary: #4c607d;
  --color-text-tertiary: #627491;
  --color-text-inverse: #f7fbff;
  --color-success: #176a52;
  --color-success-tint: #e2f3eb;
  --color-warning: #a85d0c;
  --color-warning-tint: #fff0dc;
  --color-error: #ae3540;
  --color-error-tint: #fde9eb;
  --color-sidebar-bg: #132b4a;
  --color-sidebar-text: #c4d7ec;
  --color-sidebar-active: #2f66bf;
  --color-sidebar-active-text: #ffffff;
  --color-navbar-bg: rgba(248, 251, 255, 0.92);
  --color-navbar-border: #c9d7e7;
  --chart-1: #2455a6;
  --chart-2: #167e8c;
  --chart-3: #dc7b25;
  --chart-4: #7a4ca0;
  --chart-5: #ae3540;
  --chart-6: #3d7899;
  --font-heading: "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", sans-serif;
  --text-body: 400 16px/1.6 var(--font-body);
  --text-label: 700 13px/1.35 var(--font-body);
  --text-headline: 700 clamp(30px, 3vw, 42px)/1.16 var(--font-heading);
  --spacing-page: 24px;
  --card-gap: 16px;
  --height-navbar: 68px;
  --width-sidebar: 232px;
  --radius: 14px;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px rgba(23, 63, 134, 0.08), 0 4px 10px rgba(23, 63, 134, 0.05);
  --shadow-md: 0 2px 5px rgba(23, 63, 134, 0.1), 0 10px 24px rgba(23, 63, 134, 0.1);
  --shadow-lg: 0 4px 10px rgba(23, 63, 134, 0.13), 0 20px 44px rgba(23, 63, 134, 0.14);
}
@layer base {
  body {
    font: var(--text-body);
    color: var(--color-text-primary);
    background: radial-gradient(circle at 84% 0%, var(--color-primary-tint), transparent 34%), var(--color-bg-page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-primary);
  }
  h1 {
    font: var(--text-headline);
  }
  h2 {
    font-size: 24px;
    line-height: 1.25;
  }
  h3 {
    font-size: 18px;
    line-height: 1.35;
  }
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-secondary);
  }
}
@layer components {
  .surface-raised {
    background: linear-gradient(145deg, var(--color-bg-surface), var(--color-bg-subtle));
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }
  .stat-card {
    background: linear-gradient(135deg, var(--color-bg-surface), var(--color-primary-tint));
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    color: var(--color-text-primary);
  }
  .stat-card--secondary {
    background: linear-gradient(135deg, var(--color-bg-surface), var(--color-secondary-tint));
  }
  .stat-card--warning {
    background: linear-gradient(135deg, var(--color-bg-surface), var(--color-warning-tint));
  }
  .stat-card--critical {
    background: linear-gradient(135deg, var(--color-bg-surface), var(--color-error-tint));
  }
  .hover-lift {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  }
  .hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  .filter-tab {
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--color-text-secondary);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font: var(--text-label);
    transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  }
  .filter-tab:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
  }
  .filter-tab.active {
    color: var(--color-text-inverse);
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
  }
  .table-shell {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: auto;
  }
  .data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--color-text-primary);
    background: var(--color-bg-surface);
  }
  .data-table thead th {
    color: var(--color-text-secondary);
    background: var(--color-bg-subtle);
    border-bottom: 1px solid var(--color-border);
    font: var(--text-label);
    text-align: left;
    white-space: nowrap;
  }
  .data-table tbody td {
    border-bottom: 1px solid var(--color-border);
  }
  .data-table tbody tr {
    transition: background var(--transition-fast);
  }
  .data-table tbody tr:hover {
    background: var(--color-primary-tint);
  }
  .data-table tbody tr:last-child td {
    border-bottom: 0;
  }
  .badge-success, .badge-warning, .badge-error, .badge-info {
    border-radius: var(--radius);
    font: var(--text-label);
    white-space: nowrap;
  }
  .badge-success {
    color: var(--color-success);
    background: var(--color-success-tint);
  }
  .badge-warning {
    color: var(--color-warning);
    background: var(--color-warning-tint);
  }
  .badge-error {
    color: var(--color-error);
    background: var(--color-error-tint);
  }
  .badge-info {
    color: var(--color-primary-strong);
    background: var(--color-primary-tint);
  }
  .form-input, .form-textarea, .form-select {
    color: var(--color-text-primary);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-body);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  }
  .form-input::placeholder, .form-textarea::placeholder {
    color: var(--color-text-tertiary);
  }
  .form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-tint), var(--shadow-sm);
    outline: none;
  }
  .form-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-text-secondary) 50%), linear-gradient(135deg, var(--color-text-secondary) 50%, transparent 50%);
    background-position: calc(100% - var(--card-gap)) 50%, calc(100% - 11px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    padding-right: calc(var(--card-gap) * 2);
  }
  .chart-surface {
    background: linear-gradient(160deg, var(--color-bg-surface), var(--color-bg-subtle));
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }
  .skeleton-line, .skeleton-circle {
    background: linear-gradient(90deg, var(--color-bg-subtle) 25%, var(--color-primary-tint) 50%, var(--color-bg-subtle) 75%);
    background-size: 200% 100%;
    animation: clinical-shimmer 1.5s infinite;
  }
  .skeleton-line {
    border-radius: var(--radius);
  }
  .skeleton-circle {
    border-radius: 999px;
  }
  @keyframes clinical-shimmer {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }
  .page-reveal {
    animation: clinical-reveal var(--transition-slow) both;
  }
  @keyframes clinical-reveal {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
