/* =============================================================================
   PRECISION ENGINE — Admin Stylesheet
   Design System: Industrial Brutalist (Material Design 3)
   Xentral AI Companion
   ============================================================================= */

/* =============================================================================
   1. FONT IMPORTS
   Fonts werden lokal aus /static/vendor/fonts.css ausgeliefert
   (siehe Template-<link>-Eintrag und scripts/vendor_fonts.js).
   ============================================================================= */

/* =============================================================================
   2. CSS CUSTOM PROPERTIES
   ============================================================================= */
:root {
  /* Primary */
  --color-primary: #0058be;
  --color-primary-container: #2170e4;
  --color-on-primary: #ffffff;
  --color-on-primary-container: #fefcff;
  --color-on-primary-fixed: #001a42;
  --color-on-primary-fixed-variant: #004395;
  --color-primary-fixed: #d8e2ff;
  --color-primary-fixed-dim: #adc6ff;
  --color-inverse-primary: #adc6ff;

  /* Secondary */
  --color-secondary: #545f73;
  --color-on-secondary: #ffffff;
  --color-secondary-container: #d5e0f8;
  --color-on-secondary-container: #586377;
  --color-on-secondary-fixed: #111c2d;
  --color-on-secondary-fixed-variant: #3c475a;
  --color-secondary-fixed: #d8e3fb;
  --color-secondary-fixed-dim: #bcc7de;

  /* Tertiary */
  --color-tertiary: #924700;
  --color-tertiary-container: #b75b00;
  --color-on-tertiary: #ffffff;
  --color-on-tertiary-container: #fffbff;
  --color-on-tertiary-fixed: #311400;
  --color-on-tertiary-fixed-variant: #723600;
  --color-tertiary-fixed: #ffdcc6;
  --color-tertiary-fixed-dim: #ffb786;

  /* Error */
  --color-error: #ba1a1a;
  --color-on-error: #ffffff;
  --color-error-container: #ffdad6;
  --color-on-error-container: #93000a;

  /* Surface */
  --color-surface: #f7f9fb;
  --color-surface-dim: #d8dadc;
  --color-surface-bright: #f7f9fb;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #f2f4f6;
  --color-surface-container: #eceef0;
  --color-surface-container-high: #e6e8ea;
  --color-surface-container-highest: #e0e3e5;
  --color-surface-variant: #e0e3e5;
  --color-surface-tint: #005ac2;
  --color-on-surface: #191c1e;
  --color-on-surface-variant: #424754;
  --color-background: #f7f9fb;
  --color-on-background: #191c1e;

  /* Outline */
  --color-outline: #727785;
  --color-outline-variant: #c2c6d6;

  /* Inverse */
  --color-inverse-surface: #2d3133;
  --color-inverse-on-surface: #eff1f3;

  /* Layout */
  --sidebar-width: 260px;
  --topbar-height: 60px;
  --sidebar-bg: #1a2332;

  /* Border Radius (Design Config) */
  --radius-default: 0.125rem;
  --radius-sm: 0.125rem;
  --radius-lg: 0.25rem;
  --radius-xl: 0.5rem;
  --radius-full: 0.75rem;
}

/* =============================================================================
   3. RESET / BASE
   ============================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
  tab-size: 4;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  color: var(--color-on-surface);
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

ol, ul {
  list-style: none;
}

/* =============================================================================
   4. LAYOUT — Sidebar, TopNavBar, Main Content
   ============================================================================= */

/* Sidebar */
aside.fixed,
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100%;
  background-color: var(--sidebar-bg);
  z-index: 50;
}

/* TopNavBar */
header.fixed,
.topbar {
  position: fixed;
  top: 0;
  right: 0;
  height: var(--topbar-height);
  z-index: 40;
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
  min-height: 100vh;
}

/* =============================================================================
   5. TAILWIND UTILITY CLASSES
   ============================================================================= */

/* ---------- Display ---------- */
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.table { display: table; }

/* ---------- Position ---------- */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.static { position: static; }
.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.left-0 { left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.bottom-2 { bottom: 0.5rem; }

/* ---------- Z-Index ---------- */
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.-z-10 { z-index: -10; }

/* ---------- Overflow ---------- */
.overflow-hidden { overflow: hidden; }

/* ---------- Flexbox ---------- */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }

