/* What CSS Framework v0.1.0
 * A utility-first CSS framework with semantic components
 * Created by Tedigo
 * https://github.com/tedigo/what
 */

/* ================================
   BASE
   ================================ */

/* Reset/Normalize */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; }
body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 1rem; line-height: inherit; }
hr { height: 0; color: inherit; border-top-width: 1px; }
abbr[title] { text-decoration: underline dotted; }
b, strong { font-weight: bolder; }
code, kbd, samp, pre { font-family: ui-monospace, 'SF Mono', Menlo, Monaco, 'Cascadia Code', monospace; font-size: 1em; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.5em; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: inherit; margin: 0; padding: 0; }
button, select { text-transform: none; }
button, [type='button'], [type='reset'], [type='submit'] { -webkit-appearance: button; }
::-moz-focus-inner { border-style: none; padding: 0; }
legend { padding: 0; }
progress { vertical-align: baseline; }
[type='search'] { -webkit-appearance: textfield; outline-offset: -2px; }
::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
summary { display: list-item; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: inherit; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* CSS Variables */
:root {
  --w-black: #000000; --w-white: #ffffff;
  --w-gray-50: #f9fafb; --w-gray-100: #f3f4f6; --w-gray-200: #e5e7eb; --w-gray-300: #d1d5db;
  --w-gray-400: #9ca3af; --w-gray-500: #6b7280; --w-gray-600: #4b5563; --w-gray-700: #374151;
  --w-gray-800: #1f2937; --w-gray-900: #111827;
  --w-primary-50: #eff6ff; --w-primary-100: #dbeafe; --w-primary-200: #bfdbfe; --w-primary-300: #93c5fd;
  --w-primary-400: #60a5fa; --w-primary-500: #3b82f6; --w-primary-600: #2563eb; --w-primary-700: #1d4ed8;
  --w-primary-800: #1e40af; --w-primary-900: #1e3a8a;
  --w-success-50: #f0fdf4; --w-success-500: #22c55e; --w-success-600: #16a34a; --w-success-700: #15803d;
  --w-warning-50: #fffbeb; --w-warning-500: #f59e0b; --w-warning-600: #d97706; --w-warning-700: #b45309;
  --w-danger-50: #fef2f2; --w-danger-500: #ef4444; --w-danger-600: #dc2626; --w-danger-700: #b91c1c;
  --w-font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --w-font-serif: Georgia, Cambria, 'Times New Roman', Times, serif;
  --w-font-mono: ui-monospace, 'SF Mono', Menlo, Monaco, 'Cascadia Code', monospace;
  --w-text-xs: 0.75rem; --w-text-sm: 0.875rem; --w-text-base: 1rem; --w-text-lg: 1.125rem;
  --w-text-xl: 1.25rem; --w-text-2xl: 1.5rem; --w-text-3xl: 1.875rem; --w-text-4xl: 2.25rem; --w-text-5xl: 3rem;
  --w-font-thin: 100; --w-font-light: 300; --w-font-normal: 400; --w-font-medium: 500;
  --w-font-semibold: 600; --w-font-bold: 700; --w-font-extrabold: 800;
  --w-leading-none: 1; --w-leading-tight: 1.25; --w-leading-normal: 1.5; --w-leading-relaxed: 1.625; --w-leading-loose: 2;
  --w-spacing-0: 0; --w-spacing-1: 0.25rem; --w-spacing-2: 0.5rem; --w-spacing-3: 0.75rem;
  --w-spacing-4: 1rem; --w-spacing-5: 1.25rem; --w-spacing-6: 1.5rem; --w-spacing-8: 2rem;
  --w-spacing-10: 2.5rem; --w-spacing-12: 3rem; --w-spacing-16: 4rem; --w-spacing-20: 5rem; --w-spacing-24: 6rem;
  --w-rounded-none: 0; --w-rounded-sm: 0.125rem; --w-rounded: 0.25rem; --w-rounded-md: 0.375rem;
  --w-rounded-lg: 0.5rem; --w-rounded-xl: 0.75rem; --w-rounded-2xl: 1rem; --w-rounded-full: 9999px;
  --w-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --w-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --w-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --w-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --w-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --w-transition-fast: 150ms ease; --w-transition: 200ms ease; --w-transition-slow: 300ms ease;
  --w-z-dropdown: 1000; --w-z-sticky: 1020; --w-z-fixed: 1030; --w-z-modal-backdrop: 1040; --w-z-modal: 1050; --w-z-tooltip: 1070;
  --w-container-sm: 640px; --w-container-md: 768px; --w-container-lg: 1024px; --w-container-xl: 1280px;
  --w-bg: var(--w-white); --w-text: var(--w-gray-900); --w-border: var(--w-gray-200);
}
@media (prefers-color-scheme: dark) {
  :root { --w-bg: var(--w-gray-900); --w-text: var(--w-gray-100); --w-border: var(--w-gray-700); }
}

/* ================================
   UTILITIES - SPACING
   ================================ */
.m-0 { margin: 0; } .m-1 { margin: 0.25rem; } .m-2 { margin: 0.5rem; } .m-3 { margin: 0.75rem; } .m-4 { margin: 1rem; } .m-6 { margin: 1.5rem; } .m-8 { margin: 2rem; } .m-auto { margin: 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; } .mx-auto { margin-left: auto; margin-right: auto; }
.my-0 { margin-top: 0; margin-bottom: 0; } .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-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.ml-0 { margin-left: 0; } .ml-2 { margin-left: 0.5rem; } .ml-4 { margin-left: 1rem; } .ml-auto { margin-left: auto; }
.mr-0 { margin-right: 0; } .mr-2 { margin-right: 0.5rem; } .mr-4 { margin-right: 1rem; } .mr-auto { margin-right: auto; }
.p-0 { padding: 0; } .p-1 { padding: 0.25rem; } .p-2 { padding: 0.5rem; } .p-3 { padding: 0.75rem; } .p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; }
.px-0 { padding-left: 0; padding-right: 0; } .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; } .px-4 { padding-left: 1rem; padding-right: 1rem; } .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0 { padding-top: 0; padding-bottom: 0; } .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; } .py-4 { padding-top: 1rem; padding-bottom: 1rem; } .py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pt-0 { padding-top: 0; } .pt-2 { padding-top: 0.5rem; } .pt-4 { padding-top: 1rem; } .pt-6 { padding-top: 1.5rem; }
.pb-0 { padding-bottom: 0; } .pb-2 { padding-bottom: 0.5rem; } .pb-4 { padding-bottom: 1rem; } .pb-6 { padding-bottom: 1.5rem; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; }
.space-x-2 > * + * { margin-left: 0.5rem; } .space-x-4 > * + * { margin-left: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; } .space-y-4 > * + * { margin-top: 1rem; }

