/* djust-theming - Complete Theme CSS */

@layer base, tokens, components, djust-components, theme;

@layer tokens {
:root {
  --background: 223 39% 7%;
  --foreground: 214 32% 91%;
  --card: 224 34% 13%;
  --card-foreground: 214 32% 91%;
  --popover: 224 34% 13%;
  --popover-foreground: 214 32% 91%;
  --primary: 28 80% 55%;
  --primary-foreground: 0 0% 100%;
  --secondary: 154 48% 53%;
  --secondary-foreground: 0 0% 100%;
  --muted: 224 30% 16%;
  --muted-foreground: 215 20% 65%;
  --accent: 157 46% 49%;
  --accent-foreground: 0 0% 100%;
  --destructive: 350 89% 60%;
  --destructive-foreground: 0 0% 100%;
  --success: 160 84% 39%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 50%;
  --warning-foreground: 0 0% 100%;
  --info: 199 89% 48%;
  --info-foreground: 0 0% 100%;
  --link: 28 80% 55%;
  --link-hover: 28 80% 65%;
  --code: 224 34% 13%;
  --code-foreground: 214 32% 91%;
  --selection: 28 80% 55%;
  --selection-foreground: 0 0% 100%;
  --border: 215 25% 18%;
  --input: 215 25% 18%;
  --ring: 28 80% 55%;
  --surface-1: 223 39% 7%;
  --surface-2: 224 34% 13%;
  --surface-3: 215 25% 18%;
  --sidebar-background: 223 39% 7%;
  --sidebar-foreground: 214 32% 91%;
  --sidebar-primary: 28 80% 55%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 157 46% 49%;
  --sidebar-accent-foreground: 0 0% 100%;
  --sidebar-border: 215 25% 18%;
  --sidebar-ring: 28 80% 55%;
  --chart-1: 28 80% 55%;
  --chart-2: 154 48% 53%;
  --chart-3: 157 46% 49%;
  --chart-4: 160 84% 39%;
  --chart-5: 38 92% 50%;
  --chart-6: 199 89% 48%;

  --color-brand-dark: #0B0F19;
  --color-brand-panel: #151B2B;
  --color-brand-rust: #E57324;
  --color-brand-django: #44B78B;
  --color-brand-text: #E2E8F0;
  --color-brand-muted: #94A3B8;
  --color-brand-border: #1E293B;
  --color-brand-danger: #F43F5E;
  --color-brand-success: #10B981;
  --background-image-grid-pattern: linear-gradient(to right, #1e293b 1px, transparent 1px), linear-gradient(to bottom, #1e293b 1px, transparent 1px);
  --background-image-gradient-radial: radial-gradient(var(--tw-gradient-stops));
  --animation-pulse-slow: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  --radius: 0.5rem;
}

html[data-theme="light"] {
  --background: 220 10% 98%;
  --foreground: 220 10% 4%;
  --card: 220 10% 100%;
  --card-foreground: 220 10% 4%;
  --popover: 220 10% 100%;
  --popover-foreground: 220 10% 4%;
  --primary: 28 80% 53%;
  --primary-foreground: 0 0% 100%;
  --secondary: 154 48% 39%;
  --secondary-foreground: 0 0% 100%;
  --muted: 215 14% 93%;
  --muted-foreground: 215 10% 45%;
  --accent: 157 46% 39%;
  --accent-foreground: 0 0% 100%;
  --destructive: 350 89% 60%;
  --destructive-foreground: 0 0% 100%;
  --success: 160 84% 39%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 50%;
  --warning-foreground: 0 0% 100%;
  --info: 199 89% 48%;
  --info-foreground: 0 0% 100%;
  --link: 28 80% 53%;
  --link-hover: 28 80% 45%;
  --code: 215 14% 93%;
  --code-foreground: 215 10% 20%;
  --selection: 28 80% 53%;
  --selection-foreground: 0 0% 100%;
  --border: 215 14% 88%;
  --input: 215 14% 88%;
  --ring: 28 80% 53%;
  --surface-1: 220 10% 98%;
  --surface-2: 220 10% 95%;
  --surface-3: 220 10% 92%;
  --sidebar-background: 220 10% 98%;
  --sidebar-foreground: 220 10% 4%;
  --sidebar-primary: 28 80% 53%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 157 46% 39%;
  --sidebar-accent-foreground: 0 0% 100%;
  --sidebar-border: 215 14% 88%;
  --sidebar-ring: 28 80% 53%;
  --chart-1: 28 80% 53%;
  --chart-2: 154 48% 39%;
  --chart-3: 157 46% 39%;
  --chart-4: 160 84% 39%;
  --chart-5: 38 92% 50%;
  --chart-6: 199 89% 48%;

  --color-brand-dark: #0B0F19;
  --color-brand-panel: #151B2B;
  --color-brand-rust: #E57324;
  --color-brand-django: #44B78B;
  --color-brand-text: #E2E8F0;
  --color-brand-muted: #94A3B8;
  --color-brand-border: #1E293B;
  --color-brand-danger: #F43F5E;
  --color-brand-success: #10B981;
  --background-image-grid-pattern: linear-gradient(to right, #1e293b 1px, transparent 1px), linear-gradient(to bottom, #1e293b 1px, transparent 1px);
  --background-image-gradient-radial: radial-gradient(var(--tw-gradient-stops));
  --animation-pulse-slow: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  --color-brand-dark: #f8fafc !important;
  --color-brand-panel: #f1f5f9 !important;
  --color-brand-text: #0f172a !important;
  --color-brand-muted: #64748b !important;
  --color-brand-border: #e2e8f0 !important;
}
html[data-theme="dark"] {
  --background: 223 39% 7%;
  --foreground: 214 32% 91%;
  --card: 224 34% 13%;
  --card-foreground: 214 32% 91%;
  --popover: 224 34% 13%;
  --popover-foreground: 214 32% 91%;
  --primary: 28 80% 55%;
  --primary-foreground: 0 0% 100%;
  --secondary: 154 48% 53%;
  --secondary-foreground: 0 0% 100%;
  --muted: 224 30% 16%;
  --muted-foreground: 215 20% 65%;
  --accent: 157 46% 49%;
  --accent-foreground: 0 0% 100%;
  --destructive: 350 89% 60%;
  --destructive-foreground: 0 0% 100%;
  --success: 160 84% 39%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 50%;
  --warning-foreground: 0 0% 100%;
  --info: 199 89% 48%;
  --info-foreground: 0 0% 100%;
  --link: 28 80% 55%;
  --link-hover: 28 80% 65%;
  --code: 224 34% 13%;
  --code-foreground: 214 32% 91%;
  --selection: 28 80% 55%;
  --selection-foreground: 0 0% 100%;
  --border: 215 25% 18%;
  --input: 215 25% 18%;
  --ring: 28 80% 55%;
  --surface-1: 223 39% 7%;
  --surface-2: 224 34% 13%;
  --surface-3: 215 25% 18%;
  --sidebar-background: 223 39% 7%;
  --sidebar-foreground: 214 32% 91%;
  --sidebar-primary: 28 80% 55%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 157 46% 49%;
  --sidebar-accent-foreground: 0 0% 100%;
  --sidebar-border: 215 25% 18%;
  --sidebar-ring: 28 80% 55%;
  --chart-1: 28 80% 55%;
  --chart-2: 154 48% 53%;
  --chart-3: 157 46% 49%;
  --chart-4: 160 84% 39%;
  --chart-5: 38 92% 50%;
  --chart-6: 199 89% 48%;

  --color-brand-dark: #0B0F19;
  --color-brand-panel: #151B2B;
  --color-brand-rust: #E57324;
  --color-brand-django: #44B78B;
  --color-brand-text: #E2E8F0;
  --color-brand-muted: #94A3B8;
  --color-brand-border: #1E293B;
  --color-brand-danger: #F43F5E;
  --color-brand-success: #10B981;
  --background-image-grid-pattern: linear-gradient(to right, #1e293b 1px, transparent 1px), linear-gradient(to bottom, #1e293b 1px, transparent 1px);
  --background-image-gradient-radial: radial-gradient(var(--tw-gradient-stops));
  --animation-pulse-slow: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  --color-brand-dark: #0B0F19 !important;
  --color-brand-panel: #151B2B !important;
  --color-brand-rust: #E57324 !important;
  --color-brand-django: #44B78B !important;
  --color-brand-text: #E2E8F0 !important;
  --color-brand-muted: #94A3B8 !important;
  --color-brand-border: #1E293B !important;
  --color-brand-danger: #F43F5E !important;
  --color-brand-success: #10B981 !important;
  --background-image-grid-pattern: linear-gradient(to right, #1e293b 1px, transparent 1px), linear-gradient(to bottom, #1e293b 1px, transparent 1px) !important;
  --background-image-gradient-radial: radial-gradient(var(--tw-gradient-stops)) !important;
  --animation-pulse-slow: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}




/* djust-theming - Design Tokens */

:root {
  /* Spacing scale (4px base unit) */
  --space-0: 0;
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* Typography scale */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */

  /* Line heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Font weights */
  --font-thin: 100;
  --font-extralight: 200;
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;

  /* Extended border radius (based on theme's --radius) */
  --radius-sm: calc(var(--radius) - 0.125rem);
  --radius-md: var(--radius);
  --radius-lg: calc(var(--radius) + 0.125rem);
  --radius-xl: calc(var(--radius) + 0.25rem);
  --radius-2xl: calc(var(--radius) + 0.5rem);
  --radius-full: 9999px;

  /* Transitions and animations */
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --duration-slower: 500ms;

  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Responsive breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  /* Layout dimensions */
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 64px;
  --topbar-height: 56px;
}

/* Theme-aware shadows */
:root,
[data-theme="light"] {
  --shadow-sm: 0 1px 2px 0 hsl(var(--foreground) / 0.05);
  --shadow-md: 0 4px 12px -4px hsl(var(--foreground) / 0.1);
  --shadow-lg: 0 8px 16px -6px hsl(var(--foreground) / 0.15);
  --shadow-xl: 0 20px 25px -5px hsl(var(--foreground) / 0.1), 0 10px 10px -5px hsl(var(--foreground) / 0.04);
}

.dark,
[data-theme="dark"] {
  --shadow-sm: 0 1px 3px 0 hsl(0 0% 0% / 0.3);
  --shadow-md: 0 4px 12px -4px hsl(0 0% 0% / 0.4);
  --shadow-lg: 0 8px 16px -6px hsl(0 0% 0% / 0.5);
  --shadow-xl: 0 20px 25px -5px hsl(0 0% 0% / 0.25), 0 10px 10px -5px hsl(0 0% 0% / 0.1);
}

/* Typography hierarchy */
.h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
}

.h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
}

.h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
}

.h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
}

.h5 {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
}

.h6 {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
}

/* Body text variants */
.text-body {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.text-small {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.text-tiny {
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}

/* Text style utilities */
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Interactive state patterns */
.interactive {
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
}

.interactive:hover {
  background-color: hsl(var(--accent));
}

.interactive:active {
  transform: scale(0.98);
}

.interactive:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.interactive:disabled,
.interactive[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Link patterns */
.link {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--duration-fast) ease;
}

.link:hover {
  text-decoration-color: currentColor;
}

.link:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-radius: 2px;
}

/* Focus ring utilities */
.focus-ring:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.focus-ring-inset:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: -2px;
}

/* Layout utilities */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Scrollbar styling */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: hsl(var(--muted));
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.3);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.5);
}

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOutToRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

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

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

