/*!******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/styles/fonts.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************/
/* Fonts — from demo; files in public/fonts */
@font-face {
  font-family: "VlagsterWeb";
  src: url("/fonts/VlagsterWeb-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "VlagsterCoda";
  src: url("/fonts/VlagsterCoda-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "VlagsterBlack";
  src: url("/fonts/VlagsterBlack.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Page titles only (main h1 per page, not card/section titles) */
.font-page-title {
  font-family: "VlagsterCoda", var(--font-body, sans-serif);
}

/* KPI / metric cards (admin dashboard and future KPI surfaces) — VlagsterBlack */
.font-kpi-card {
  font-family: "VlagsterBlack", var(--font-body, sans-serif);
}

/*!***********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/styles/animations.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************/
/* Animations — from demo; reduced-motion respected */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
*, ::before, ::after{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.visible{
  visibility: visible;
}
.static{
  position: static;
}
.relative{
  position: relative;
}
.mt-2{
  margin-top: 0.5rem;
}
.mt-4{
  margin-top: 1rem;
}
.block{
  display: block;
}
.inline-block{
  display: inline-block;
}
.flex{
  display: flex;
}
.inline-flex{
  display: inline-flex;
}
.table{
  display: table;
}
.grid{
  display: grid;
}
.hidden{
  display: none;
}
.h-10{
  height: 2.5rem;
}
.h-8{
  height: 2rem;
}
.h-9{
  height: 2.25rem;
}
.min-h-0{
  min-height: 0px;
}
.min-h-\[72px\]{
  min-height: 72px;
}
.min-h-screen{
  min-height: 100vh;
}
.w-9{
  width: 2.25rem;
}
.w-full{
  width: 100%;
}
.resize-none{
  resize: none;
}
.flex-col{
  flex-direction: column;
}
.items-center{
  align-items: center;
}
.justify-center{
  justify-content: center;
}
.gap-2{
  gap: 0.5rem;
}
.gap-4{
  gap: 1rem;
}
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}
.overflow-y-auto{
  overflow-y: auto;
}
.overflow-x-hidden{
  overflow-x: hidden;
}
.whitespace-nowrap{
  white-space: nowrap;
}
.rounded{
  border-radius: 0.25rem;
}
.rounded-lg{
  border-radius: 0.5rem;
}
.rounded-md{
  border-radius: 0.375rem;
}
.border{
  border-width: 1px;
}
.border-border{
  border-color: var(--border-default);
}
.border-transparent{
  border-color: transparent;
}
.bg-\[var\(--accent\)\]{
  background-color: var(--accent);
}
.bg-background{
  background-color: var(--surface-bg-solid);
}
.bg-card{
  background-color: var(--surface-bg-solid);
}
.bg-muted{
  background-color: var(--surface-elevated);
}
.bg-neutral-800{
  --tw-bg-opacity: 1;
  background-color: rgb(38 38 38 / var(--tw-bg-opacity, 1));
}
.p-4{
  padding: 1rem;
}
.px-2{
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3{
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4{
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-8{
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-0\.5{
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1{
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-2{
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.pt-0{
  padding-top: 0px;
}
.text-center{
  text-align: center;
}
.text-lg{
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm{
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xs{
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-medium{
  font-weight: 500;
}
.font-normal{
  font-weight: 400;
}
.font-semibold{
  font-weight: 600;
}
.uppercase{
  text-transform: uppercase;
}
.lowercase{
  text-transform: lowercase;
}
.leading-none{
  line-height: 1;
}
.tracking-tight{
  letter-spacing: -0.025em;
}
.text-\[var\(--accent\)\]{
  color: var(--accent);
}
.text-blue-600{
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.text-card-foreground{
  color: var(--text-primary);
}
.text-foreground{
  color: var(--text-primary);
}
.text-muted{
  color: var(--surface-elevated);
}
.text-muted-foreground{
  color: var(--text-muted);
}
.text-neutral-600{
  --tw-text-opacity: 1;
  color: rgb(82 82 82 / var(--tw-text-opacity, 1));
}
.text-white{
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.underline{
  text-decoration-line: underline;
}
.underline-offset-4{
  text-underline-offset: 4px;
}
.shadow-none{
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline{
  outline-style: solid;
}
.blur{
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter{
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition-colors{
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Hide until theme script runs (no theme/font flash on load). */
html.theme-pending {
  visibility: hidden;
}

/* ══════════════════════════════════════════
   RESET (from demo)
   ══════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
       text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

/* Skip link */
.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skipLink {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: var(--z-max);
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: var(--weight-semibold);
}

.skipLink:focus {
  top: 16px;
}

/* ══════════════════════════════════════════
   DESIGN TOKENS — LIGHT (default, A10)
   ══════════════════════════════════════════ */

:root {
  /* Fonts */
  --font-body: "VlagsterWeb", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "VlagsterCoda", system-ui, -apple-system, sans-serif;
  --font-kpi: "VlagsterBlack", system-ui, sans-serif;

  /* Font sizes */
  --text-xs: 0.6875rem;
  --text-sm: 0.75rem;
  --text-base: 0.875rem;
  --text-md: 0.9375rem;
  --text-lg: 1rem;
  --text-xl: 1.35rem;
  --text-2xl: 1.75rem;
  --text-kpi: 1.5rem;

  /* Font weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing */
  --space-1: 4px;
  --space-2: 6px;
  --space-3: 8px;
  --space-4: 10px;
  --space-5: 12px;
  --space-6: 16px;
  --space-7: 20px;
  --space-8: 24px;
  --space-9: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;

  /* Z-index */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-sidebar: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-tooltip: 700;
  --z-max: 9999;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);

  /* Transition */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  --muted-rgb: 100, 116, 139;
  --surface-rgb: 241, 245, 249;

  --accent: #1a73e8;
  --accent-hover: #1565c0;
  --accent-deep: #0d47a1;
  --accent-rgb: 26, 115, 232;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --text-ghost: #94a3b8;

  --page-bg: #f1f5f9;
  --surface-bg: rgba(255, 255, 255, 0.85);
  --surface-bg-solid: #ffffff;
  --surface-elevated: #f8fafc;
  --surface-sidebar: linear-gradient(180deg, #ffffff 0%, #f8fafc 40%, #f1f5f9 100%);

  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-default: rgba(0, 0, 0, 0.1);
  --border-medium: rgba(0, 0, 0, 0.15);
  --border-strong: rgba(0, 0, 0, 0.2);
  --border-accent: rgba(26, 115, 232, 0.2);
  --border-accent-hover: rgba(26, 115, 232, 0.4);
  --border-accent-strong: rgba(26, 115, 232, 0.3);

  --logout-hover: #dc2626;
  --logout-hover-bg: rgba(220, 38, 38, 0.06);

  --btn-primary-bg: linear-gradient(135deg, #1a73e8 0%, #1565c0 100%);
  --btn-primary-hover: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  --btn-secondary-bg: rgba(0, 0, 0, 0.04);
  --btn-secondary-color: var(--text-secondary);
  --btn-ghost-color: var(--text-muted);

  --input-bg: #f8fafc;
  --input-border: var(--border-default);
  --input-color: var(--text-primary);
  --input-placeholder: var(--text-faint);
  --input-focus: #1a73e8;

  --table-header-color: #475569;
  --table-header-border: rgba(0, 0, 0, 0.08);
  --table-cell-border: rgba(0, 0, 0, 0.04);
  --table-row-hover: rgba(0, 0, 0, 0.025);

  --scrollbar-thumb: rgba(26, 115, 232, 0.45);
  --scrollbar-thumb-hover: rgba(26, 115, 232, 0.65);

  --success: #16a34a;
  --danger: #dc2626;
  --warning: #ca8a04;
  --info: #2563eb;

  --status-pending: #2563eb;
  --status-processed: #16a34a;
  --status-error: #dc2626;
  --status-training: #d97706;
  --status-active: #0891b2;
  --status-translation: #7c3aed;
  --status-needs-data: #ea580c;

  --shadow-glow: none;

  /* Auth (light) */
  --auth-text: #1e293b;
  --auth-label: #475569;
  --auth-accent: #1a73e8;
  --auth-accent-hover: #1565c0;
  --auth-input-bg: rgba(255, 255, 255, 0.9);
  --auth-input-border: rgba(100, 116, 139, 0.25);
  --auth-input-border-hover: rgba(100, 116, 139, 0.4);
  --auth-card-bg: rgba(255, 255, 255, 0.85);
  --auth-card-border: rgba(100, 116, 139, 0.15);
  --auth-submit-bg: #1a73e8;
  --auth-submit-wrapper-bg: #ffffff;
  --auth-submit-color: #ffffff;
  --auth-submit-disabled: #94a3b8;
  --auth-divider: rgba(100, 116, 139, 0.2);
  --auth-divider-text: rgba(100, 116, 139, 0.6);
  --auth-social-border: rgba(100, 116, 139, 0.2);
  --auth-social-border-hover: rgba(100, 116, 139, 0.35);
  --auth-social-bg: rgba(255, 255, 255, 0.6);
  --auth-social-bg-hover: rgba(255, 255, 255, 0.8);
  --auth-placeholder: #64748b;
  --auth-error-bg: rgba(220, 38, 38, 0.06);
  --auth-error-border: rgba(220, 38, 38, 0.15);
  --auth-error-color: #dc2626;
  --auth-success-bg: rgba(22, 163, 74, 0.08);
  --auth-success-border: rgba(22, 163, 74, 0.2);
  --auth-success-color: #16a34a;
}

/* ══════════════════════════════════════════
   DARK THEME (A10)
   ══════════════════════════════════════════ */

[data-theme="dark"] {
  --muted-rgb: 148, 163, 184;
  --surface-rgb: 6, 16, 28;

  --accent: #1a88ff;
  --accent-hover: #4da6ff;
  --accent-deep: #0066d6;
  --accent-rgb: 26, 136, 255;

  --text-primary: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-muted: rgba(148, 163, 184, 0.72);
  --text-faint: rgba(148, 163, 184, 0.52);
  --text-ghost: rgba(148, 163, 184, 0.62);

  --page-bg: #041523;
  --surface-bg: rgba(6, 16, 28, 0.5);
  --surface-bg-solid: #0a1628;
  --surface-elevated: #0c1a2e;
  --surface-sidebar:
    radial-gradient(circle at top center, rgba(70, 151, 199, 0.28) 0%, rgba(70, 151, 199, 0.2) 25%, rgba(70, 151, 199, 0.12) 40%, rgba(4, 21, 35, 0) 65%),
    radial-gradient(circle at bottom, rgba(2, 16, 27, 0.9) 0%, rgba(2, 12, 20, 0.7) 40%, rgba(2, 7, 15, 0.9) 70%, #02070f 100%);

  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --border-accent: rgba(26, 136, 255, 0.3);
  --border-accent-hover: rgba(26, 136, 255, 0.5);
  --border-accent-strong: rgba(26, 136, 255, 0.25);

  --logout-hover: #f87171;
  --logout-hover-bg: rgba(248, 113, 113, 0.08);

  --btn-primary-bg: linear-gradient(135deg, #1a88ff 0%, #0066d6 100%);
  --btn-primary-hover: linear-gradient(135deg, #4da6ff 0%, #1a88ff 100%);
  --btn-secondary-bg: rgba(255, 255, 255, 0.05);
  --btn-secondary-color: var(--text-secondary);
  --btn-ghost-color: var(--text-muted);

  --input-bg: rgba(255, 255, 255, 0.03);
  --input-border: var(--border-default);
  --input-color: var(--text-primary);
  --input-placeholder: var(--text-muted);

  --table-header-color: var(--text-muted);
  --table-row-hover: rgba(255, 255, 255, 0.03);

  --scrollbar-thumb: rgba(26, 136, 255, 0.5);
  --scrollbar-thumb-hover: rgba(26, 136, 255, 0.75);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(var(--accent-rgb), 0.15);

  --success: #4ade80;
  --danger: #f87171;
  --warning: #facc15;
  --info: #60a5fa;

  --status-pending: #3b82f6;
  --status-processed: #22c55e;
  --status-error: #ef4444;
  --status-training: #f59e0b;
  --status-active: #0be7d5;
  --status-translation: #8b5cf6;
  --status-needs-data: #f97316;

  /* Auth (dark) */
  --auth-text: #bfdbfe;
  --auth-label: #93c5fd;
  --auth-accent: #1451d3;
  --auth-accent-hover: #2563eb;
  --auth-input-bg: rgba(0, 0, 0, 0.4);
  --auth-input-border: rgba(255, 255, 255, 0.12);
  --auth-input-border-hover: rgba(255, 255, 255, 0.18);
  --auth-card-bg: rgb(15 23 42 / 48%);
  --auth-card-border: rgba(255, 255, 255, 0.12);
  --auth-submit-bg: rgb(12, 15, 28);
  --auth-submit-wrapper-bg: rgb(18, 24, 42);
  --auth-submit-color: #cbd5e1;
  --auth-submit-disabled: #475569;
  --auth-divider: rgba(147, 197, 253, 0.2);
  --auth-divider-text: rgba(147, 197, 253, 0.6);
  --auth-social-border: rgba(147, 197, 253, 0.25);
  --auth-social-border-hover: rgba(147, 197, 253, 0.4);
  --auth-social-bg: rgba(0, 0, 0, 0.25);
  --auth-social-bg-hover: rgba(0, 0, 0, 0.35);
  --auth-placeholder: rgba(147, 197, 253, 0.65);
  --auth-error-bg: rgba(239, 68, 68, 0.1);
  --auth-error-border: rgba(239, 68, 68, 0.2);
  --auth-error-color: #ef4444;
  --auth-success-bg: rgba(34, 197, 94, 0.12);
  --auth-success-border: rgba(34, 197, 94, 0.25);
  --auth-success-color: #86efac;
}

/* Dark theme: native select dropdown (options) — avoid white dropdown in dark mode */
html[data-theme="dark"] select option {
  background-color: #0a1628;
  color: #e2e8f0;
}

/* Dark theme body background (gradient like demo) */
[data-theme="dark"] body {
  background:
    radial-gradient(
      circle at top center,
      rgba(70, 151, 199, 0.28) 0%,
      rgba(70, 151, 199, 0.2) 25%,
      rgba(70, 151, 199, 0.12) 40%,
      rgba(4, 21, 35, 0) 65%
    ),
    radial-gradient(
      circle at bottom,
      rgba(2, 16, 27, 0.9) 0%,
      rgba(2, 12, 20, 0.7) 40%,
      rgba(2, 7, 15, 0.9) 70%,
      #02070f 100%
    );
  background-color: #041523;
  background-attachment: fixed;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* ══════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

/* ══════════════════════════════════════════
   SELECTION
   ══════════════════════════════════════════ */

::-moz-selection {
  background: rgba(var(--accent-rgb), 0.3);
  color: var(--text-primary);
}

::selection {
  background: rgba(var(--accent-rgb), 0.3);
  color: var(--text-primary);
}

/* Auth submit button glow (conic gradient animation) */
@property --glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ══════════════════════════════════════════
   Sonner toasts — panel / demo style
   ══════════════════════════════════════════ */

[data-sonner-toaster] {
  --width: 380px;
}

[data-sonner-toast] {
  font-family: var(--font-body);
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: var(--surface-elevated);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22),
    0 4px 8px rgba(0, 0, 0, 0.12);
  color: var(--text-primary);
}

[data-sonner-toast] [data-title] {
  font-weight: 600;
  font-size: 0.875rem;
}

[data-sonner-toast] [data-description] {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

[data-sonner-toast][data-type="success"] {
  border-color: rgba(34, 197, 94, 0.4);
}

[data-sonner-toast][data-type="error"] {
  border-color: rgba(239, 68, 68, 0.45);
}

[data-sonner-toast][data-type="warning"] {
  border-color: rgba(245, 158, 11, 0.45);
}

[data-sonner-toast][data-type="info"] {
  border-color: rgba(59, 130, 246, 0.4);
}

[data-sonner-toast] [data-close-button] {
  border: 1px solid var(--border-subtle);
  background: var(--surface-bg-solid);
  color: var(--text-muted);
}

[data-sonner-toast] [data-close-button]:hover {
  background: var(--surface-elevated);
  color: var(--text-primary);
}

.file\:border-0::file-selector-button{
  border-width: 0px;
}

.file\:bg-transparent::file-selector-button{
  background-color: transparent;
}

.file\:text-sm::file-selector-button{
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.file\:font-medium::file-selector-button{
  font-weight: 500;
}

.placeholder\:text-muted-foreground::-moz-placeholder{
  color: var(--text-muted);
}

.placeholder\:text-muted-foreground::placeholder{
  color: var(--text-muted);
}

.hover\:underline:hover{
  text-decoration-line: underline;
}

.hover\:opacity-90:hover{
  opacity: 0.9;
}

.focus\:outline-none:focus{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-1:focus{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-\[var\(--border-accent\)\]:focus{
  --tw-ring-color: var(--border-accent);
}

.focus-visible\:outline-none:focus-visible{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus-visible\:ring-1:focus-visible{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus-visible\:ring-\[var\(--border-accent\)\]:focus-visible{
  --tw-ring-color: var(--border-accent);
}

.disabled\:pointer-events-none:disabled{
  pointer-events: none;
}

.disabled\:cursor-not-allowed:disabled{
  cursor: not-allowed;
}

.disabled\:opacity-50:disabled{
  opacity: 0.5;
}

.\[\&_svg\]\:pointer-events-none svg{
  pointer-events: none;
}

.\[\&_svg\]\:size-4 svg{
  width: 1rem;
  height: 1rem;
}

.\[\&_svg\]\:shrink-0 svg{
  flex-shrink: 0;
}