/* ================================
   UTILITIES - LAYOUT
   ================================ */
.block { display: block; } .inline-block { display: inline-block; } .inline { display: inline; }
.flex { display: flex; } .inline-flex { display: inline-flex; } .grid { display: grid; } .hidden { display: none; }
.flex-row { flex-direction: row; } .flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; } .flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1 1 0%; } .flex-auto { flex: 1 1 auto; } .flex-none { flex: none; }
.grow { flex-grow: 1; } .shrink-0 { flex-shrink: 0; }
.justify-start { justify-content: flex-start; } .justify-end { justify-content: flex-end; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; }
.items-start { align-items: flex-start; } .items-end { align-items: flex-end; } .items-center { align-items: center; } .items-stretch { align-items: stretch; }
.self-start { align-self: flex-start; } .self-center { align-self: center; } .self-end { align-self: flex-end; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); } .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)); }
.col-span-1 { grid-column: span 1; } .col-span-2 { grid-column: span 2; } .col-span-3 { grid-column: span 3; } .col-span-full { grid-column: 1 / -1; }
.static { position: static; } .fixed { position: fixed; } .absolute { position: absolute; } .relative { position: relative; } .sticky { position: sticky; }
.inset-0 { inset: 0; } .top-0 { top: 0; } .right-0 { right: 0; } .bottom-0 { bottom: 0; } .left-0 { left: 0; }
.z-10 { z-index: 10; } .z-20 { z-index: 20; } .z-50 { z-index: 50; } .z-modal { z-index: var(--w-z-modal); }
.overflow-auto { overflow: auto; } .overflow-hidden { overflow: hidden; } .overflow-x-auto { overflow-x: auto; } .overflow-y-auto { overflow-y: auto; }
.container { width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
.w-full { width: 100%; } .w-auto { width: auto; } .w-1\/2 { width: 50%; } .w-1\/3 { width: 33.333%; } .w-2\/3 { width: 66.667%; }
.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-4xl { max-width: 56rem; } .max-w-full { max-width: 100%; } .max-w-prose { max-width: 65ch; }
.h-full { height: 100%; } .h-screen { height: 100vh; } .min-h-screen { min-height: 100vh; }

/* ================================
   UTILITIES - TYPOGRAPHY
   ================================ */
.font-sans { font-family: var(--w-font-sans); } .font-serif { font-family: var(--w-font-serif); } .font-mono { font-family: var(--w-font-mono); }
.text-xs { font-size: 0.75rem; } .text-sm { font-size: 0.875rem; } .text-base { font-size: 1rem; } .text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; } .text-2xl { font-size: 1.5rem; } .text-3xl { font-size: 1.875rem; } .text-4xl { font-size: 2.25rem; } .text-5xl { font-size: 3rem; }
.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; }
.leading-none { line-height: 1; } .leading-tight { line-height: 1.25; } .leading-normal { line-height: 1.5; } .leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; } .tracking-normal { letter-spacing: 0; } .tracking-wide { letter-spacing: 0.025em; }
.text-left { text-align: left; } .text-center { text-align: center; } .text-right { text-align: right; }
.text-black { color: var(--w-black); } .text-white { color: var(--w-white); }
.text-gray-400 { color: var(--w-gray-400); } .text-gray-500 { color: var(--w-gray-500); } .text-gray-600 { color: var(--w-gray-600); } .text-gray-700 { color: var(--w-gray-700); } .text-gray-900 { color: var(--w-gray-900); }
.text-primary { color: var(--w-primary-600); } .text-success { color: var(--w-success-600); } .text-warning { color: var(--w-warning-600); } .text-danger { color: var(--w-danger-600); }
.underline { text-decoration: underline; } .no-underline { text-decoration: none; }
.uppercase { text-transform: uppercase; } .capitalize { text-transform: capitalize; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; } .whitespace-pre-wrap { white-space: pre-wrap; }