/* Animation utility classes */
.fade-in {
  animation: fadeIn var(--duration-normal) ease;
}

.fade-out {
  animation: fadeOut var(--duration-normal) ease;
}

.slide-in-right {
  animation: slideInFromRight var(--duration-normal) ease;
}

.slide-out-right {
  animation: slideOutToRight var(--duration-normal) ease;
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.spin {
  animation: spin 1s linear infinite;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast accessibility */
@media (prefers-contrast: more) {
  :root {
    --border-width: 2px;
    --ring-width: 3px;
    --ring-offset: 3px;
  }

  *,
  *::before,
  *::after {
    border-style: solid;
  }

  *:focus-visible {
    outline: var(--ring-width, 3px) solid hsl(var(--ring));
    outline-offset: var(--ring-offset, 3px);
  }

  .btn,
  .card-theme,
  .input-theme,
  .badge-primary,
  .badge-secondary,
  .badge-destructive,
  .badge-success,
  .badge-warning,
  .badge-info {
    border-width: var(--border-width, 2px);
  }
}
}

:root {
  /* ========================================
     Theme: Material Design
     Google's Material Design system
     ======================================== */

  /* Typography */
  --font-sans: Roboto, -apple-system, system-ui, sans-serif;
  --font-mono: Roboto Mono, monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  --leading-loose: 2.0;

  /* Spacing */
  --space-base: 0.25rem;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1.0rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2.0rem;
  --space-10: 2.5rem;
  --space-12: 3.0rem;
  --space-16: 4.0rem;
  --space-20: 5.0rem;
  --space-24: 6.0rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.14), 0 3px 4px rgba(0,0,0,0.12), 0 1px 5px rgba(0,0,0,0.2);
  --shadow: 0 4px 8px rgba(0,0,0,0.14), 0 6px 10px rgba(0,0,0,0.12), 0 2px 16px rgba(0,0,0,0.2);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 12px 17px rgba(0,0,0,0.14), 0 5px 22px rgba(0,0,0,0.12), 0 7px 8px rgba(0,0,0,0.2);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

  /* Animations */
  --duration-fast: 0.1s;
  --duration-normal: 0.2s;
  --duration-slow: 0.3s;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@layer base {
/* Base styles */
* {
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-feature-settings: "rlig" 1, "calt" 1;
}

/* Smooth theme transitions */
*,
*::before,
*::after {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none;
  }
}
}