/* ---------- Grid ---------- */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-8 { grid-column: span 8 / span 8; }
.col-span-12 { grid-column: span 12 / span 12; }

/* ---------- Gap ---------- */
.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* ---------- Space-Y ---------- */
.space-y-0 > :not([hidden]) ~ :not([hidden]) { margin-top: 0; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-y-10 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem; }
.space-y-12 > :not([hidden]) ~ :not([hidden]) { margin-top: 3rem; }

/* ---------- Padding ---------- */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.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-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-12 { padding-top: 3rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-10 { padding-bottom: 2.5rem; }

.pl-0 { padding-left: 0; }
.pl-2 { padding-left: 0.5rem; }
.pl-3 { padding-left: 0.75rem; }
.pl-4 { padding-left: 1rem; }
.pl-10 { padding-left: 2.5rem; }

.pr-3 { padding-right: 0.75rem; }
.pr-4 { padding-right: 1rem; }
.pr-10 { padding-right: 2.5rem; }

/* ---------- Margin ---------- */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-5 { margin: 1.25rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mx-0 { margin-left: 0; margin-right: 0; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }

.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }

.ml-0 { margin-left: 0; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.ml-8 { margin-left: 2rem; }
.ml-auto { margin-left: auto; }

.mr-0 { margin-right: 0; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }

/* ---------- Width ---------- */
.w-0 { width: 0; }
.w-1 { width: 0.25rem; }
.w-1\.5 { width: 0.375rem; }
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-40 { width: 10rem; }
.w-48 { width: 12rem; }
.w-56 { width: 14rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-1\/2 { width: 50%; }

/* ---------- Height ---------- */
.h-0 { height: 0; }
.h-1 { height: 0.25rem; }
.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-full { height: 100%; }
.h-auto { height: auto; }

/* ---------- Min / Max ---------- */
.min-h-screen { min-height: 100vh; }
.min-h-0 { min-height: 0; }
.min-w-0 { min-width: 0; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-full { max-width: 100%; }

/* ---------- Arbitrary Sizing ---------- */
.w-\[260px\] { width: 260px; }
.w-\[calc\(100\%-260px\)\] { width: calc(100% - 260px); }
.w-\[600px\] { width: 600px; }
.w-\[1px\] { width: 1px; }
.h-\[60px\] { height: 60px; }
.h-\[240px\] { height: 240px; }
.h-\[600px\] { height: 600px; }
.max-w-\[440px\] { max-width: 440px; }
.max-w-\[1400px\] { max-width: 1400px; }
.pt-\[60px\] { padding-top: 60px; }
.pl-\[260px\] { padding-left: 260px; }
.ml-\[260px\] { margin-left: 260px; }
.w-\[75\%\] { width: 75%; }

/* ---------- Font Size ---------- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

/* Arbitrary font sizes */
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[12px\] { font-size: 12px; }
.text-\[18px\] { font-size: 18px; }
.text-\[20px\] { font-size: 20px; }

/* ---------- Font Weight ---------- */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ---------- Font Family ---------- */
.font-headline { font-family: 'IBM Plex Sans', sans-serif; }
.font-body { font-family: 'IBM Plex Sans', sans-serif; }
.font-label { font-family: 'Space Grotesk', sans-serif; }
.font-mono { font-family: 'IBM Plex Mono', monospace; }

/* ---------- Letter Spacing ---------- */
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* ---------- Line Height ---------- */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

/* ---------- Text Alignment ---------- */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ---------- Text Transform / Decoration ---------- */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.italic { font-style: italic; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.underline { text-decoration: underline; }
.hover\:underline:hover { text-decoration: underline; }

/* ---------- Text Colors — Theme ---------- */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-transparent { color: transparent; }
.text-primary { color: var(--color-primary); }
.text-primary-container { color: var(--color-primary-container); }
.text-on-primary { color: var(--color-on-primary); }
.text-on-primary-container { color: var(--color-on-primary-container); }
.text-error { color: var(--color-error); }
.text-on-error { color: var(--color-on-error); }
.text-on-error-container { color: var(--color-on-error-container); }
.text-surface { color: var(--color-surface); }
.text-on-surface { color: var(--color-on-surface); }
.text-on-surface-variant { color: var(--color-on-surface-variant); }
.text-secondary { color: var(--color-secondary); }
.text-on-secondary { color: var(--color-on-secondary); }
.text-on-secondary-container { color: var(--color-on-secondary-container); }
.text-on-secondary-fixed-variant { color: var(--color-on-secondary-fixed-variant); }
.text-tertiary { color: var(--color-tertiary); }
.text-outline { color: var(--color-outline); }
.text-outline-variant { color: var(--color-outline-variant); }
.text-inverse-surface { color: var(--color-inverse-surface); }
.text-inverse-on-surface { color: var(--color-inverse-on-surface); }

/* Slate text colors */
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }

/* Arbitrary text colors */
.text-\[\#0058be\] { color: #0058be; }

/* Text with opacity */
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }

/* ---------- Background Colors — Theme ---------- */
.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }
.bg-transparent { background-color: transparent; }
.bg-primary { background-color: var(--color-primary); }
.bg-primary-container { background-color: var(--color-primary-container); }
.bg-error { background-color: var(--color-error); }
.bg-error-container { background-color: var(--color-error-container); }
.bg-surface { background-color: var(--color-surface); }
.bg-surface-dim { background-color: var(--color-surface-dim); }
.bg-surface-container-lowest { background-color: var(--color-surface-container-lowest); }
.bg-surface-container-low { background-color: var(--color-surface-container-low); }
.bg-surface-container { background-color: var(--color-surface-container); }
.bg-surface-container-high { background-color: var(--color-surface-container-high); }
.bg-surface-container-highest { background-color: var(--color-surface-container-highest); }
.bg-surface-variant { background-color: var(--color-surface-variant); }
.bg-inverse-surface { background-color: var(--color-inverse-surface); }
.bg-secondary-container { background-color: var(--color-secondary-container); }
.bg-outline-variant { background-color: var(--color-outline-variant); }

/* Slate backgrounds */
.bg-slate-200 { background-color: #e2e8f0; }
.bg-slate-300 { background-color: #cbd5e1; }
.bg-slate-400 { background-color: #94a3b8; }
.bg-slate-500 { background-color: #64748b; }
.bg-slate-700 { background-color: #334155; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900 { background-color: #0f172a; }

/* Emerald */
.bg-emerald-500 { background-color: #10b981; }

/* Arbitrary bg colors */
.bg-\[\#1a2332\] { background-color: #1a2332; }
.bg-\[\#0a0f18\] { background-color: #0a0f18; }
.bg-\[\#004bb1\] { background-color: #004bb1; }
.bg-\[\#0058be\] { background-color: #0058be; }
.bg-\[\#10b981\] { background-color: #10b981; }

/* Backgrounds with opacity */
.bg-primary\/10 { background-color: rgba(0, 88, 190, 0.1); }
.bg-primary\/20 { background-color: rgba(0, 88, 190, 0.2); }
.bg-primary-container\/10 { background-color: rgba(33, 112, 228, 0.1); }
.bg-primary-fixed\/30 { background-color: rgba(216, 226, 255, 0.3); }
.bg-error-container\/20 { background-color: rgba(255, 218, 214, 0.2); }
.bg-white\/85 { background-color: rgba(255, 255, 255, 0.85); }

/* ---------- Border ---------- */
.border { border-width: 1px; border-style: solid; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-none { border-style: none; }

/* Border Colors */
.border-transparent { border-color: transparent; }
.border-primary { border-color: var(--color-primary); }
.border-error { border-color: var(--color-error); }
.border-outline-variant { border-color: var(--color-outline-variant); }
.border-surface-container { border-color: var(--color-surface-container); }
.border-surface-container-highest { border-color: var(--color-surface-container-highest); }
.border-on-surface { border-color: var(--color-on-surface); }
.border-white { border-color: #ffffff; }
.border-slate-300 { border-color: #cbd5e1; }

/* Arbitrary border colors */
.border-\[\#0058be\] { border-color: #0058be; }

/* Border with opacity */
.border-outline-variant\/30 { border-color: rgba(194, 198, 214, 0.3); }
.border-outline-variant\/20 { border-color: rgba(194, 198, 214, 0.2); }
.border-outline-variant\/10 { border-color: rgba(194, 198, 214, 0.1); }
.border-slate-700\/50 { border-color: rgba(51, 65, 85, 0.5); }
.border-slate-800\/50 { border-color: rgba(30, 41, 59, 0.5); }
.border-primary\/30 { border-color: rgba(0, 88, 190, 0.3); }

/* Border style */
.border-dashed { border-style: dashed; }

/* ---------- Border Radius (Design Config overrides) ---------- */
.rounded { border-radius: var(--radius-default); }
.rounded-sm { border-radius: var(--radius-default); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.rounded-none { border-radius: 0; }

/* ---------- Shadow ---------- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-none { box-shadow: none; }
.shadow-primary\/20 { box-shadow: 0 10px 15px -3px rgba(0, 88, 190, 0.2), 0 4px 6px -4px rgba(0, 88, 190, 0.2); }

/* ---------- Opacity ---------- */
.opacity-0 { opacity: 0; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ---------- Backdrop / Blur ---------- */
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.blur-\[120px\] { filter: blur(120px); }

/* ---------- Transitions ---------- */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.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; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* ---------- Transform ---------- */
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-x-0 { transform: translateX(0); }
.scale-105 { transform: scale(1.05); }

/* ---------- Pointer / Cursor ---------- */
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }

/* ---------- Object Fit ---------- */
.object-cover { object-fit: cover; }

/* ---------- Aspect Ratio ---------- */
.aspect-square { aspect-ratio: 1 / 1; }

/* ---------- Resize ---------- */
.resize-none { resize: none; }

/* ---------- Animation ---------- */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---------- Divide ---------- */
.divide-y > :not([hidden]) ~ :not([hidden]) {
  border-top-width: 1px;
  border-top-style: solid;
}
.divide-surface-container > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--color-surface-container);
}

/* ---------- Brightness ---------- */
.hover\:brightness-110:hover { filter: brightness(1.1); }

/* =============================================================================
   HOVER VARIANTS
   ============================================================================= */
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-primary:hover { color: var(--color-primary); }
.hover\:text-error:hover { color: var(--color-error); }
.hover\:text-slate-900:hover { color: #0f172a; }
.hover\:text-on-surface:hover { color: var(--color-on-surface); }
.hover\:text-\[\#0058be\]:hover { color: #0058be; }

.hover\:bg-primary:hover { background-color: var(--color-primary); }
.hover\:bg-primary-container:hover { background-color: var(--color-primary-container); }
.hover\:bg-\[\#004bb1\]:hover { background-color: #004bb1; }
.hover\:bg-slate-800:hover { background-color: #1e293b; }
.hover\:bg-surface-container:hover { background-color: var(--color-surface-container); }
.hover\:bg-surface-container-low:hover { background-color: var(--color-surface-container-low); }
.hover\:bg-surface-container-high:hover { background-color: var(--color-surface-container-high); }
.hover\:bg-surface-dim:hover { background-color: var(--color-surface-dim); }

.hover\:border-primary\/30:hover { border-color: rgba(0, 88, 190, 0.3); }

.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:translate-x-1:hover { transform: translateX(0.25rem); }

/* =============================================================================
   GROUP HOVER VARIANTS
   ============================================================================= */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }

/* =============================================================================
   FOCUS VARIANTS
   ============================================================================= */
.focus\:ring-0:focus { box-shadow: none; }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px var(--color-primary); }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--color-primary); }
.focus\:ring-primary:focus { --tw-ring-color: var(--color-primary); }
.focus\:ring-primary\/20:focus { box-shadow: 0 0 0 2px rgba(0, 88, 190, 0.2); }
.focus\:ring-offset-0:focus { --tw-ring-offset-width: 0px; }
.focus\:border-primary:focus { border-color: var(--color-primary); }

/* =============================================================================
   RESPONSIVE — md (768px+)
   ============================================================================= */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
}

/* =============================================================================
   RESPONSIVE — lg (1024px+)
   ============================================================================= */
@media (min-width: 1024px) {
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:col-span-12 { grid-column: span 12 / span 12; }
  .lg\:w-\[70\%\] { width: 70%; }
  .lg\:w-\[30\%\] { width: 30%; }
  .lg\:flex-row { flex-direction: row; }
}

/* =============================================================================
   6. COMPONENT CLASSES
   ============================================================================= */

/* ---------- Material Symbols ----------
   Hinweis: font-size NICHT hier setzen -- der 24px-Default kommt aus
   /static/vendor/fonts.css (laedt frueher), damit Utility-Klassen wie
   .text-sm/.text-lg/.text-xl die Icon-Groesse pro Stelle ueberschreiben
   koennen. Andernfalls (Regel kaeme nach den Utilities) wuerde der Icon
   immer 24px gross sein und z.B. den Login-Input-Placeholder ueberdecken. */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ---------- Data Mono / Mono Data ---------- */
.data-mono,
.mono-data {
  font-family: 'IBM Plex Mono', monospace;
}

/* ---------- Label Styles ---------- */
.label-style {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
}

.label-sm {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.625rem;
}

.label-caps {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =============================================================================
   7. FORM UTILITIES (Tailwind Forms Plugin Replacements)
   ============================================================================= */

/* Base form element styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
input[type="tel"],
textarea,
select {
  appearance: none;
  background-color: #ffffff;
  border-width: 1px;
  border-style: solid;
  border-color: var(--color-outline-variant);
  border-radius: var(--radius-default);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

/* Checkbox styling */
input[type="checkbox"] {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-width: 1px;
  border-style: solid;
  border-color: var(--color-outline-variant);
  border-radius: var(--radius-default);
  background-color: var(--color-surface-container-low);
  cursor: pointer;
}

input[type="checkbox"]:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Placeholder text */
.placeholder\:text-slate-400::placeholder { color: #94a3b8; }
::placeholder { color: #94a3b8; }

/* Select dropdown arrow */
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Dark mode sidebar overrides */
.dark .bg-\[\#0a0f18\] { background-color: #0a0f18; }

/* =============================================================================
   8. PRINT
   ============================================================================= */
@media print {
  aside.fixed,
  header.fixed,
  .sidebar,
  .topbar {
    display: none;
  }
  main {
    margin-left: 0 !important;
    padding-top: 0 !important;
  }
}

/* =============================================================================
   DIFF STYLES
   ============================================================================= */
.diff-container {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  padding: 1rem;
  background-color: var(--color-surface-container-low);
  border-radius: 0.25rem;
  overflow-x: auto;
}

.diff-add {
  background-color: rgba(16, 185, 129, 0.15);
  color: #065f46;
  padding: 0.125rem 0.25rem;
  border-left: 3px solid #10b981;
  display: block;
}

.diff-del {
  background-color: rgba(186, 26, 26, 0.1);
  color: var(--color-error);
  padding: 0.125rem 0.25rem;
  border-left: 3px solid var(--color-error);
  text-decoration: line-through;
  display: block;
}

/* =============================================================================
   CONFIRM DIALOG (native <dialog>)
   Reset des Browser-Defaults; passt zum App-Look via Tailwind-Utilities.
   ============================================================================= */
.confirm-dialog {
  margin: auto;
  border: 1px solid var(--color-outline-variant);
  max-width: min(92vw, 28rem);
  width: 100%;
}

.confirm-dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Open-Animation */
.confirm-dialog[open] {
  animation: confirm-dialog-in 140ms ease-out;
}

.confirm-dialog[open]::backdrop {
  animation: confirm-backdrop-in 140ms ease-out;
}

@keyframes confirm-dialog-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes confirm-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =============================================================================
   BATCH-BAR / SELECT-ALL-BANNER Utilities
   ============================================================================= */
.bottom-6 { bottom: 1.5rem; }
.left-1\/2 { left: 50%; }
.bg-on-surface { background-color: var(--color-on-surface); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.20); }
.text-white\/70 { color: rgba(255, 255, 255, 0.70); }
.w-px { width: 1px; }
.hover\:text-primary-fixed:hover { color: var(--color-primary-fixed); }