/* ================================
   UTILITIES - COLORS & EFFECTS
   ================================ */
.bg-transparent { background-color: transparent; } .bg-white { background-color: var(--w-white); } .bg-black { background-color: var(--w-black); }
.bg-gray-50 { background-color: var(--w-gray-50); } .bg-gray-100 { background-color: var(--w-gray-100); } .bg-gray-200 { background-color: var(--w-gray-200); }
.bg-gray-800 { background-color: var(--w-gray-800); } .bg-gray-900 { background-color: var(--w-gray-900); }
.bg-primary { background-color: var(--w-primary-600); } .bg-primary-50 { background-color: var(--w-primary-50); }
.bg-success { background-color: var(--w-success-600); } .bg-danger { background-color: var(--w-danger-600); } .bg-warning { background-color: var(--w-warning-500); }
.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-gray-200 { border-color: var(--w-gray-200); } .border-gray-300 { border-color: var(--w-gray-300); } .border-primary { border-color: var(--w-primary-500); }
.rounded-none { border-radius: 0; } .rounded-sm { border-radius: 0.125rem; } .rounded { border-radius: 0.25rem; } .rounded-md { border-radius: 0.375rem; } .rounded-lg { border-radius: 0.5rem; } .rounded-xl { border-radius: 0.75rem; } .rounded-full { border-radius: 9999px; }
.shadow-none { box-shadow: none; } .shadow-sm { box-shadow: var(--w-shadow-sm); } .shadow { box-shadow: var(--w-shadow); } .shadow-md { box-shadow: var(--w-shadow-md); } .shadow-lg { box-shadow: var(--w-shadow-lg); } .shadow-xl { box-shadow: var(--w-shadow-xl); }
.opacity-0 { opacity: 0; } .opacity-50 { opacity: 0.5; } .opacity-75 { opacity: 0.75; } .opacity-100 { opacity: 1; }
.cursor-pointer { cursor: pointer; } .cursor-not-allowed { cursor: not-allowed; }
.pointer-events-none { pointer-events: none; } .select-none { user-select: none; }
.transition { transition: all 200ms ease; } .transition-colors { transition: color, background-color, border-color 200ms ease; }
.hover\:bg-gray-100:hover { background-color: var(--w-gray-100); } .hover\:bg-gray-200:hover { background-color: var(--w-gray-200); }
.hover\:bg-primary:hover { background-color: var(--w-primary-600); } .hover\:bg-primary-700:hover { background-color: var(--w-primary-700); }
.hover\:text-primary:hover { color: var(--w-primary-600); } .hover\:text-white:hover { color: var(--w-white); }
.hover\:underline:hover { text-decoration: underline; } .hover\:shadow-lg:hover { box-shadow: var(--w-shadow-lg); }
.focus\:outline-none:focus { outline: none; } .focus\:ring:focus { outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); }
.disabled\:opacity-50:disabled { opacity: 0.5; } .disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* ================================
   COMPONENTS - BUTTONS
   ================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; line-height: 1.5; text-decoration: none; white-space: nowrap; border: 1px solid transparent; border-radius: var(--w-rounded-md); cursor: pointer; transition: all 200ms ease; user-select: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3); }