@layer components {
/* Theme utility classes */

/* Backgrounds */
.bg-background { background-color: hsl(var(--background)); }
.bg-foreground { background-color: hsl(var(--foreground)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-popover { background-color: hsl(var(--popover)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-accent { background-color: hsl(var(--accent)); }
.bg-destructive { background-color: hsl(var(--destructive)); }
.bg-success { background-color: hsl(var(--success)); }
.bg-warning { background-color: hsl(var(--warning)); }
.bg-info { background-color: hsl(var(--info)); }
.bg-code { background-color: hsl(var(--code)); }
.bg-selection { background-color: hsl(var(--selection)); }

/* Text colors */
.text-foreground { color: hsl(var(--foreground)); }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.text-popover-foreground { color: hsl(var(--popover-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-accent-foreground { color: hsl(var(--accent-foreground)); }
.text-destructive { color: hsl(var(--destructive)); }
.text-destructive-foreground { color: hsl(var(--destructive-foreground)); }
.text-success { color: hsl(var(--success)); }
.text-success-foreground { color: hsl(var(--success-foreground)); }
.text-warning { color: hsl(var(--warning)); }
.text-warning-foreground { color: hsl(var(--warning-foreground)); }
.text-info { color: hsl(var(--info)); }
.text-info-foreground { color: hsl(var(--info-foreground)); }
.text-link { color: hsl(var(--link)); }
.text-code-foreground { color: hsl(var(--code-foreground)); }
.text-selection-foreground { color: hsl(var(--selection-foreground)); }

/* Borders */
.border-border { border-color: hsl(var(--border)); }
.border-input { border-color: hsl(var(--input)); }
.border-primary { border-color: hsl(var(--primary)); }
.border-secondary { border-color: hsl(var(--secondary)); }
.border-destructive { border-color: hsl(var(--destructive)); }
.border-success { border-color: hsl(var(--success)); }
.border-warning { border-color: hsl(var(--warning)); }
.border-info { border-color: hsl(var(--info)); }

/* Ring (focus) */
.ring-ring { --tw-ring-color: hsl(var(--ring)); }

/* Rounded corners using theme radius */
.rounded-theme { border-radius: var(--radius); }
.rounded-theme-sm { border-radius: calc(var(--radius) - 0.25rem); }
.rounded-theme-md { border-radius: calc(var(--radius) + 0.25rem); }
.rounded-theme-lg { border-radius: calc(var(--radius) + 0.5rem); }

/* Common component patterns */
.card-theme {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: var(--radius);
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-radius: var(--radius);
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.btn-destructive {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  border-radius: var(--radius);
}

.btn-destructive:hover {
  background-color: hsl(var(--destructive) / 0.9);
}

.input-theme {
  background-color: transparent;
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
}

.input-theme:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.5);
}

/* Badge variants */
.badge-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.badge-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.badge-destructive {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.badge-success {
  background-color: hsl(var(--success));
  color: hsl(var(--success-foreground));
}

.badge-warning {
  background-color: hsl(var(--warning));
  color: hsl(var(--warning-foreground));
}

.badge-info {
  background-color: hsl(var(--info));
  color: hsl(var(--info-foreground));
}

/* Link styles */
a,
.link {
  color: hsl(var(--link));
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover,
.link:hover {
  color: hsl(var(--link-hover));
  text-decoration: underline;
}

/* Code blocks */
code,
.code {
  background-color: hsl(var(--code));
  color: hsl(var(--code-foreground));
  padding: 0.125rem 0.375rem;
  border-radius: calc(var(--radius) - 0.125rem);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Monaco, "Cascadia Mono",
               "Segoe UI Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono",
               monospace;
  font-size: 0.875em;
}

pre code {
  padding: 0;
  background: transparent;
}

/* Selection */
::selection {
  background-color: hsl(var(--selection));
  color: hsl(var(--selection-foreground));
}

::-moz-selection {
  background-color: hsl(var(--selection));
  color: hsl(var(--selection-foreground));
}
}

@layer components {
/* Surface treatments */
.glass-panel {
  background: var(--glass-background, rgba(21, 27, 43, 0.7));
  backdrop-filter: blur(var(--glass-blur, 12px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 12px));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  border-radius: var(--surface-radius, var(--radius, 0.5rem));
}

:root {
  --glass-background: rgba(21, 27, 43, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 12px;
}
}

@layer components {
/* Typography Utilities */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display, var(--font-sans)); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.leading-tight { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }
}

@layer components {
/* Component Styles */

.btn {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
}
.btn:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-lg);
}

.form-input {
  border-radius: var(--radius) var(--radius) 0 0;
  border: none;
  border-bottom: 2px solid hsl(var(--input));
  background: hsl(var(--muted) / 0.5);
  transition: all var(--duration-fast) var(--ease-out);
}
.form-input:focus {
  border-bottom-color: hsl(var(--ring));
  background: hsl(var(--muted) / 0.7);
  outline: none;
}
}