/* Larabase (Tailwind 4 + ReUI) — the design system lives in rutatiina/ui */
@import '../../packages/rutatiina/ui/resources/css/styles.css';

/* Keenicons font sets */
@import '../../packages/rutatiina/ui/resources/js/components/keenicons/assets/styles.css';

/* Layout specific styles shipped by rutatiina/themes */
@import '../../packages/rutatiina/themes/resources/css/demo1.css';

@source '../views';
@source '../../packages/rutatiina/*/resources/js';
@source '../../packages/nugsoft/*/resources/js';
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';

@theme {
  --font-sans:
    'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
    'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

/*
 * Mfuko brand tokens. They override rutatiina/ui's defaults (config.reui.css) here, in the
 * application, so the shared packages stay identical to Larabase and can be upgraded.
 * Chart series were checked for colour-vision separation on the light and dark surfaces;
 * series 5 sits below 3:1 on light, so charts using it need direct labels or a table view.
 */
:root {
  --primary: #007a5a;
  --primary-foreground: var(--color-white);
  --ring: #007a5a;
  --chart-1: #007a5a;
  --chart-2: #2a78d6;
  --chart-3: #eb6834;
  --chart-4: #6250d6;
  --chart-5: #eda100;
}

.dark {
  --primary: #00805c;
  --primary-foreground: var(--color-white);
  --ring: #0b8f6b;
  --chart-1: #0b8f6b;
  --chart-2: #3987e5;
  --chart-3: #d95926;
  --chart-4: #9085e9;
  --chart-5: #c98500;
}

/* The SVG's media query follows the app theme, including a dark sidebar in light mode. */
img[src*='/media/app/mini-logo'] {
  width: auto;
  object-fit: contain;
  color-scheme: light;
}

.dark img[src*='/media/app/mini-logo'] {
  color-scheme: dark;
}

/* The toggle's 8px inner padding supplies the same icon-to-content gap as menu rows. */
.demo1 .sidebar-header {
  gap: 0;
}

/*
 * The dark sidebar (user menu, "Dark Sidebar") in Mfuko's deep green rather than the template's zinc.
 * Selected and hovered items turn white: green text on these greens falls below 4.5:1.
 */
.demo1 .sidebar.dark {
  --background: #0f1f1a;
  --foreground: var(--color-white);
  --primary: var(--color-white);
  --primary-foreground: #0f1f1a;
  --accent: #17322a;
  --accent-foreground: #c8d6cf;
  --muted: #1f4237;
  --muted-foreground: #8fa59b;
  --secondary: #24443a;
  --secondary-foreground: #c8d6cf;
  --border: #24443a;
  --input: #24443a;
  --ring: #8fa59b;
}

/* Inertia mounts into #app; let the layout behave as a direct child of <body> like in Next.js */
#app {
  display: contents;
}