.btn-primary { background-color: var(--w-primary-600); color: var(--w-white); }
.btn-primary:hover:not(:disabled) { background-color: var(--w-primary-700); }
.btn-secondary { background-color: var(--w-gray-600); color: var(--w-white); }
.btn-secondary:hover:not(:disabled) { background-color: var(--w-gray-700); }
.btn-success { background-color: var(--w-success-600); color: var(--w-white); }
.btn-success:hover:not(:disabled) { background-color: var(--w-success-700); }
.btn-warning { background-color: var(--w-warning-500); color: var(--w-white); }
.btn-warning:hover:not(:disabled) { background-color: var(--w-warning-600); }
.btn-danger { background-color: var(--w-danger-600); color: var(--w-white); }
.btn-danger:hover:not(:disabled) { background-color: var(--w-danger-700); }
.btn-info { background-color: var(--w-primary-500); color: var(--w-white); }
.btn-info:hover:not(:disabled) { background-color: var(--w-primary-600); }
.btn-outline { background-color: transparent; border-color: var(--w-gray-300); color: var(--w-gray-700); }
.btn-outline:hover:not(:disabled) { background-color: var(--w-gray-50); border-color: var(--w-gray-400); }
.btn-outline-primary { background-color: transparent; border-color: var(--w-primary-600); color: var(--w-primary-600); }
.btn-outline-primary:hover:not(:disabled) { background-color: var(--w-primary-600); color: var(--w-white); }
.btn-outline-secondary { background-color: transparent; border-color: var(--w-gray-400); color: var(--w-gray-700); }
.btn-outline-secondary:hover:not(:disabled) { background-color: var(--w-gray-100); }
.btn-outline-success { background-color: transparent; border-color: var(--w-success-600); color: var(--w-success-600); }
.btn-outline-success:hover:not(:disabled) { background-color: var(--w-success-600); color: var(--w-white); }
.btn-outline-warning { background-color: transparent; border-color: var(--w-warning-500); color: var(--w-warning-600); }
.btn-outline-warning:hover:not(:disabled) { background-color: var(--w-warning-500); color: var(--w-white); }
.btn-outline-danger { background-color: transparent; border-color: var(--w-danger-600); color: var(--w-danger-600); }
.btn-outline-danger:hover:not(:disabled) { background-color: var(--w-danger-600); color: var(--w-white); }
.btn-ghost { background-color: transparent; color: var(--w-gray-700); }
.btn-ghost:hover:not(:disabled) { background-color: var(--w-gray-100); }
.btn-link { background-color: transparent; color: var(--w-primary-600); padding: 0; border: none; }
.btn-link:hover:not(:disabled) { text-decoration: underline; }
.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1.125rem; }
.btn-xl { padding: 1rem 2rem; font-size: 1.25rem; }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 0.5rem; }
.btn-icon.btn-sm { padding: 0.25rem; }
.btn-icon.btn-lg { padding: 0.75rem; }
.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after { content: ''; position: absolute; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: btn-spin 0.6s linear infinite; }
.btn-loading.btn-primary::after, .btn-loading.btn-secondary::after, .btn-loading.btn-success::after, .btn-loading.btn-warning::after, .btn-loading.btn-danger::after { border-color: var(--w-white); border-right-color: transparent; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-top-left-radius: var(--w-rounded-md); border-bottom-left-radius: var(--w-rounded-md); }
.btn-group .btn:last-child { border-top-right-radius: var(--w-rounded-md); border-bottom-right-radius: var(--w-rounded-md); }
.btn-group .btn:not(:last-child) { border-right-width: 0; }
.btn-group-vertical { display: inline-flex; flex-direction: column; }
.btn-group-vertical .btn { border-radius: 0; width: 100%; }
.btn-group-vertical .btn:first-child { border-top-left-radius: var(--w-rounded-md); border-top-right-radius: var(--w-rounded-md); }
.btn-group-vertical .btn:last-child { border-bottom-left-radius: var(--w-rounded-md); border-bottom-right-radius: var(--w-rounded-md); }
.btn-group-vertical .btn:not(:last-child) { border-bottom-width: 0; }

/* ================================
   COMPONENTS - FORMS
   ================================ */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--w-gray-700); }
