/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
@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;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --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;
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&family=Sora:wght@300;400;600;700;800&display=swap");
:root {
  --font-heading: "Sora", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --text-body: 400 14px/1.65 var(--font-body);
  --color-primary: #2457d6;
  --color-primary-hover: #1946b7;
  --color-primary-tint: #e8efff;
  --color-secondary: #6d5bd0;
  --color-tertiary: #e8795c;
  --color-neutral: #60708d;
  --color-bg-page: #f4f7fd;
  --color-bg-surface: #ffffff;
  --color-bg-elevated: #f9fbff;
  --color-border: #dce4f2;
  --color-border-strong: #b9c8e2;
  --color-text-primary: #18233a;
  --color-text-secondary: #465777;
  --color-text-muted: #687895;
  --color-text-inverse: #edf3ff;
  --color-success: #16835d;
  --color-success-tint: #e2f5ed;
  --color-warning: #a85d08;
  --color-warning-tint: #fff1d9;
  --color-error: #bd3f45;
  --color-error-tint: #fde9ea;
  --color-info: #285ec5;
  --color-info-tint: #e7efff;
  --color-sidebar-bg: #17264b;
  --color-sidebar-text: #b9c8e4;
  --color-sidebar-active: #2e61df;
  --color-sidebar-active-text: #ffffff;
  --color-navbar-bg: #ffffff;
  --color-navbar-border: #dce4f2;
  --color-navbar-text: #18233a;
  --height-navbar: 68px;
  --width-sidebar: 264px;
  --spacing-page: 24px;
  --card-gap: 18px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --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(31, 74, 159, 0.08), 0 2px 7px rgba(31, 74, 159, 0.05);
  --shadow-md: 0 4px 10px rgba(31, 74, 159, 0.10), 0 14px 28px rgba(31, 74, 159, 0.08);
  --shadow-lg: 0 10px 18px rgba(24, 61, 135, 0.13), 0 28px 54px rgba(24, 61, 135, 0.12);
  --chart-1: #2457d6;
  --chart-2: #6d5bd0;
  --chart-3: #16835d;
  --chart-4: #d07b20;
  --chart-5: #e8795c;
  --chart-6: #2c8fb4;
}
@layer base {
  body {
    margin: 0;
    font: var(--text-body);
    color: var(--color-text-primary);
    background: 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);
    letter-spacing: -0.025em;
  }
  h1 {
    font-size: 32px;
    line-height: 1.2;
  }
  h2 {
    font-size: 22px;
    line-height: 1.3;
  }
  h3 {
    font-size: 16px;
    line-height: 1.45;
  }
  ::selection {
    color: var(--color-text-inverse);
    background: var(--color-primary);
  }
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-secondary);
  }
}
@layer components {
  .surface-raised {
    background: linear-gradient(145deg, var(--color-bg-surface), var(--color-bg-elevated));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  .stat-card {
    color: var(--color-text-primary);
    background: linear-gradient(135deg, var(--color-bg-surface), var(--color-primary-tint));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
  }
  .stat-card:nth-child(4n + 2) {
    background: linear-gradient(135deg, var(--color-bg-surface), var(--color-info-tint));
  }
  .stat-card:nth-child(4n + 3) {
    background: linear-gradient(135deg, var(--color-bg-surface), var(--color-success-tint));
  }
  .stat-card:nth-child(4n + 4) {
    background: linear-gradient(135deg, var(--color-bg-surface), var(--color-warning-tint));
  }
  .hover-lift {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  }
  .hover-lift:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }
  .page-back-link {
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
  }
  .page-back-link:hover {
    color: var(--color-primary);
    transform: translateX(-2px);
  }
  .btn-primary {
    color: var(--color-text-inverse);
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-body);
    font-weight: 700;
    transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  }
  .btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }
  .btn-secondary {
    color: var(--color-text-primary);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 700;
    transition: color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  }
  .btn-secondary:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
  }
  .filter-tab {
    color: var(--color-text-secondary);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  }
  .filter-tab:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
  }
  .filter-tab.active {
    color: var(--color-text-inverse);
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
  }
  .data-table {
    color: var(--color-text-primary);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-collapse: separate;
    border-radius: var(--radius-lg);
    border-spacing: 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .data-table thead {
    color: var(--color-text-secondary);
    background: var(--color-bg-elevated);
    font-size: 12px;
    font-weight: 700;
  }
  .data-table th {
    border-bottom: 1px solid var(--color-border);
    text-align: left;
  }
  .data-table 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-color: transparent;
  }
  .badge-success, .badge-warning, .badge-error, .badge-info {
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
  }
  .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-info);
    background: var(--color-info-tint);
  }
  .form-input, .form-textarea, .form-select {
    color: var(--color-text-primary);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    font: var(--text-body);
    outline: none;
    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-muted);
  }
  .form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-tint);
  }
  .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% - 16px) 50%, calc(100% - 11px) 50%;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    padding-right: 36px;
  }
  .chart-surface {
    background: linear-gradient(145deg, var(--color-bg-surface), var(--color-bg-elevated));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  .skeleton-line, .skeleton-circle {
    background: linear-gradient(90deg, var(--color-bg-elevated), var(--color-primary-tint), var(--color-bg-elevated));
    background-size: 200% 100%;
    animation: nexora-shimmer 1.5s infinite linear;
  }
  .skeleton-line {
    border-radius: var(--radius-md);
  }
  .skeleton-circle {
    border-radius: 999px;
  }
  .lucide {
    flex: none;
    stroke-width: 1.8;
  }
  @keyframes nexora-shimmer {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }
  @keyframes nexora-reveal {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .reveal-stagger {
    animation: nexora-reveal var(--transition-slow) both;
  }
}

/* Nexora Enterprise Admin System — compact 3px grid */
:root {
  --font-heading: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --text-body: 400 13px/1.5 var(--font-body);
  --color-primary: #1768d8;
  --color-primary-hover: #0f56b8;
  --color-primary-tint: #edf5ff;
  --color-secondary: #52637a;
  --color-tertiary: #b45309;
  --color-bg-page: #f6f7f9;
  --color-bg-surface: #ffffff;
  --color-bg-elevated: #fafbfc;
  --color-border: #e2e6eb;
  --color-border-strong: #cbd2db;
  --color-text-primary: #1f2937;
  --color-text-secondary: #52606f;
  --color-text-muted: #7b8794;
  --color-sidebar-bg: #111827;
  --color-sidebar-active: #22334a;
  --height-navbar: 54px;
  --width-sidebar: 228px;
  --spacing-page: 18px;
  --card-gap: 12px;
  --radius-md: 6px;
  --radius-lg: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 2px 5px rgba(16, 24, 40, .05);
  --shadow-lg: 0 8px 18px rgba(16, 24, 40, .10);
  --transition-fast: 120ms ease;
  --transition-normal: 180ms ease;
  --transition-slow: 240ms ease;
}

@layer components {
  .surface-raised, .chart-surface { background: var(--color-bg-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
  .stat-card, .stat-card:nth-child(4n + 2), .stat-card:nth-child(4n + 3), .stat-card:nth-child(4n + 4) { background: var(--color-bg-surface); border-radius: var(--radius-md); box-shadow: none; }
  .hover-lift:hover { transform: none; box-shadow: var(--shadow-md); }
  .btn-primary, .btn-secondary, .filter-tab { min-height: 30px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600; }
  .btn-primary:hover { transform: none; box-shadow: none; }
  .filter-tab.active { box-shadow: none; }
  .badge-success, .badge-warning, .badge-error, .badge-info { border-radius: 4px; font-size: 11px; font-weight: 600; line-height: 16px; }
  .form-input, .form-textarea, .form-select { min-height: 33px; border-radius: var(--radius-md); font-size: 13px; }
  .data-table { border-radius: var(--radius-md); box-shadow: none; }
  .data-table th, .data-table td { padding-top: 9px !important; padding-bottom: 9px !important; }
}

/* Normalise legacy page utilities to compact admin density. */
.text-4xl { font-size: 20px !important; line-height: 27px !important; }
.text-3xl { font-size: 20px !important; line-height: 27px !important; }
.text-2xl { font-size: 18px !important; line-height: 24px !important; }
.text-xl { font-size: 16px !important; line-height: 22px !important; }
.text-lg { font-size: 14px !important; line-height: 21px !important; }
.p-8, .p-7 { padding: 15px !important; }
.p-6, .p-5 { padding: 12px !important; }
.p-4 { padding: 9px !important; }
.p-3 { padding: 6px !important; }
.py-3 { padding-top: 9px !important; padding-bottom: 9px !important; }
.py-2\.5 { padding-top: 6px !important; padding-bottom: 6px !important; }
.py-2 { padding-top: 6px !important; padding-bottom: 6px !important; }
.gap-6, .gap-5 { gap: 15px !important; }
.gap-4 { gap: 12px !important; }
.gap-3 { gap: 9px !important; }
.gap-2 { gap: 6px !important; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 15px !important; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 12px !important; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 9px !important; }
.mb-8, .mt-8, .mb-7, .mt-7 { margin-top: 0; margin-bottom: 15px !important; }
.mt-7, .mt-6 { margin-top: 15px !important; }
.mb-6 { margin-bottom: 15px !important; }
.mt-6, .mt-5 { margin-top: 12px !important; }
.mb-5 { margin-bottom: 12px !important; }
.mt-5, .mt-4 { margin-top: 9px !important; }
.mb-4 { margin-bottom: 9px !important; }
.mt-3 { margin-top: 6px !important; }
.mb-3 { margin-bottom: 6px !important; }
.rounded-2xl, .rounded-xl { border-radius: var(--radius-md) !important; }

@media (max-width: 768px) { :root { --spacing-page: 12px; } }
