:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 9%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 9%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 9%;
  --primary: 41 97% 87%;
  --primary-foreground: 0 0% 9%;
  --primary-text: 41 75% 68%;
  --primary-border: 41 60% 70%;
  --secondary: 143 53% 79%;
  --secondary-foreground: 180 34% 26%;
  --muted: 0 0% 98%;
  --muted-foreground: 0 0% 40%;
  --accent: 143 53% 79%;
  --accent-foreground: 180 34% 26%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;
  --success: 43 70% 78%;
  --success-foreground: 30 60% 12%;
  --warning: 38 92% 50%;
  --warning-foreground: 0 0% 9%;
  --info: 199 89% 48%;
  --info-foreground: 0 0% 100%;
  --border: 0 0% 90%;
  --input: 0 0% 90%;
  --ring: 41 97% 87%;
  --radius: 0.75rem;
  --teal-primary: 180 34% 26%;
  --teal-light: 180 26% 39%;
  --teal-100: 180 41% 94%;
  --teal-700: 180 41% 35%;
  --yellow-primary: 41 97% 87%;
  --yellow-light: 41 97% 92%;
  --yellow-dark: 41 60% 70%;
  --yellow-accent: 45 100% 51%;
  --mint-primary: 143 53% 79%;
  --mint-light: 143 41% 95%;
  --mint-dark: 157 27% 60%;
  --gray-900: 0 0% 9%;
  --gray-600: 0 0% 40%;
  --gray-400: 0 0% 60%;
  --gray-200: 0 0% 90%;
  --gray-50: 0 0% 98%;
  --spacing-0: 0px;
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  --spacing-24: 6rem;
  --spacing-32: 8rem;
  --spacing-component-xs: var(--spacing-2);
  --spacing-component-sm: var(--spacing-4);
  --spacing-component-md: var(--spacing-6);
  --spacing-component-lg: var(--spacing-8);
  --spacing-component-xl: var(--spacing-12);
  --spacing-layout-xs: var(--spacing-4);
  --spacing-layout-sm: var(--spacing-8);
  --spacing-layout-md: var(--spacing-12);
  --spacing-layout-lg: var(--spacing-16);
  --spacing-layout-xl: var(--spacing-24);
  --spacing-form-xs: var(--spacing-2);
  --spacing-form-sm: var(--spacing-3);
  --spacing-form-md: var(--spacing-4);
  --spacing-form-lg: var(--spacing-6);
  --spacing-grid-xs: var(--spacing-2);
  --spacing-grid-sm: var(--spacing-4);
  --spacing-grid-md: var(--spacing-6);
  --spacing-grid-lg: var(--spacing-8);
  --radius-none: 0px;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --radius-button: var(--radius-lg);
  --radius-input: var(--radius-lg);
  --radius-card: var(--radius-xl);
  --radius-modal: var(--radius-2xl);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-button: var(--shadow-sm);
  --shadow-card: var(--shadow-md);
  --shadow-modal: var(--shadow-xl);
  --shadow-dropdown: var(--shadow-lg);
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  --font-size-7xl: 4.5rem;
  --font-size-8xl: 6rem;
  --font-size-9xl: 8rem;
  --font-weight-thin: 100;
  --font-weight-extralight: 200;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;
  --line-height-none: 1;
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  --letter-spacing-tighter: -0.05em;
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0em;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  --letter-spacing-widest: 0.1em;
  --heading-font-family: var(--font-sans);
  --heading-font-weight: var(--font-weight-bold);
  --heading-line-height: var(--line-height-tight);
  --heading-letter-spacing: var(--letter-spacing-tight);
  --body-font-family: var(--font-sans);
  --body-font-weight: var(--font-weight-normal);
  --body-line-height: var(--line-height-normal);
  --body-letter-spacing: var(--letter-spacing-normal);
  --caption-font-family: var(--font-sans);
  --caption-font-weight: var(--font-weight-normal);
  --caption-line-height: var(--line-height-normal);
  --caption-letter-spacing: var(--letter-spacing-normal);
  --button-font-family: var(--font-sans);
  --button-font-weight: var(--font-weight-medium);
  --button-line-height: var(--line-height-none);
  --button-letter-spacing: var(--letter-spacing-wide);
  --heading-1-size: var(--font-size-3xl);
  --heading-2-size: var(--font-size-2xl);
  --heading-3-size: var(--font-size-xl);
  --heading-4-size: var(--font-size-lg);
  --heading-5-size: var(--font-size-base);
  --heading-6-size: var(--font-size-sm);
  --body-large-size: var(--font-size-lg);
  --body-base-size: var(--font-size-base);
  --body-small-size: var(--font-size-sm);
  --body-xs-size: var(--font-size-xs);
}