.form-input, .form-textarea, .form-select { display: block; width: 100%; padding: 0.5rem 0.75rem; font-size: 1rem; line-height: 1.5; color: var(--w-gray-900); background-color: var(--w-white); border: 1px solid var(--w-gray-300); border-radius: var(--w-rounded-md); transition: border-color 200ms ease, box-shadow 200ms ease; }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--w-primary-500); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--w-gray-400); }
.form-input:disabled, .form-textarea:disabled, .form-select:disabled { background-color: var(--w-gray-100); cursor: not-allowed; opacity: 0.7; }
.form-textarea { min-height: 100px; resize: vertical; }
.form-select { appearance: none; 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; padding-right: 2.5rem; }
.form-checkbox, .form-radio { display: flex; align-items: center; cursor: pointer; }
.form-checkbox input, .form-radio input { width: 1rem; height: 1rem; margin-right: 0.5rem; accent-color: var(--w-primary-600); }
.checkbox-horizontal, .radio-horizontal { display: flex; flex-wrap: wrap; gap: 1rem; }
.checkbox-vertical, .radio-vertical { display: flex; flex-direction: column; gap: 0.5rem; }
.form-switch { display: flex; align-items: center; cursor: pointer; }
.form-switch input { appearance: none; width: 2.5rem; height: 1.25rem; background-color: var(--w-gray-300); border-radius: 9999px; position: relative; cursor: pointer; transition: background-color 200ms ease; }
.form-switch input::before { content: ''; position: absolute; top: 2px; left: 2px; width: 1rem; height: 1rem; background-color: var(--w-white); border-radius: 50%; transition: transform 200ms ease; box-shadow: var(--w-shadow-sm); }
.form-switch input:checked { background-color: var(--w-primary-600); }
.form-switch input:checked::before { transform: translateX(1.25rem); }
.form-switch span { margin-left: 0.75rem; font-size: 0.875rem; color: var(--w-gray-700); }
.form-error { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: var(--w-danger-600); }
.form-hint { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: var(--w-gray-500); }
.input-group { display: flex; }
.input-group .form-input { flex: 1; border-radius: 0; }
.input-group .form-input:first-child { border-top-left-radius: var(--w-rounded-md); border-bottom-left-radius: var(--w-rounded-md); }
.input-group .form-input:last-child { border-top-right-radius: var(--w-rounded-md); border-bottom-right-radius: var(--w-rounded-md); }

/* ================================
   COMPONENTS - CARDS
   ================================ */
.card { background-color: var(--w-white); border: 1px solid var(--w-gray-200); border-radius: var(--w-rounded-lg); overflow: hidden; }
.card-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--w-gray-200); background-color: var(--w-gray-50); }
.card-title { font-size: 1.125rem; font-weight: 600; color: var(--w-gray-900); margin: 0; }
.card-subtitle { font-size: 0.875rem; color: var(--w-gray-500); margin-top: 0.25rem; }
.card-body { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--w-gray-200); background-color: var(--w-gray-50); }
.card-image { width: 100%; height: auto; display: block; }
.card-image-top { border-radius: var(--w-rounded-lg) var(--w-rounded-lg) 0 0; }
.card-sm .card-header { padding: 0.75rem 1rem; }
.card-sm .card-body { padding: 1rem; }
.card-sm .card-footer { padding: 0.75rem 1rem; }
.card-lg .card-header { padding: 1.25rem 2rem; }
.card-lg .card-body { padding: 2rem; }
.card-lg .card-footer { padding: 1.25rem 2rem; }
.card-elevated { border: none; box-shadow: var(--w-shadow-lg); }
.card-flat { border: none; background-color: var(--w-gray-50); }
.card-bordered { border-width: 2px; }
.card-interactive { transition: all 200ms ease; cursor: pointer; }
.card-interactive:hover { transform: translateY(-2px); box-shadow: var(--w-shadow-lg); }
.card-horizontal { display: flex; flex-direction: row; }
.card-horizontal .card-image { width: 200px; min-width: 200px; height: 100%; object-fit: cover; border-radius: var(--w-rounded-lg) 0 0 var(--w-rounded-lg); }
.card-horizontal .card-body { flex: 1; }
.card-primary { border-color: var(--w-primary-200); }
.card-primary .card-header { background-color: var(--w-primary-50); border-bottom-color: var(--w-primary-200); }
.card-success { border-color: var(--w-success-500); }
.card-success .card-header { background-color: var(--w-success-50); border-bottom-color: var(--w-success-500); }
.card-warning { border-color: var(--w-warning-500); }
.card-warning .card-header { background-color: var(--w-warning-50); border-bottom-color: var(--w-warning-500); }
.card-danger { border-color: var(--w-danger-500); }
.card-danger .card-header { background-color: var(--w-danger-50); border-bottom-color: var(--w-danger-500); }
.post-card .card-title a { color: inherit; text-decoration: none; }
.post-card .card-title a:hover { color: var(--w-primary-600); }

/* ================================
   COMPONENTS - NAVIGATION
   ================================ */
