@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --border: 214 32% 91%;
    --muted: 210 40% 96%;
    --muted-fg: 215 16% 47%;
    --info: 217 91% 60%;
    --foreground: 222 47% 11%;
  }

  * {
    box-sizing: border-box;
  }

  body {
    @apply font-sans text-gray-900 antialiased;
  }

  /* ── Modern slim scrollbar for entire project ─────────────────── */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }

  ::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
    background-clip: padding-box;
  }

  ::-webkit-scrollbar-thumb:active {
    background: #9ca3af;
    background-clip: padding-box;
  }

  /* Firefox scrollbar */
  * {
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
  }

  *:hover {
    scrollbar-color: #d1d5db transparent;
  }
}

@layer components {

  /* ── Sidebar nav ───────────────────────────────────────────────── */
  .sidebar-nav-item {
    @apply flex items-center gap-2.5 px-2 py-2 rounded-md text-sm font-medium transition-colors w-full;
  }

  .sidebar-nav-item-active {
    color: #c9a96e;
    background-color: #c9a96e26;
    background-color: lab(71.1345% 6.35973 34.9547 / .15);
  }

  .sidebar-nav-item-inactive {
    @apply text-slate-400 hover:text-white;
  }

  /* ── Field / section typography ────────────────────────────────── */
  .field-label {
    @apply text-[11px] font-semibold uppercase tracking-widest text-gray-500;
  }

  .section-heading {
    @apply text-sm font-bold text-gray-900;
  }

  .kpi-label {
    @apply text-[10px] font-semibold uppercase tracking-widest text-gray-400;
  }

  /* ── Semantic color shorthands ──────────────────────────────────── */
  .text-muted-foreground {
    @apply text-gray-500;
  }

  .text-info {
    @apply text-blue-600;
  }

  .bg-muted {
    @apply bg-gray-100;
  }

  .border-border {
    @apply border-gray-200;
  }
}


.section-heading {
  font-family: "IBM Plex Serif, Georgia, serif";
  font-size: var(--text-lg);
  line-height: var(--tw-leading, var(--text-lg--line-height));
  --tw-font-weight: var(--font-weight-semibold);
  font-weight: var(--font-weight-semibold);
  color: hsl(var(--foreground));
}