.dark {
  --background: 0 0% 15%;
  --foreground: 0 0% 87%;
  --card: 0 0% 18%;
  --card-foreground: 0 0% 87%;
  --popover: 0 0% 18%;
  --popover-foreground: 0 0% 87%;
  --primary: 41 85% 80%;
  --primary-foreground: 0 0% 10%;
  --primary-text: 41 75% 75%;
  --primary-border: 41 60% 65%;
  --secondary: 143 40% 70%;
  --secondary-foreground: 0 0% 10%;
  --muted: 0 0% 25%;
  --muted-foreground: 0 0% 70%;
  --accent: 143 40% 70%;
  --accent-foreground: 0 0% 10%;
  --destructive: 0 62.8% 45%;
  --destructive-foreground: 0 0% 95%;
  --success: 43 40% 40%;
  --success-foreground: 43 70% 90%;
  --warning: 38 70% 60%;
  --warning-foreground: 0 0% 10%;
  --info: 199 70% 60%;
  --info-foreground: 0 0% 95%;
  --border: 0 0% 30%;
  --input: 0 0% 30%;
  --ring: 41 85% 80%;
  --teal-primary: 180 30% 40%;
  --teal-light: 180 25% 50%;
  --yellow-primary: 41 85% 80%;
  --yellow-light: 41 90% 85%;
  --mint-primary: 143 40% 70%;
  --mint-light: 143 30% 60%;
  --mint-dark: 143 35% 55%;
  --gray-900: 0 0% 87%;
  --gray-600: 0 0% 70%;
  --gray-400: 0 0% 50%;
  --gray-200: 0 0% 30%;
  --gray-50: 0 0% 15%;
}

* {
  border-color: hsl(var(--border));
}

body {
  color: hsl(var(--foreground));
  font-family: var(--body-font-family);
  font-weight: var(--body-font-weight);
  line-height: var(--body-line-height);
  letter-spacing: var(--body-letter-spacing);
}

:root:not(.dark) body {
  background-color: hsl(var(--background));
}

:root.light {
  color-scheme: light;
}

:root.dark {
  color-scheme: dark;
}

.text-primary {
  color: hsl(var(--primary-text)) !important;
}

.text-secondary {
  color: hsl(var(--secondary)) !important;
}

.text-muted {
  color: hsl(var(--muted-foreground)) !important;
}

.text-destructive {
  color: hsl(var(--destructive)) !important;
}

.text-success {
  color: hsl(var(--success)) !important;
}

.text-warning {
  color: hsl(var(--warning)) !important;
}

.text-info {
  color: hsl(var(--info)) !important;
}

.bg-primary {
  background-color: hsl(var(--primary)) !important;
}

.bg-secondary {
  background-color: hsl(var(--secondary)) !important;
}

.bg-muted {
  background-color: hsl(var(--muted)) !important;
}

.bg-destructive {
  background-color: hsl(var(--destructive)) !important;
}

.bg-success {
  background-color: hsl(var(--success)) !important;
}

.bg-warning {
  background-color: hsl(var(--warning)) !important;
}

.bg-info {
  background-color: hsl(var(--info)) !important;
}

.border-primary {
  border-color: hsl(var(--primary-border)) !important;
}

.border-secondary {
  border-color: hsl(var(--secondary)) !important;
}

.border-muted {
  border-color: hsl(var(--border)) !important;
}

.focus-ring {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px hsl(var(--ring));
}

.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button);
  font-family: var(--button-font-family);
  font-weight: var(--button-font-weight);
  line-height: var(--button-line-height);
  letter-spacing: var(--button-letter-spacing);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: 1px solid transparent;
}

.input-base {
  display: block;
  width: 100%;
  border-radius: var(--radius-input);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--body-font-family);
  font-size: var(--body-base-size);
  line-height: var(--body-line-height);
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.input-base:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.card-base {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border-radius: var(--radius-card);
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-card);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px hsl(var(--muted)) inset !important;
  -webkit-text-fill-color: hsl(var(--foreground)) !important;
  background-color: hsl(var(--muted)) !important;
  border-color: hsl(var(--primary-border)) !important;
  transition: background-color 5000s ease-in-out 0s;
}

* {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--muted-foreground) / 0.2) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  -webkit-appearance: none;
}

::-webkit-scrollbar-track {
  background: transparent;
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.2);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: opacity 0.3s ease, background-color 0.2s ease;
  min-height: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.4);
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:active {
  background: hsl(var(--muted-foreground) / 0.6);
  background-clip: content-box;
}

.dark * {
  scrollbar-color: hsl(var(--muted-foreground) / 0.3) transparent;
}

.dark ::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.3);
}

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

.dark ::-webkit-scrollbar-thumb:active {
  background: hsl(var(--muted-foreground) / 0.7);
}

:root {
  color-scheme: light;
}

.light {
  color-scheme: light;
}

.dark {
  color-scheme: dark;
}

[data-theme="cyclora-dark"] body {
  background-color: hsl(220 60% 6%);
  background-attachment: fixed;
}

.theme-auto {
  color-scheme: light dark;
}

.theme-light {
  color-scheme: light;
}

.theme-dark {
  color-scheme: dark;
}

.theme-transition {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.theme-transition-fast {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.theme-transition-slow {
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}