.navigation-top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; background-color: var(--w-white); border-bottom: 1px solid var(--w-gray-200); }
.navigation-top .nav-brand { font-size: 1.25rem; font-weight: 700; color: var(--w-gray-900); text-decoration: none; }
.navigation-top .nav-links { display: flex; align-items: center; gap: 1.5rem; }
.navigation-top .nav-link { color: var(--w-gray-600); text-decoration: none; font-weight: 500; transition: color 200ms ease; }
.navigation-top .nav-link:hover { color: var(--w-primary-600); }
.navigation-top .nav-link.active { color: var(--w-primary-600); }
.navigation-top-sticky { position: sticky; top: 0; z-index: var(--w-z-sticky); }
.navigation-left { display: flex; flex-direction: column; width: 256px; min-height: 100vh; padding: 1rem; background-color: var(--w-gray-50); border-right: 1px solid var(--w-gray-200); }
.navigation-left .nav-brand { padding: 1rem; margin-bottom: 1.5rem; font-size: 1.25rem; font-weight: 700; color: var(--w-gray-900); }
.navigation-left .nav-section { margin-bottom: 1.5rem; }
.navigation-left .nav-section-title { padding: 0.5rem 1rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--w-gray-500); }
.navigation-left .nav-item { display: flex; align-items: center; padding: 0.5rem 1rem; border-radius: var(--w-rounded-md); color: var(--w-gray-700); text-decoration: none; font-weight: 500; transition: all 200ms ease; }
.navigation-left .nav-item:hover { background-color: var(--w-gray-100); color: var(--w-gray-900); }
.navigation-left .nav-item.active { background-color: var(--w-primary-50); color: var(--w-primary-700); }
.navigation-tabs { display: flex; border-bottom: 1px solid var(--w-gray-200); }
.navigation-tabs .tab { padding: 0.75rem 1rem; font-weight: 500; color: var(--w-gray-500); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 200ms ease; }
.navigation-tabs .tab:hover { color: var(--w-gray-700); border-bottom-color: var(--w-gray-300); }
.navigation-tabs .tab.active { color: var(--w-primary-600); border-bottom-color: var(--w-primary-600); }
.navigation-breadcrumb { display: flex; align-items: center; padding: 0.75rem 0; font-size: 0.875rem; }
.navigation-breadcrumb .breadcrumb-item { color: var(--w-gray-500); text-decoration: none; }
.navigation-breadcrumb .breadcrumb-item:hover { color: var(--w-primary-600); }
.navigation-breadcrumb .breadcrumb-separator { margin: 0 0.5rem; color: var(--w-gray-400); }
.navigation-breadcrumb .breadcrumb-current { color: var(--w-gray-900); font-weight: 500; }
.navigation-pagination { display: flex; align-items: center; gap: 0.25rem; }
.navigation-pagination .page-link { display: flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0.5rem; border-radius: var(--w-rounded-md); color: var(--w-gray-700); text-decoration: none; font-weight: 500; transition: all 200ms ease; }
.navigation-pagination .page-link:hover { background-color: var(--w-gray-100); }
.navigation-pagination .page-link.active { background-color: var(--w-primary-600); color: var(--w-white); }

/* ================================
   COMPONENTS - JUMBO/HERO
   ================================ */
.jumbo { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 1.5rem; text-align: center; background-color: var(--w-gray-50); }
.jumbo-content { max-width: 1024px; margin: 0 auto; }
.jumbo-title { font-size: 2.25rem; font-weight: 700; line-height: 1.25; color: var(--w-gray-900); margin-bottom: 1rem; }
.jumbo-subtitle { font-size: 1.25rem; color: var(--w-gray-600); margin-bottom: 2rem; max-width: 42rem; margin-left: auto; margin-right: auto; }
.jumbo-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.jumbo-sm { padding: 2rem 1.5rem; }
.jumbo-sm .jumbo-title { font-size: 1.5rem; }
.jumbo-lg { padding: 6rem 1.5rem; min-height: 60vh; }
.jumbo-lg .jumbo-title { font-size: 3rem; }
.jumbo-primary { background-color: var(--w-primary-600); color: var(--w-white); }
.jumbo-primary .jumbo-title { color: var(--w-white); }
.jumbo-primary .jumbo-subtitle { color: var(--w-primary-100); }
.jumbo-dark { background-color: var(--w-gray-900); color: var(--w-white); }
.jumbo-dark .jumbo-title { color: var(--w-white); }
.jumbo-dark .jumbo-subtitle { color: var(--w-gray-400); }

/* ================================
   COMPONENTS - TABLES
   ================================ */
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th, .table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--w-gray-200); }
.table th { font-weight: 600; color: var(--w-gray-700); background-color: var(--w-gray-50); }
.table td { color: var(--w-gray-900); }
.table-striped tbody tr:nth-child(odd) { background-color: var(--w-gray-50); }
.table-hover tbody tr:hover { background-color: var(--w-gray-100); }
.table-container { overflow-x: auto; border: 1px solid var(--w-gray-200); border-radius: var(--w-rounded-lg); }
.table-container .table { margin: 0; }
.table-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }
.table-status { display: inline-flex; align-items: center; padding: 0.25rem 0.5rem; font-size: 0.75rem; font-weight: 500; border-radius: 9999px; }
.table-status-success { background-color: var(--w-success-50); color: var(--w-success-700); }
.table-status-warning { background-color: var(--w-warning-50); color: var(--w-warning-700); }
.table-status-danger { background-color: var(--w-danger-50); color: var(--w-danger-700); }

/* ================================
   COMPONENTS - ALERTS
   ================================ */
.alert { display: flex; padding: 1rem; border-radius: var(--w-rounded-lg); font-size: 0.875rem; }
.alert-icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-right: 0.75rem; }
.alert-content { flex: 1; }
.alert-title { font-weight: 600; margin-bottom: 0.25rem; }
.alert-description { margin: 0; }
.alert-info { background-color: var(--w-primary-50); color: var(--w-primary-800); border: 1px solid var(--w-primary-200); }
.alert-success { background-color: var(--w-success-50); color: var(--w-success-700); border: 1px solid rgba(34, 197, 94, 0.2); }
.alert-warning { background-color: var(--w-warning-50); color: var(--w-warning-700); border: 1px solid rgba(245, 158, 11, 0.2); }
.alert-danger { background-color: var(--w-danger-50); color: var(--w-danger-700); border: 1px solid rgba(239, 68, 68, 0.2); }
.alert-dismissible { position: relative; padding-right: 3rem; }
.alert-close { position: absolute; top: 0.75rem; right: 0.75rem; padding: 0.25rem; background: none; border: none; cursor: pointer; color: currentColor; opacity: 0.5; transition: opacity 200ms ease; border-radius: var(--w-rounded); }
.alert-close:hover { opacity: 1; background-color: rgba(0, 0, 0, 0.1); }
.alert-sm { padding: 0.75rem; font-size: 0.8125rem; }
.alert-lg { padding: 1.25rem; font-size: 1rem; }
.callout { padding: 1rem 1.5rem; border-left: 4px solid var(--w-gray-300); background-color: var(--w-gray-50); border-radius: 0 0.25rem 0.25rem 0; }
.callout-title { font-weight: 600; margin-bottom: 0.5rem; }
.callout-info { border-left-color: var(--w-primary-500); background-color: var(--w-primary-50); }
.callout-success { border-left-color: var(--w-success-500); background-color: var(--w-success-50); }
.callout-warning { border-left-color: var(--w-warning-500); background-color: var(--w-warning-50); }
.callout-danger { border-left-color: var(--w-danger-500); background-color: var(--w-danger-50); }

/* ================================
   COMPONENTS - BADGES
   ================================ */
.badge { display: inline-flex; align-items: center; padding: 0.125rem 0.5rem; font-size: 0.75rem; font-weight: 500; line-height: 1.5; border-radius: 9999px; white-space: nowrap; }
.badge-sm { padding: 0.0625rem 0.375rem; font-size: 0.6875rem; }
.badge-lg { padding: 0.25rem 0.75rem; font-size: 0.875rem; }
.badge-primary { background-color: var(--w-primary-100); color: var(--w-primary-700); }
.badge-secondary { background-color: var(--w-gray-100); color: var(--w-gray-700); }
.badge-success { background-color: var(--w-success-50); color: var(--w-success-700); }
.badge-warning { background-color: var(--w-warning-50); color: var(--w-warning-700); }
.badge-danger { background-color: var(--w-danger-50); color: var(--w-danger-700); }
.badge-info { background-color: var(--w-primary-50); color: var(--w-primary-600); }
.badge-outline { background-color: transparent; border: 1px solid currentColor; }
.badge-outline-primary { color: var(--w-primary-600); border-color: var(--w-primary-600); }
.badge-outline-secondary { color: var(--w-gray-600); border-color: var(--w-gray-400); }
.badge-outline-success { color: var(--w-success-600); border-color: var(--w-success-600); }
.badge-outline-warning { color: var(--w-warning-600); border-color: var(--w-warning-500); }
.badge-outline-danger { color: var(--w-danger-600); border-color: var(--w-danger-600); }
.badge-solid-primary { background-color: var(--w-primary-600); color: var(--w-white); }
.badge-solid-secondary { background-color: var(--w-gray-600); color: var(--w-white); }
.badge-solid-success { background-color: var(--w-success-600); color: var(--w-white); }
.badge-solid-warning { background-color: var(--w-warning-500); color: var(--w-white); }
.badge-solid-danger { background-color: var(--w-danger-600); color: var(--w-white); }
.badge-rounded { border-radius: var(--w-rounded-md); }
.badge-dot { width: 0.5rem; height: 0.5rem; padding: 0; border-radius: 50%; }
.badge-dot-primary { background-color: var(--w-primary-500); }
.badge-dot-success { background-color: var(--w-success-500); }
.badge-dot-warning { background-color: var(--w-warning-500); }
.badge-dot-danger { background-color: var(--w-danger-500); }

/* ================================
   COMPONENTS - MODALS
   ================================ */
.modal-backdrop { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.5); z-index: var(--w-z-modal-backdrop); display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 200ms ease; }
.modal-backdrop.active { opacity: 1; visibility: visible; }
.modal { background-color: var(--w-white); border-radius: var(--w-rounded-xl); box-shadow: var(--w-shadow-xl); max-width: 500px; width: 100%; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; transform: scale(0.95) translateY(-10px); transition: transform 200ms ease; }
.modal-backdrop.active .modal { transform: scale(1) translateY(0); }
.modal-sm { max-width: 360px; } .modal-lg { max-width: 720px; } .modal-xl { max-width: 960px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid var(--w-gray-200); }
.modal-title { font-size: 1.125rem; font-weight: 600; color: var(--w-gray-900); margin: 0; }
.modal-close { padding: 0.5rem; background: none; border: none; cursor: pointer; color: var(--w-gray-400); border-radius: var(--w-rounded); transition: all 200ms ease; }
.modal-close:hover { background-color: var(--w-gray-100); color: var(--w-gray-600); }
.modal-body { padding: 1.5rem; overflow-y: auto; flex: 1; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; padding: 1rem 1.5rem; border-top: 1px solid var(--w-gray-200); }

/* Drawer (slide-in panel) */
.drawer-backdrop { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.5); z-index: var(--w-z-modal-backdrop); opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 200ms ease; }
.drawer-backdrop.active { opacity: 1; visibility: visible; }
.drawer { position: fixed; background-color: var(--w-white); box-shadow: var(--w-shadow-xl); display: flex; flex-direction: column; transition: transform 300ms ease; z-index: var(--w-z-modal); }
.drawer-right { top: 0; right: 0; bottom: 0; width: 400px; max-width: 100%; transform: translateX(100%); }
.drawer-left { top: 0; left: 0; bottom: 0; width: 400px; max-width: 100%; transform: translateX(-100%); }
.drawer-top { top: 0; left: 0; right: 0; height: 300px; max-height: 100%; transform: translateY(-100%); }
.drawer-bottom { bottom: 0; left: 0; right: 0; height: 300px; max-height: 100%; transform: translateY(100%); }
.drawer-backdrop.active .drawer-right { transform: translateX(0); }
.drawer-backdrop.active .drawer-left { transform: translateX(0); }
.drawer-backdrop.active .drawer-top { transform: translateY(0); }
.drawer-backdrop.active .drawer-bottom { transform: translateY(0); }
.drawer-sm { width: 280px; }
.drawer-lg { width: 560px; }
.drawer-xl { width: 720px; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid var(--w-gray-200); }
.drawer-title { font-size: 1.125rem; font-weight: 600; color: var(--w-gray-900); margin: 0; }
.drawer-close { padding: 0.5rem; background: none; border: none; cursor: pointer; color: var(--w-gray-400); border-radius: var(--w-rounded); transition: all 200ms ease; }
.drawer-close:hover { background-color: var(--w-gray-100); color: var(--w-gray-600); }
.drawer-body { padding: 1.5rem; overflow-y: auto; flex: 1; }
.drawer-footer { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; padding: 1rem 1.5rem; border-top: 1px solid var(--w-gray-200); }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
  .jumbo-lg .jumbo-title { font-size: 2.25rem; }
  .navigation-top .nav-links { display: none; }
  .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
  .hidden-mobile { display: none; }
}
@media (min-width: 768px) {
  .hidden-desktop { display: none; }
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ================================
   INTERACTIONS
   ================================ */

/* Show/Hide */
.w-hidden { display: none !important; }

/* Collapse */
.w-collapse { overflow: hidden; max-height: 0; transition: max-height 0.3s ease-out; }
.w-collapse.w-expanded { max-height: 1000px; transition: max-height 0.5s ease-in; }

/* Fade */
.w-fade { opacity: 0; transition: opacity 0.3s ease; }
.w-fade.w-fade-in { opacity: 1; }

/* Accordion */
.w-accordion-header { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: var(--w-gray-50); border: 1px solid var(--w-gray-200); border-radius: var(--w-rounded); margin-bottom: 0.5rem; transition: background 0.2s; }
.w-accordion-header:hover { background: var(--w-gray-100); }
.w-accordion-header .w-accordion-icon { transition: transform 0.3s; }
.w-accordion-header.w-active .w-accordion-icon { transform: rotate(180deg); }
.w-accordion-content { padding: 0 1rem; }

/* Counter animation */
.w-counter { font-variant-numeric: tabular-nums; }
