diff --git a/dist/sigpro.css b/dist/sigpro.css new file mode 100644 index 0000000..c870754 --- /dev/null +++ b/dist/sigpro.css @@ -0,0 +1,572 @@ +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap'); + +:root { + --radius: 0.5rem; + --background: oklch(1 0 0); + --foreground: oklch(0.141 0.005 285.823); + --card: oklch(1 0 0); + --card-foreground: oklch(0.141 0.005 285.823); + --popover: oklch(1 0 0); + --popover-foreground: oklch(0.141 0.005 285.823); + --primary: oklch(0.21 0.006 285.885); + --primary-foreground: oklch(0.985 0 0); + --secondary: oklch(0.967 0.001 286.375); + --secondary-foreground: oklch(0.21 0.006 285.885); + --muted: oklch(0.967 0.001 286.375); + --muted-foreground: oklch(0.552 0.016 285.938); + --accent: oklch(0.967 0.001 286.375); + --accent-foreground: oklch(0.21 0.006 285.885); + --destructive: oklch(0.577 0.245 27.325); + --border-color: oklch(0.92 0.004 286.32); + --input: oklch(0.92 0.004 286.32); + --ring: oklch(0.705 0.015 286.067); + --chart-1: oklch(0.646 0.222 41.116); + --chart-2: oklch(0.6 0.118 184.704); + --chart-3: oklch(0.398 0.07 227.392); + --chart-4: oklch(0.828 0.189 84.429); + --chart-5: oklch(0.769 0.188 70.08); + --sidebar: oklch(0.985 0 0); + --sidebar-foreground: oklch(0.141 0.005 285.823); + --sidebar-primary: oklch(0.21 0.006 285.885); + --sidebar-primary-foreground: oklch(0.985 0 0); + --sidebar-accent: oklch(0.967 0.001 286.375); + --sidebar-accent-foreground: oklch(0.21 0.006 285.885); + --sidebar-border: oklch(0.92 0.004 286.32); + --sidebar-ring: oklch(0.705 0.015 286.067); + --shadow: 0px 10px 15px -3px rgba(0,0,0,0.1),0px 4px 6px -2px rgba(0,0,0,0.05); + --border: 1px solid var(--border-color); + --toggle-bg: oklch(0.705 0.015 286.067); + --toggle-knob: oklch(1 0 0); +} + +@media (prefers-color-scheme: dark) { + :root { + --background: oklch(0.141 0.005 285.823); + --foreground: oklch(0.985 0 0); + --card: oklch(0.21 0.006 285.885); + --card-foreground: oklch(0.985 0 0); + --popover: oklch(0.21 0.006 285.885); + --popover-foreground: oklch(0.985 0 0); + --primary: oklch(0.92 0.004 286.32); + --primary-foreground: oklch(0.21 0.006 285.885); + --secondary: oklch(0.274 0.006 286.033); + --secondary-foreground: oklch(0.985 0 0); + --muted: oklch(0.274 0.006 286.033); + --muted-foreground: oklch(0.705 0.015 286.067); + --accent: oklch(0.274 0.006 286.033); + --accent-foreground: oklch(0.985 0 0); + --destructive: oklch(0.704 0.191 22.216); + --border-color: oklch(1 0 0 / 10%); + --input: oklch(1 0 0 / 15%); + --ring: oklch(0.552 0.016 285.938); + --sidebar: oklch(0.21 0.006 285.885); + --sidebar-foreground: oklch(0.985 0 0); + --sidebar-border: oklch(1 0 0 / 10%); + --toggle-bg: oklch(0.4 0.016 285.938); + } +} + +html[data-theme='light'] { + color-scheme: light; + --background: oklch(1 0 0); + --foreground: oklch(0.141 0.005 285.823); + --primary: oklch(0.21 0.006 285.885); + --toggle-bg: oklch(0.705 0.015 286.067); +} + +html[data-theme='dark'] { + color-scheme: dark; + --background: oklch(0.141 0.005 285.823); + --foreground: oklch(0.985 0 0); + --primary: oklch(0.92 0.004 286.32); + --toggle-bg: oklch(0.4 0.016 285.938); +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; + scrollbar-width: auto; + scrollbar-color: var(--muted-foreground) var(--muted); +} + +*::-webkit-scrollbar { width: 12px; } +*::-webkit-scrollbar-thumb { background: var(--muted-foreground); border-radius: 6px; border: 2px solid var(--background); } +*::-webkit-scrollbar-track { background: var(--muted); border-radius: 6px; } + +body { + font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif; + background-color: var(--background); + color: var(--foreground); + line-height: 1.5; + padding: 2rem 1rem; + transition: background-color 0.3s ease, color 0.3s ease; + max-width: 900px; + margin: 0 auto; +} + +h1, h2, h3, h4, h5, h6 { margin-bottom: 0.5em; font-weight: 700; } +h1 { letter-spacing: -0.025em; font-size: 1.875rem; line-height: 2.25rem; } +h2 { letter-spacing: -0.025em; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; } +h3 { letter-spacing: -0.025em; font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; } +p { margin: 1em 0; } +a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; } +a:hover { text-decoration: underline; color: color-mix(in srgb, var(--primary) 80%, transparent); } +ul, ol { margin-bottom: 1em; padding-left: 1.5em; } +header { margin-bottom: 2rem; } +nav ul { list-style: none; padding: 0; display: flex; gap: 1rem; } +section { margin-bottom: 2rem; } +form { display: flex; flex-direction: column; gap: 1rem; } + +input, select, textarea { + font: inherit; + padding: 0.5rem; + border: var(--border); + border-radius: var(--radius); + background-color: var(--background); + color: var(--foreground); + font-size: 0.875rem; + transition: border-color 0.2s ease, box-shadow 0.2s ease; +} + +input:focus, select:focus, textarea:focus { + outline: none; + border-color: var(--ring); + box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 15%, transparent); +} + +/* Modern Checkbox */ +input[type="checkbox"] { + appearance: none; + width: 1.2rem; + height: 1.2rem; + border: 2px solid var(--border-color); + border-radius: 4px; + background: var(--background); + cursor: pointer; + position: relative; + transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); + vertical-align: middle; + margin-right: 0.5rem; +} + +input[type="checkbox"]:checked { + background: var(--primary); + border-color: var(--primary); +} + +input[type="checkbox"]:checked::after { + content: "✓"; + position: absolute; + color: var(--primary-foreground); + font-size: 0.85rem; + font-weight: bold; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); +} + +input[type="checkbox"]:focus-visible { + outline: none; + box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 30%, transparent); +} + +/* Modern Radio */ +input[type="radio"] { + appearance: none; + width: 1.2rem; + height: 1.2rem; + border: 2px solid var(--border-color); + border-radius: 50%; + background: var(--background); + cursor: pointer; + position: relative; + transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); + vertical-align: middle; + margin-right: 0.5rem; +} + +input[type="radio"]:checked { + border-color: var(--primary); + background: var(--primary); + box-shadow: inset 0 0 0 3px var(--background); +} + +input[type="radio"]:focus-visible { + outline: none; + box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 30%, transparent); +} + +/* Modern Switch (Toggle) */ +input[type="checkbox"].toggle { + appearance: none; + width: 3rem; + height: 1.5rem; + background: var(--toggle-bg); + border-radius: 9999px; + border: none; + position: relative; + cursor: pointer; + transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1); + margin-right: 0.5rem; +} + +input[type="checkbox"].toggle::before { + content: ""; + position: absolute; + width: 1.25rem; + height: 1.25rem; + background: var(--toggle-knob); + border-radius: 50%; + top: 0.125rem; + left: 0.125rem; + transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); + box-shadow: 0 1px 3px rgba(0,0,0,0.2); +} + +input[type="checkbox"].toggle:checked { + background: var(--primary); +} + +input[type="checkbox"].toggle:checked::before { + transform: translateX(1.5rem); +} + +input[type="checkbox"].toggle:focus-visible { + outline: none; + box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 30%, transparent); +} + +/* Modern Range */ +input[type="range"] { + appearance: none; + width: 100%; + height: 4px; + background: var(--border-color); + border-radius: 9999px; + outline: none; + cursor: pointer; +} + +input[type="range"]::-webkit-slider-thumb { + appearance: none; + width: 1rem; + height: 1rem; + background: var(--primary); + border-radius: 50%; + cursor: pointer; + transition: transform 0.2s ease, box-shadow 0.2s ease; + box-shadow: 0 1px 3px rgba(0,0,0,0.2); +} + +input[type="range"]::-webkit-slider-thumb:hover { + transform: scale(1.2); +} + +input[type="range"]:focus-visible { + outline: none; + box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 30%, transparent); +} + +/* Buttons */ +button, input[type="submit"], input[type="button"], input[type="reset"] { + font: inherit; + cursor: pointer; + font-size: 0.875rem; + font-weight: 500; + padding: 0.5rem 1rem; + border-radius: var(--radius); + transition: all 0.2s ease; +} + +button { + border: none; + background-color: var(--primary); + color: var(--primary-foreground); +} +button:hover { background-color: color-mix(in srgb, var(--primary) 90%, transparent); } +button:active { transform: scale(0.98); } + +button[secondary] { + background-color: var(--secondary); + color: var(--secondary-foreground); +} +button[secondary]:hover { background-color: color-mix(in srgb, var(--secondary) 90%, transparent); } + +input[type="submit"] { + border: var(--border); + background-color: transparent; + color: var(--foreground); +} +input[type="submit"]:hover { background-color: color-mix(in srgb, var(--muted) 90%, transparent); } + +input[type="button"] { + border: none; + background-color: transparent; + color: var(--foreground); +} +input[type="button"]:hover { background-color: var(--muted); } + +input[type="reset"] { + border: none; + background-color: var(--destructive); + color: var(--primary-foreground); +} +input[type="reset"]:hover { background-color: color-mix(in srgb, var(--destructive) 90%, transparent); } + +fieldset { + border: var(--border); + border-radius: var(--radius); + padding: 1rem; + display: flex; + gap: 0.5rem; +} + +fieldset[role="group"] { + border: none; + padding: 1rem; + display: flex; + gap: 0; +} +fieldset[role="group"] > * { + border-radius: 0; +} +fieldset[role="group"] > *:first-child { + border-top-left-radius: var(--radius); + border-bottom-left-radius: var(--radius); + border-right: 0; +} +fieldset[role="group"] > *:last-child { + border-top-right-radius: var(--radius); + border-bottom-right-radius: var(--radius); + border-right: var(--border); +} + +legend { padding: 0 0.5rem; } +label { display: block; } +small { color: var(--muted-foreground); } +img { max-width: 100%; height: auto; border-radius: var(--radius); } +img[avatar] { border-radius: 50%; } +blockquote { + border-left: 4px solid var(--border-color); + padding-left: 1rem; + font-style: italic; +} +progress { + width: 100%; + appearance: none; + height: 0.5rem; + border-radius: 9999px; + background-color: var(--muted); + border: 0; +} +progress::-webkit-progress-value { border-radius: 9999px; background-color: var(--primary); } +progress::-moz-progress-bar { border-radius: 9999px; background-color: var(--primary); } + +details { + border: var(--border); + border-radius: var(--radius); + padding: 0.5rem; + margin-bottom: 1rem; +} +summary { + cursor: pointer; + font-weight: bold; +} +article { + border: var(--border); + border-radius: var(--radius); + padding: 1rem; + margin-bottom: 1rem; +} +footer { + margin-top: 2rem; + color: var(--muted-foreground); +} + +/* Dialog, Drawer, Sheet Animations */ +dialog { + background-color: var(--background); + color: var(--foreground); + border: var(--border); + border-radius: var(--radius); + padding: 24px; + margin: auto; + opacity: 0; + transform: scale(0.95); + transition: opacity 0.2s ease, transform 0.2s ease; +} +dialog[open] { + opacity: 1; + transform: scale(1); +} +dialog::backdrop { + background-color: rgba(0, 0, 0, 0.8); + transition: backdrop-filter 0.2s ease; +} + +dialog[drawer] { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; + top: auto; + bottom: 0; + max-height: 50vh; + transform: translateY(100%); + transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease; +} +dialog[drawer][open] { + transform: translateY(0); +} + +dialog[sheet-top], dialog[sheet-bottom], dialog[sheet-left], dialog[sheet-right] { + border-radius: 0; + margin: 0; +} +dialog[sheet-top], dialog[sheet-bottom] { width: 100vw; max-height: 50vh; } +dialog[sheet-left], dialog[sheet-right] { height: 100vh; max-width: 50vw; } + +dialog[sheet-top] { transform: translateY(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); } +dialog[sheet-top][open] { transform: translateY(0); } + +dialog[sheet-bottom] { transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); top: auto; bottom: 0; } +dialog[sheet-bottom][open] { transform: translateY(0); } + +dialog[sheet-left] { transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); } +dialog[sheet-left][open] { transform: translateX(0); } + +dialog[sheet-right] { transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); left: auto; right: 0; } +dialog[sheet-right][open] { transform: translateX(0); } + +/* Accordion Animation */ +details { + transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); +} +details[open] summary ~ * { + animation: accordion-slide 0.3s cubic-bezier(0.4, 0, 0.2, 1); +} +@keyframes accordion-slide { + from { opacity: 0; transform: translateY(-10px); } + to { opacity: 1; transform: translateY(0); } +} + +/* Sidebar Animation */ +aside { + background-color: var(--sidebar); + border: 1px solid var(--sidebar-border); + display: flex; + flex-direction: column; + justify-content: space-between; + position: relative; + padding: 0.5rem; + transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); +} +aside[data-collapsed="true"] { + transform: translateX(-100%); +} + +/* Utility */ +[aria-busy="true"] { opacity: 0.7; cursor: progress; } +@media (prefers-reduced-motion: reduce) { + *, *::before, *::after { + animation-duration: 0.01ms !important; + transition-duration: 0.01ms !important; + } +} +@media (max-width: 600px) { + body { padding: 0.5rem; } + nav ul { flex-direction: column; } +} +:disabled, [disabled] { cursor: not-allowed; opacity: 0.5; pointer-events: none; } +hr { + border: 0; + height: 1px; + margin: 1rem 0; + background-color: var(--border-color); +} +kbd { + padding: 0.125rem 0.625rem; + background-color: var(--primary); + color: var(--primary-foreground); + border-radius: 6px; + font-weight: bold; +} +table { + border-collapse: collapse; + width: 100%; +} +table th { color: var(--muted-foreground); text-align: start; padding: 0.5rem; } +table td { padding: 0.5rem; text-align: start; } +table tr { border-bottom: var(--border); } +pre { border-radius: var(--radius); overflow-x: auto; } +code { + border: var(--border); + border-radius: var(--radius); + background-color: var(--primary); + color: var(--primary-foreground); + padding: 0.2rem; +} +[tooltip-top], [tooltip-bottom], [tooltip-left], [tooltip-right] { position: relative; } +[tooltip-top]::after, [tooltip-bottom]::after, [tooltip-left]::after, [tooltip-right]::after { + position: absolute; + white-space: nowrap; + background-color: var(--primary); + color: var(--primary-foreground); + padding: 6px 8px; + font-size: 0.875em; + border-radius: var(--radius); + opacity: 0; + transition: opacity 0.2s ease; + pointer-events: none; +} +[tooltip-top]:hover::after, [tooltip-bottom]:hover::after, [tooltip-left]:hover::after, [tooltip-right]:hover::after { opacity: 1; } +[tooltip-top]::after { content: attr(tooltip-top); left: 50%; top: -0.8rem; transform: translateX(-50%) translateY(-100%); } +[tooltip-bottom]::after { content: attr(tooltip-bottom); left: 50%; top: calc(100% + 0.8rem); transform: translateX(-50%); } +[tooltip-left]::after { content: attr(tooltip-left); left: -0.3rem; top: 50%; transform: translateX(-100%) translateY(-50%); } +[tooltip-right]::after { content: attr(tooltip-right); left: calc(100% + 0.3rem); top: 50%; transform: translateY(-50%); } +menu { + display: flex; + flex-direction: row; + border: var(--border); + border-radius: var(--radius); + width: fit-content; + list-style: none; +} +menu li { padding: 0.25rem 0.75rem; } +div[skeleton] { + background-color: var(--input); + animation: shimmer 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; + border-radius: var(--radius); +} +@keyframes shimmer { + 50% { opacity: 0.5; } +} +[popover] { + inset: unset; + position: absolute; + bottom: calc(anchor(top) + 5px); + justify-self: anchor-center; + margin: 0; + border: var(--border); + border-radius: var(--radius); + padding: 0.5rem; +} +nav { + display: flex; + align-items: center; + --separator: attr(breadcrumb, '>'); +} +nav > a { + padding: 0 0.625rem 0 0; + color: var(--muted-foreground); +} +nav > a::after { + padding: 0 0 0 0.625rem; + display: inline-block; + content: var(--separator); +} +nav > a:last-child { + color: var(--foreground); +} +nav > a:last-child::after { + content: ''; +} \ No newline at end of file diff --git a/dist/sigpro.min.css b/dist/sigpro.min.css index 1b605d6..818dba7 100644 --- a/dist/sigpro.min.css +++ b/dist/sigpro.min.css @@ -1 +1 @@ -@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap";:root{--radius: .5rem;--background: oklch(100% 0 0);--foreground: oklch(14.1% .005 285.823);--card: oklch(100% 0 0);--card-foreground: oklch(14.1% .005 285.823);--popover: oklch(100% 0 0);--popover-foreground: oklch(14.1% .005 285.823);--primary: oklch(21% .006 285.885);--primary-foreground: oklch(98.5% 0 0);--secondary: oklch(96.7% .001 286.375);--secondary-foreground: oklch(21% .006 285.885);--muted: oklch(96.7% .001 286.375);--muted-foreground: oklch(55.2% .016 285.938);--accent: oklch(96.7% .001 286.375);--accent-foreground: oklch(21% .006 285.885);--destructive: oklch(57.7% .245 27.325);--border-color: oklch(92% .004 286.32);--input: oklch(92% .004 286.32);--ring: oklch(70.5% .015 286.067);--chart-1: oklch(64.6% .222 41.116);--chart-2: oklch(60% .118 184.704);--chart-3: oklch(39.8% .07 227.392);--chart-4: oklch(82.8% .189 84.429);--chart-5: oklch(76.9% .188 70.08);--sidebar: oklch(98.5% 0 0);--sidebar-foreground: oklch(14.1% .005 285.823);--sidebar-primary: oklch(21% .006 285.885);--sidebar-primary-foreground: oklch(98.5% 0 0);--sidebar-accent: oklch(96.7% .001 286.375);--sidebar-accent-foreground: oklch(21% .006 285.885);--sidebar-border: oklch(92% .004 286.32);--sidebar-ring: oklch(70.5% .015 286.067);--shadow: 0px 10px 15px -3px #0000001a, 0px 4px 6px -2px #0000000d;--loading-icon-url: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' stroke='rgb(184, 184, 184)' stroke-width='20' fill='none' stroke-linecap='round' stroke-dasharray='200' stroke-dashoffset='100'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 50 50' to='360 50 50' dur='1s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");--border: 1px solid var(--border-color)}@media (prefers-color-scheme: dark){:root{--background: oklch(14.1% .005 285.823);--foreground: oklch(98.5% 0 0);--card: oklch(21% .006 285.885);--card-foreground: oklch(98.5% 0 0);--popover: oklch(21% .006 285.885);--popover-foreground: oklch(98.5% 0 0);--primary: oklch(92% .004 286.32);--primary-foreground: oklch(21% .006 285.885);--secondary: oklch(27.4% .006 286.033);--secondary-foreground: oklch(98.5% 0 0);--muted: oklch(27.4% .006 286.033);--muted-foreground: oklch(70.5% .015 286.067);--accent: oklch(27.4% .006 286.033);--accent-foreground: oklch(98.5% 0 0);--destructive: oklch(70.4% .191 22.216);--border-color: oklch(100% 0 0/.1);--input: oklch(100% 0 0/.15);--ring: oklch(55.2% .016 285.938);--chart-1: oklch(48.8% .243 264.376);--chart-2: oklch(69.6% .17 162.48);--chart-3: oklch(76.9% .188 70.08);--chart-4: oklch(62.7% .265 303.9);--chart-5: oklch(64.5% .246 16.439);--sidebar: oklch(21% .006 285.885);--sidebar-foreground: oklch(98.5% 0 0);--sidebar-primary: oklch(48.8% .243 264.376);--sidebar-primary-foreground: oklch(98.5% 0 0);--sidebar-accent: oklch(27.4% .006 286.033);--sidebar-accent-foreground: oklch(98.5% 0 0);--sidebar-border: oklch(100% 0 0/.1);--sidebar-ring: oklch(55.2% .016 285.938);--border: 1px solid var(--border-color)}}html{color-scheme:light dark}html[data-theme=light]{color-scheme:light;--background: oklch(100% 0 0);--foreground: oklch(14.1% .005 285.823);--card: oklch(100% 0 0);--card-foreground: oklch(14.1% .005 285.823);--popover: oklch(100% 0 0);--popover-foreground: oklch(14.1% .005 285.823);--primary: oklch(21% .006 285.885);--primary-foreground: oklch(98.5% 0 0);--secondary: oklch(96.7% .001 286.375);--secondary-foreground: oklch(21% .006 285.885);--muted: oklch(96.7% .001 286.375);--muted-foreground: oklch(55.2% .016 285.938);--accent: oklch(96.7% .001 286.375);--accent-foreground: oklch(21% .006 285.885);--destructive: oklch(57.7% .245 27.325);--border-color: oklch(92% .004 286.32);--input: oklch(92% .004 286.32);--ring: oklch(70.5% .015 286.067);--chart-1: oklch(64.6% .222 41.116);--chart-2: oklch(60% .118 184.704);--chart-3: oklch(39.8% .07 227.392);--chart-4: oklch(82.8% .189 84.429);--chart-5: oklch(76.9% .188 70.08);--sidebar: oklch(98.5% 0 0);--sidebar-foreground: oklch(14.1% .005 285.823);--sidebar-primary: oklch(21% .006 285.885);--sidebar-primary-foreground: oklch(98.5% 0 0);--sidebar-accent: oklch(96.7% .001 286.375);--sidebar-accent-foreground: oklch(21% .006 285.885);--sidebar-border: oklch(92% .004 286.32);--sidebar-ring: oklch(70.5% .015 286.067);--shadow: 0px 10px 15px -3px #0000001a, 0px 4px 6px -2px #0000000d;--border: 1px solid var(--border-color)}html[data-theme=dark]{color-scheme:dark;--background: oklch(14.1% .005 285.823);--foreground: oklch(98.5% 0 0);--card: oklch(21% .006 285.885);--card-foreground: oklch(98.5% 0 0);--popover: oklch(21% .006 285.885);--popover-foreground: oklch(98.5% 0 0);--primary: oklch(92% .004 286.32);--primary-foreground: oklch(21% .006 285.885);--secondary: oklch(27.4% .006 286.033);--secondary-foreground: oklch(98.5% 0 0);--muted: oklch(27.4% .006 286.033);--muted-foreground: oklch(70.5% .015 286.067);--accent: oklch(27.4% .006 286.033);--accent-foreground: oklch(98.5% 0 0);--destructive: oklch(70.4% .191 22.216);--border-color: oklch(100% 0 0/.1);--input: oklch(100% 0 0/.15);--ring: oklch(55.2% .016 285.938);--chart-1: oklch(48.8% .243 264.376);--chart-2: oklch(69.6% .17 162.48);--chart-3: oklch(76.9% .188 70.08);--chart-4: oklch(62.7% .265 303.9);--chart-5: oklch(64.5% .246 16.439);--sidebar: oklch(21% .006 285.885);--sidebar-foreground: oklch(98.5% 0 0);--sidebar-primary: oklch(48.8% .243 264.376);--sidebar-primary-foreground: oklch(98.5% 0 0);--sidebar-accent: oklch(27.4% .006 286.033);--sidebar-accent-foreground: oklch(98.5% 0 0);--sidebar-border: oklch(100% 0 0/.1);--sidebar-ring: oklch(55.2% .016 285.938);--border: 1px solid var(--border-color)}*{box-sizing:border-box;scrollbar-width:auto;scrollbar-color:var(--muted-foreground) var(--muted);margin:0;padding:0}::-webkit-scrollbar{width:12px}::-webkit-scrollbar-thumb{background:var(--muted-foreground);border:2px solid var(--background);border-radius:6px}::-webkit-scrollbar-thumb:hover{background:var(--foreground)}::-webkit-scrollbar-track{background:var(--muted);border-radius:6px}body{background-color:var(--background);color:var(--foreground);max-width:900px;margin:0 auto;padding:2rem 1rem 1rem;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;line-height:1.5;transition:background-color .3s,color .3s}h1,h2,h3,h4,h5,h6{margin-bottom:.5em;font-weight:700}h1{letter-spacing:-.025em;font-size:1.875rem;font-weight:700;line-height:2.25rem}h2{letter-spacing:-.025em;font-size:1.25rem;font-weight:600;line-height:1.75rem}h3{letter-spacing:-.025em;font-size:1.125rem;font-weight:600;line-height:1.75rem}h4{letter-spacing:-.025em;font-size:16px;font-weight:600;line-height:1.75rem}h5{font-size:15px}h6{font-size:14px}p{margin:1em 0}a{color:var(--primary);text-decoration:none;transition:color .2s}a:hover{color:color-mix(in srgb,var(--primary) 80%,transparent);text-decoration:underline}a:focus-visible{outline:2px solid var(--ring);outline-offset:2px;border-radius:2px}ul,ol{margin-bottom:1em;padding-left:1.5em}header{margin-bottom:2rem}header h1{font-size:2rem}nav ul{gap:1rem;padding:0;list-style:none;display:flex}section{margin-bottom:2rem}form{flex-direction:column;gap:1rem;display:flex}input[type=password],input[type=text],input[type=date],input[type=color],input[type=time],input[type=file],input[type=search],input[type=email],select,textarea{font-weight:500;font:inherit;border:var(--border);border-radius:var(--radius);background-color:var(--background);color:var(--foreground);padding:.5rem;font-size:.875rem;transition:border-color .2s,box-shadow .2s}input[type=password]:focus,input[type=text]:focus,input[type=date]:focus,input[type=time]:focus,input[type=search]:focus,input[type=email]:focus,select:focus,textarea:focus{border-color:var(--ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--ring) 15%,transparent);outline:none}input[type=color]{-webkit-appearance:none;appearance:none;cursor:pointer;padding:initial;max-width:initial;border-radius:var(--radius);border:none;outline:none}input[type=color]::-webkit-color-swatch{border-radius:var(--radius);border:none}input[type=color]::-moz-color-swatch{border-radius:var(--radius);border:none}input[type=reset],input[type=submit],input[type=button],button{font:inherit;cursor:pointer;border-radius:var(--radius);padding:.5rem 1rem;font-size:.875rem;font-weight:500;transition:background-color .2s ease-in-out}button{background-color:var(--primary);color:var(--primary-foreground);border:none;&:hover{background-color:color-mix(in srgb,var(--primary) 90%,transparent)}&:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 30%,transparent);outline:none}&:active{transform:scale(.98)}}button[secondary]{background-color:var(--secondary);color:var(--secondary-foreground);&:hover{background-color:color-mix(in srgb,var(--secondary) 90%,transparent)}}input[type=submit]{border:var(--border);color:var(--foreground);background-color:#0000;&:hover{background-color:color-mix(in srgb,var(--muted) 90%,transparent)}}input[type=button]{color:var(--foreground);background-color:#0000;border:none;&:hover{background-color:var(--muted)}}input[type=reset]{background-color:var(--destructive);color:var(--primary-foreground);border:none;&:hover{background-color:color-mix(in srgb,var(--destructive) 90%,transparent)}}fieldset{border:var(--border);border-radius:var(--radius);gap:.5rem;padding:1rem;display:flex}fieldset[role=group]{border:none;gap:0;padding:1rem;display:flex;>*{border-radius:0;&:first-child{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius);border-right:0}&:last-child{border-top-right-radius:var(--radius);border-bottom-right-radius:var(--radius);border-right:var(--border)}}}fieldset[role=otp]{border:none;gap:0;padding:1rem;display:flex;>input{text-align:center;border-right:0;border-radius:0;width:1rem;&:first-child{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius);border-right:0}&:last-child{border-top-right-radius:var(--radius);border-bottom-right-radius:var(--radius);border-right:var(--border)}}}legend{padding:0 .5rem}label{display:block;& *{vertical-align:middle}}small{color:var(--muted-foreground)}figure{margin-bottom:1rem;overflow:hidden}img{border-radius:var(--radius);max-width:100%;height:auto}img[avatar]{border-radius:50%}figcaption{color:var(--muted-foreground);margin-top:.5rem;font-size:.875rem}blockquote{border-left:4px solid var(--border-color);padding-left:1rem;font-style:italic;>footer{text-align:center}}[type=checkbox],[type=radio]{margin-right:.5rem}progress{width:100%}dialog{background-color:var(--background);color:var(--foreground);border:var(--border);border-radius:var(--radius);margin:auto;padding:24px}dialog::backdrop{background-color:#000c}details{border:var(--border);border-radius:var(--radius);margin-bottom:1rem;padding:.5rem}summary{cursor:pointer;font-weight:700}article{border:var(--border);border-radius:var(--radius);margin-bottom:1rem;padding:1rem}footer{color:var(--muted-foreground);margin-top:2rem}[aria-busy=true]{opacity:.7;cursor:progress}[aria-busy=spinner]{opacity:.7;cursor:progress;&:before{content:var(--loading-icon-url);padding-right:1rem}}@media (prefers-reduced-motion: reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (width<=600px){body{padding:.5rem}nav ul{flex-direction:column}}input[type=file]::file-selector-button{background-color:var(--background);color:var(--foreground);border:none;font-weight:600}:disabled,[disabled]{cursor:not-allowed;opacity:.5}button:disabled,input:disabled,select:disabled,textarea:disabled{pointer-events:none}input[type=radio],input[type=checkbox],input[type=range]{accent-color:var(--primary);background-color:var(--background)}input[type=checkbox][icon]{display:none;+*{cursor:pointer;border-radius:var(--radius);box-sizing:border-box;padding:.5rem;&:hover{background-color:var(--border-color)}}}input[type=checkbox][icon]{display:none;+*{cursor:pointer;border-radius:var(--radius);width:2rem;height:2rem;padding:.5rem;&:hover{background-color:var(--border-color);stroke:var(--muted-foreground)}}}input[type=checkbox][icon]:checked{+*{background-color:var(--border-color);&:hover{stroke:var(--accent-foreground)}}}kbd{background-color:var(--primary);color:var(--primary-foreground);border-radius:6px;padding:.125rem .625rem;font-weight:700}kbd[secondary]{background-color:var(--secondary);color:var(--secondary-foreground)}kbd[outline]{background-color:var(--background);color:var(--primary);border:var(--border)}kbd[destructive]{background-color:var(--destructive);color:var(--primary-foreground)}table{caption-side:bottom;border-collapse:collapse;& caption{color:var(--muted-foreground);margin-top:1rem}& th{color:var(--muted-foreground)}& tr{border-bottom:var(--border)}& tr:hover{background-color:hsl(var(--muted) / .5)}& td,th{vertical-align:middle;text-align:start;padding:.5rem}& tfoot{background-color:var(--muted)}}dialog[drawer]{resize:vertical;border-bottom-right-radius:0;border-bottom-left-radius:0;max-height:50vh;top:auto;bottom:0;&[open]{animation:.2s ease-in forwards slideup}}dialog>header{margin:0}dialog[sheet-top],dialog[sheet-bottom],dialog[sheet-left],dialog[sheet-right]{border-radius:0;margin:0}dialog[sheet-top],dialog[sheet-bottom]{width:100vw;max-height:50vh}dialog[sheet-left],dialog[sheet-right]{max-width:50vw;height:100vh}dialog[sheet-top][open]{animation:.2s ease-in forwards slidedown}dialog[sheet-bottom][open]{animation:.2s ease-in forwards slideup;top:auto;bottom:0}dialog[sheet-left][open]{animation:.2s ease-in forwards slideright}dialog[sheet-right][open]{animation:.2s ease-in forwards slideleft;left:auto;right:0}@keyframes slideup{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slidedown{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes slideleft{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes slideright{0%{transform:translate(-100%)}to{transform:translate(0)}}progress{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--muted);border:0;border-radius:9999px;height:.5rem}progress[value]::-webkit-progress-value{background-color:var(--primary);border-radius:9999px}::-webkit-progress-bar{background-color:var(--muted);border-radius:9999px}::-moz-progress-bar{background-color:var(--primary);border-radius:9999px}progress:indeterminate{background:var(--muted) linear-gradient(to right,var(--primary) 35%,var(--muted) 35%) top left/150% 150% no-repeat;animation:1.5s linear infinite progress-indeterminate}progress:indeterminate::-webkit-progress-bar{background-color:#0000}progress:indeterminate::-moz-progress-bar{background-color:#0000}@keyframes progress-indeterminate{0%{background-position:200% 0}to{background-position:-200% 0}}hr{background-color:var(--border-color);border:0;flex-shrink:0;height:1px;margin:1rem 0}hr[vertical]{width:1px;height:auto;margin:0 1rem}nav{--separator: attr(breadcrumb, ">");align-items:center;display:flex;>a{color:var(--muted-foreground);padding:0 .625rem 0 0;&:after{content:var(--separator);padding:0 0 0 .625rem;display:inline-block}&:last-child{color:var(--foreground);&:after{content:""}}}&:hover:after{text-decoration:none}}div[skeleton]{background-color:var(--input);border-radius:var(--radius);opacity:1;animation:2s cubic-bezier(.4,0,.6,1) infinite shimmer;& *{display:none}}@keyframes shimmer{50%{opacity:.5}}[popover]{inset:unset;bottom:calc(anchor(top) + 5px);justify-self:anchor-center;border:var(--border);border-radius:var(--radius);margin:0;padding:.5rem;position:absolute}[tooltip-top],[tooltip-bottom],[tooltip-left],[tooltip-right]{position:relative;&:after{white-space:nowrap;background-color:var(--primary);color:var(--primary-foreground);border-radius:var(--radius);opacity:0;z-index:10;pointer-events:none;padding:6px 8px;font-size:.875em;transition:opacity .2s ease-in-out;position:absolute}&:hover:after{opacity:1}}[tooltip-top]:after{content:attr(tooltip-top);top:-.8rem;left:50%;transform:translate(-50%) translateY(-100%)}[tooltip-bottom]:after{content:attr(tooltip-bottom);top:calc(100% + .8rem);left:50%;transform:translate(-50%) translateY(0)}[tooltip-left]:after{content:attr(tooltip-left);top:50%;left:-.3rem;transform:translate(-100%) translateY(-50%)}[tooltip-right]:after{content:attr(tooltip-right);margin-left:.3rem;top:50%;left:calc(100% + .3rem);transform:translate(0) translateY(-50%)}pre{border-radius:var(--radius);>code{display:block;overflow-x:auto}}code{border:var(--border);border-radius:var(--radius);background-color:var(--primary);color:var(--primary-foreground);padding:.2rem}dialog[sonner],dialog[toast]{padding:1rem 1.5rem 1rem 1rem;inset:auto 1rem 1rem auto;&::backdrop{opacity:0}}dialog[toast]{box-shadow:var(--shadow);&[open]{animation:.2s ease-in forwards slideup,.2s ease-in forwards fad-in}}dialog[sonner]{background-color:#0000;border:none;flex-direction:column-reverse;gap:.5rem;transition:gap .15s ease-in;display:flex;>li{background-color:var(--background);counter-increment:sonner-counter;border:var(--border);border-radius:var(--radius);padding:1rem 1.5rem 1rem 1rem;list-style:none;animation:.2s ease-in forwards slideup,.2s ease-in forwards fad-in;&:hover{scale:1.1}}}@keyframes fad-in{0%{opacity:0}to{opacity:1}}aside{background-color:var(--sidebar);border:1px solid var(--sidebar-border);flex-direction:column;justify-content:space-between;padding:.5rem;display:flex;position:relative;>main{flex-direction:column;flex-grow:1;display:flex;overflow-y:auto}>header,>footer{position:sticky}}menu{border:var(--border);border-radius:var(--radius);flex-direction:row;width:fit-content;display:flex;>li{padding:.25rem .75rem;list-style:none}}[scroll-x]{overflow-x:scroll}[scroll-y]{overflow-y:scroll} +@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap";:root{--radius: .5rem;--background: oklch(1 0 0);--foreground: oklch(.141 .005 285.823);--card: oklch(1 0 0);--card-foreground: oklch(.141 .005 285.823);--popover: oklch(1 0 0);--popover-foreground: oklch(.141 .005 285.823);--primary: oklch(.21 .006 285.885);--primary-foreground: oklch(.985 0 0);--secondary: oklch(.967 .001 286.375);--secondary-foreground: oklch(.21 .006 285.885);--muted: oklch(.967 .001 286.375);--muted-foreground: oklch(.552 .016 285.938);--accent: oklch(.967 .001 286.375);--accent-foreground: oklch(.21 .006 285.885);--destructive: oklch(.577 .245 27.325);--border-color: oklch(.92 .004 286.32);--input: oklch(.92 .004 286.32);--ring: oklch(.705 .015 286.067);--chart-1: oklch(.646 .222 41.116);--chart-2: oklch(.6 .118 184.704);--chart-3: oklch(.398 .07 227.392);--chart-4: oklch(.828 .189 84.429);--chart-5: oklch(.769 .188 70.08);--sidebar: oklch(.985 0 0);--sidebar-foreground: oklch(.141 .005 285.823);--sidebar-primary: oklch(.21 .006 285.885);--sidebar-primary-foreground: oklch(.985 0 0);--sidebar-accent: oklch(.967 .001 286.375);--sidebar-accent-foreground: oklch(.21 .006 285.885);--sidebar-border: oklch(.92 .004 286.32);--sidebar-ring: oklch(.705 .015 286.067);--shadow: 0px 10px 15px -3px rgba(0,0,0,.1),0px 4px 6px -2px rgba(0,0,0,.05);--border: 1px solid var(--border-color);--toggle-bg: oklch(.705 .015 286.067);--toggle-knob: oklch(1 0 0)}@media (prefers-color-scheme: dark){:root{--background: oklch(.141 .005 285.823);--foreground: oklch(.985 0 0);--card: oklch(.21 .006 285.885);--card-foreground: oklch(.985 0 0);--popover: oklch(.21 .006 285.885);--popover-foreground: oklch(.985 0 0);--primary: oklch(.92 .004 286.32);--primary-foreground: oklch(.21 .006 285.885);--secondary: oklch(.274 .006 286.033);--secondary-foreground: oklch(.985 0 0);--muted: oklch(.274 .006 286.033);--muted-foreground: oklch(.705 .015 286.067);--accent: oklch(.274 .006 286.033);--accent-foreground: oklch(.985 0 0);--destructive: oklch(.704 .191 22.216);--border-color: oklch(1 0 0 / 10%);--input: oklch(1 0 0 / 15%);--ring: oklch(.552 .016 285.938);--sidebar: oklch(.21 .006 285.885);--sidebar-foreground: oklch(.985 0 0);--sidebar-border: oklch(1 0 0 / 10%);--toggle-bg: oklch(.4 .016 285.938)}}html[data-theme=light]{color-scheme:light;--background: oklch(1 0 0);--foreground: oklch(.141 .005 285.823);--primary: oklch(.21 .006 285.885);--toggle-bg: oklch(.705 .015 286.067)}html[data-theme=dark]{color-scheme:dark;--background: oklch(.141 .005 285.823);--foreground: oklch(.985 0 0);--primary: oklch(.92 .004 286.32);--toggle-bg: oklch(.4 .016 285.938)}*{margin:0;padding:0;box-sizing:border-box;scrollbar-width:auto;scrollbar-color:var(--muted-foreground) var(--muted)}*::-webkit-scrollbar{width:12px}*::-webkit-scrollbar-thumb{background:var(--muted-foreground);border-radius:6px;border:2px solid var(--background)}*::-webkit-scrollbar-track{background:var(--muted);border-radius:6px}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background-color:var(--background);color:var(--foreground);line-height:1.5;padding:2rem 1rem;transition:background-color .3s ease,color .3s ease;max-width:900px;margin:0 auto}h1,h2,h3,h4,h5,h6{margin-bottom:.5em;font-weight:700}h1{letter-spacing:-.025em;font-size:1.875rem;line-height:2.25rem}h2{letter-spacing:-.025em;font-size:1.25rem;line-height:1.75rem;font-weight:600}h3{letter-spacing:-.025em;font-size:1.125rem;line-height:1.75rem;font-weight:600}p{margin:1em 0}a{color:var(--primary);text-decoration:none;transition:color .2s ease}a:hover{text-decoration:underline;color:color-mix(in srgb,var(--primary) 80%,transparent)}ul,ol{margin-bottom:1em;padding-left:1.5em}header{margin-bottom:2rem}nav ul{list-style:none;padding:0;display:flex;gap:1rem}section{margin-bottom:2rem}form{display:flex;flex-direction:column;gap:1rem}input,select,textarea{font:inherit;padding:.5rem;border:var(--border);border-radius:var(--radius);background-color:var(--background);color:var(--foreground);font-size:.875rem;transition:border-color .2s ease,box-shadow .2s ease}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--ring) 15%,transparent)}input[type=checkbox]{appearance:none;width:1.2rem;height:1.2rem;border:2px solid var(--border-color);border-radius:4px;background:var(--background);cursor:pointer;position:relative;transition:all .2s cubic-bezier(.4,0,.2,1);vertical-align:middle;margin-right:.5rem}input[type=checkbox]:checked{background:var(--primary);border-color:var(--primary)}input[type=checkbox]:checked:after{content:"\2713";position:absolute;color:var(--primary-foreground);font-size:.85rem;font-weight:700;left:50%;top:50%;transform:translate(-50%,-50%)}input[type=checkbox]:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--ring) 30%,transparent)}input[type=radio]{appearance:none;width:1.2rem;height:1.2rem;border:2px solid var(--border-color);border-radius:50%;background:var(--background);cursor:pointer;position:relative;transition:all .2s cubic-bezier(.4,0,.2,1);vertical-align:middle;margin-right:.5rem}input[type=radio]:checked{border-color:var(--primary);background:var(--primary);box-shadow:inset 0 0 0 3px var(--background)}input[type=radio]:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--ring) 30%,transparent)}input[type=checkbox].toggle{appearance:none;width:3rem;height:1.5rem;background:var(--toggle-bg);border-radius:9999px;border:none;position:relative;cursor:pointer;transition:background .3s cubic-bezier(.4,0,.2,1);margin-right:.5rem}input[type=checkbox].toggle:before{content:"";position:absolute;width:1.25rem;height:1.25rem;background:var(--toggle-knob);border-radius:50%;top:.125rem;left:.125rem;transition:transform .3s cubic-bezier(.4,0,.2,1);box-shadow:0 1px 3px #0003}input[type=checkbox].toggle:checked{background:var(--primary)}input[type=checkbox].toggle:checked:before{transform:translate(1.5rem)}input[type=checkbox].toggle:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--ring) 30%,transparent)}input[type=range]{appearance:none;width:100%;height:4px;background:var(--border-color);border-radius:9999px;outline:none;cursor:pointer}input[type=range]::-webkit-slider-thumb{appearance:none;width:1rem;height:1rem;background:var(--primary);border-radius:50%;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;box-shadow:0 1px 3px #0003}input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.2)}input[type=range]:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--ring) 30%,transparent)}button,input[type=submit],input[type=button],input[type=reset]{font:inherit;cursor:pointer;font-size:.875rem;font-weight:500;padding:.5rem 1rem;border-radius:var(--radius);transition:all .2s ease}button{border:none;background-color:var(--primary);color:var(--primary-foreground)}button:hover{background-color:color-mix(in srgb,var(--primary) 90%,transparent)}button:active{transform:scale(.98)}button[secondary]{background-color:var(--secondary);color:var(--secondary-foreground)}button[secondary]:hover{background-color:color-mix(in srgb,var(--secondary) 90%,transparent)}input[type=submit]{border:var(--border);background-color:transparent;color:var(--foreground)}input[type=submit]:hover{background-color:color-mix(in srgb,var(--muted) 90%,transparent)}input[type=button]{border:none;background-color:transparent;color:var(--foreground)}input[type=button]:hover{background-color:var(--muted)}input[type=reset]{border:none;background-color:var(--destructive);color:var(--primary-foreground)}input[type=reset]:hover{background-color:color-mix(in srgb,var(--destructive) 90%,transparent)}fieldset{border:var(--border);border-radius:var(--radius);padding:1rem;display:flex;gap:.5rem}fieldset[role=group]{border:none;padding:1rem;display:flex;gap:0}fieldset[role=group]>*{border-radius:0}fieldset[role=group]>*:first-child{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius);border-right:0}fieldset[role=group]>*:last-child{border-top-right-radius:var(--radius);border-bottom-right-radius:var(--radius);border-right:var(--border)}legend{padding:0 .5rem}label{display:block}small{color:var(--muted-foreground)}img{max-width:100%;height:auto;border-radius:var(--radius)}img[avatar]{border-radius:50%}blockquote{border-left:4px solid var(--border-color);padding-left:1rem;font-style:italic}progress{width:100%;appearance:none;height:.5rem;border-radius:9999px;background-color:var(--muted);border:0}progress::-webkit-progress-value{border-radius:9999px;background-color:var(--primary)}progress::-moz-progress-bar{border-radius:9999px;background-color:var(--primary)}details{border:var(--border);border-radius:var(--radius);padding:.5rem;margin-bottom:1rem}summary{cursor:pointer;font-weight:700}article{border:var(--border);border-radius:var(--radius);padding:1rem;margin-bottom:1rem}footer{margin-top:2rem;color:var(--muted-foreground)}dialog{background-color:var(--background);color:var(--foreground);border:var(--border);border-radius:var(--radius);padding:24px;margin:auto;opacity:0;transform:scale(.95);transition:opacity .2s ease,transform .2s ease}dialog[open]{opacity:1;transform:scale(1)}dialog::backdrop{background-color:#000c;transition:backdrop-filter .2s ease}dialog[drawer]{border-bottom-right-radius:0;border-bottom-left-radius:0;top:auto;bottom:0;max-height:50vh;transform:translateY(100%);transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .2s ease}dialog[drawer][open]{transform:translateY(0)}dialog[sheet-top],dialog[sheet-bottom],dialog[sheet-left],dialog[sheet-right]{border-radius:0;margin:0}dialog[sheet-top],dialog[sheet-bottom]{width:100vw;max-height:50vh}dialog[sheet-left],dialog[sheet-right]{height:100vh;max-width:50vw}dialog[sheet-top]{transform:translateY(-100%);transition:transform .3s cubic-bezier(.4,0,.2,1)}dialog[sheet-top][open]{transform:translateY(0)}dialog[sheet-bottom]{transform:translateY(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);top:auto;bottom:0}dialog[sheet-bottom][open]{transform:translateY(0)}dialog[sheet-left]{transform:translate(-100%);transition:transform .3s cubic-bezier(.4,0,.2,1)}dialog[sheet-left][open]{transform:translate(0)}dialog[sheet-right]{transform:translate(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);left:auto;right:0}dialog[sheet-right][open]{transform:translate(0)}details{transition:all .3s cubic-bezier(.4,0,.2,1)}details[open] summary~*{animation:accordion-slide .3s cubic-bezier(.4,0,.2,1)}@keyframes accordion-slide{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}aside{background-color:var(--sidebar);border:1px solid var(--sidebar-border);display:flex;flex-direction:column;justify-content:space-between;position:relative;padding:.5rem;transition:transform .3s cubic-bezier(.4,0,.2,1)}aside[data-collapsed=true]{transform:translate(-100%)}[aria-busy=true]{opacity:.7;cursor:progress}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}@media (max-width: 600px){body{padding:.5rem}nav ul{flex-direction:column}}:disabled,[disabled]{cursor:not-allowed;opacity:.5;pointer-events:none}hr{border:0;height:1px;margin:1rem 0;background-color:var(--border-color)}kbd{padding:.125rem .625rem;background-color:var(--primary);color:var(--primary-foreground);border-radius:6px;font-weight:700}table{border-collapse:collapse;width:100%}table th{color:var(--muted-foreground);text-align:start;padding:.5rem}table td{padding:.5rem;text-align:start}table tr{border-bottom:var(--border)}pre{border-radius:var(--radius);overflow-x:auto}code{border:var(--border);border-radius:var(--radius);background-color:var(--primary);color:var(--primary-foreground);padding:.2rem}[tooltip-top],[tooltip-bottom],[tooltip-left],[tooltip-right]{position:relative}[tooltip-top]:after,[tooltip-bottom]:after,[tooltip-left]:after,[tooltip-right]:after{position:absolute;white-space:nowrap;background-color:var(--primary);color:var(--primary-foreground);padding:6px 8px;font-size:.875em;border-radius:var(--radius);opacity:0;transition:opacity .2s ease;pointer-events:none}[tooltip-top]:hover:after,[tooltip-bottom]:hover:after,[tooltip-left]:hover:after,[tooltip-right]:hover:after{opacity:1}[tooltip-top]:after{content:attr(tooltip-top);left:50%;top:-.8rem;transform:translate(-50%) translateY(-100%)}[tooltip-bottom]:after{content:attr(tooltip-bottom);left:50%;top:calc(100% + .8rem);transform:translate(-50%)}[tooltip-left]:after{content:attr(tooltip-left);left:-.3rem;top:50%;transform:translate(-100%) translateY(-50%)}[tooltip-right]:after{content:attr(tooltip-right);left:calc(100% + .3rem);top:50%;transform:translateY(-50%)}menu{display:flex;flex-direction:row;border:var(--border);border-radius:var(--radius);width:fit-content;list-style:none}menu li{padding:.25rem .75rem}div[skeleton]{background-color:var(--input);animation:shimmer 2s cubic-bezier(.4,0,.6,1) infinite;border-radius:var(--radius)}@keyframes shimmer{50%{opacity:.5}}[popover]{inset:unset;position:absolute;bottom:calc(anchor(top) + 5px);justify-self:anchor-center;margin:0;border:var(--border);border-radius:var(--radius);padding:.5rem}nav{display:flex;align-items:center;--separator: attr(breadcrumb, ">")}nav>a{padding:0 .625rem 0 0;color:var(--muted-foreground)}nav>a:after{padding:0 0 0 .625rem;display:inline-block;content:var(--separator)}nav>a:last-child{color:var(--foreground)}nav>a:last-child:after{content:""} diff --git a/docs/ui/sigpro-css.css b/docs/ui/sigpro-css.css deleted file mode 100644 index d02c36f..0000000 --- a/docs/ui/sigpro-css.css +++ /dev/null @@ -1,959 +0,0 @@ -@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap"; -:root { - --radius: 0.5rem; - --background: oklch(100% 0 0); - --foreground: oklch(14.1% 0.005 285.823); - --card: oklch(100% 0 0); - --card-foreground: oklch(14.1% 0.005 285.823); - --popover: oklch(100% 0 0); - --popover-foreground: oklch(14.1% 0.005 285.823); - --primary: oklch(21% 0.006 285.885); - --primary-foreground: oklch(98.5% 0 0); - --secondary: oklch(96.7% 0.001 286.375); - --secondary-foreground: oklch(21% 0.006 285.885); - --muted: oklch(96.7% 0.001 286.375); - --muted-foreground: oklch(55.2% 0.016 285.938); - --accent: oklch(96.7% 0.001 286.375); - --accent-foreground: oklch(21% 0.006 285.885); - --destructive: oklch(57.7% 0.245 27.325); - --border-color: oklch(92% 0.004 286.32); - --input: oklch(92% 0.004 286.32); - --ring: oklch(70.5% 0.015 286.067); - --chart-1: oklch(64.6% 0.222 41.116); - --chart-2: oklch(60% 0.118 184.704); - --chart-3: oklch(39.8% 0.07 227.392); - --chart-4: oklch(82.8% 0.189 84.429); - --chart-5: oklch(76.9% 0.188 70.08); - --sidebar: oklch(98.5% 0 0); - --sidebar-foreground: oklch(14.1% 0.005 285.823); - --sidebar-primary: oklch(21% 0.006 285.885); - --sidebar-primary-foreground: oklch(98.5% 0 0); - --sidebar-accent: oklch(96.7% 0.001 286.375); - --sidebar-accent-foreground: oklch(21% 0.006 285.885); - --sidebar-border: oklch(92% 0.004 286.32); - --sidebar-ring: oklch(70.5% 0.015 286.067); - --shadow: 0px 10px 15px -3px #0000001a, 0px 4px 6px -2px #0000000d; - --loading-icon-url: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' stroke='rgb(184, 184, 184)' stroke-width='20' fill='none' stroke-linecap='round' stroke-dasharray='200' stroke-dashoffset='100'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 50 50' to='360 50 50' dur='1s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E"); - --border: 1px solid var(--border-color); -} -@media (prefers-color-scheme: dark) { - :root { - --background: oklch(14.1% 0.005 285.823); - --foreground: oklch(98.5% 0 0); - --card: oklch(21% 0.006 285.885); - --card-foreground: oklch(98.5% 0 0); - --popover: oklch(21% 0.006 285.885); - --popover-foreground: oklch(98.5% 0 0); - --primary: oklch(92% 0.004 286.32); - --primary-foreground: oklch(21% 0.006 285.885); - --secondary: oklch(27.4% 0.006 286.033); - --secondary-foreground: oklch(98.5% 0 0); - --muted: oklch(27.4% 0.006 286.033); - --muted-foreground: oklch(70.5% 0.015 286.067); - --accent: oklch(27.4% 0.006 286.033); - --accent-foreground: oklch(98.5% 0 0); - --destructive: oklch(70.4% 0.191 22.216); - --border-color: oklch(100% 0 0/0.1); - --input: oklch(100% 0 0/0.15); - --ring: oklch(55.2% 0.016 285.938); - --chart-1: oklch(48.8% 0.243 264.376); - --chart-2: oklch(69.6% 0.17 162.48); - --chart-3: oklch(76.9% 0.188 70.08); - --chart-4: oklch(62.7% 0.265 303.9); - --chart-5: oklch(64.5% 0.246 16.439); - --sidebar: oklch(21% 0.006 285.885); - --sidebar-foreground: oklch(98.5% 0 0); - --sidebar-primary: oklch(48.8% 0.243 264.376); - --sidebar-primary-foreground: oklch(98.5% 0 0); - --sidebar-accent: oklch(27.4% 0.006 286.033); - --sidebar-accent-foreground: oklch(98.5% 0 0); - --sidebar-border: oklch(100% 0 0/0.1); - --sidebar-ring: oklch(55.2% 0.016 285.938); - --border: 1px solid var(--border-color); - } -} -html { - color-scheme: light dark; -} -html[data-theme="light"] { - color-scheme: light; - --background: oklch(100% 0 0); - --foreground: oklch(14.1% 0.005 285.823); - --card: oklch(100% 0 0); - --card-foreground: oklch(14.1% 0.005 285.823); - --popover: oklch(100% 0 0); - --popover-foreground: oklch(14.1% 0.005 285.823); - --primary: oklch(21% 0.006 285.885); - --primary-foreground: oklch(98.5% 0 0); - --secondary: oklch(96.7% 0.001 286.375); - --secondary-foreground: oklch(21% 0.006 285.885); - --muted: oklch(96.7% 0.001 286.375); - --muted-foreground: oklch(55.2% 0.016 285.938); - --accent: oklch(96.7% 0.001 286.375); - --accent-foreground: oklch(21% 0.006 285.885); - --destructive: oklch(57.7% 0.245 27.325); - --border-color: oklch(92% 0.004 286.32); - --input: oklch(92% 0.004 286.32); - --ring: oklch(70.5% 0.015 286.067); - --chart-1: oklch(64.6% 0.222 41.116); - --chart-2: oklch(60% 0.118 184.704); - --chart-3: oklch(39.8% 0.07 227.392); - --chart-4: oklch(82.8% 0.189 84.429); - --chart-5: oklch(76.9% 0.188 70.08); - --sidebar: oklch(98.5% 0 0); - --sidebar-foreground: oklch(14.1% 0.005 285.823); - --sidebar-primary: oklch(21% 0.006 285.885); - --sidebar-primary-foreground: oklch(98.5% 0 0); - --sidebar-accent: oklch(96.7% 0.001 286.375); - --sidebar-accent-foreground: oklch(21% 0.006 285.885); - --sidebar-border: oklch(92% 0.004 286.32); - --sidebar-ring: oklch(70.5% 0.015 286.067); - --shadow: 0px 10px 15px -3px #0000001a, 0px 4px 6px -2px #0000000d; - --border: 1px solid var(--border-color); -} -html[data-theme="dark"] { - color-scheme: dark; - --background: oklch(14.1% 0.005 285.823); - --foreground: oklch(98.5% 0 0); - --card: oklch(21% 0.006 285.885); - --card-foreground: oklch(98.5% 0 0); - --popover: oklch(21% 0.006 285.885); - --popover-foreground: oklch(98.5% 0 0); - --primary: oklch(92% 0.004 286.32); - --primary-foreground: oklch(21% 0.006 285.885); - --secondary: oklch(27.4% 0.006 286.033); - --secondary-foreground: oklch(98.5% 0 0); - --muted: oklch(27.4% 0.006 286.033); - --muted-foreground: oklch(70.5% 0.015 286.067); - --accent: oklch(27.4% 0.006 286.033); - --accent-foreground: oklch(98.5% 0 0); - --destructive: oklch(70.4% 0.191 22.216); - --border-color: oklch(100% 0 0/0.1); - --input: oklch(100% 0 0/0.15); - --ring: oklch(55.2% 0.016 285.938); - --chart-1: oklch(48.8% 0.243 264.376); - --chart-2: oklch(69.6% 0.17 162.48); - --chart-3: oklch(76.9% 0.188 70.08); - --chart-4: oklch(62.7% 0.265 303.9); - --chart-5: oklch(64.5% 0.246 16.439); - --sidebar: oklch(21% 0.006 285.885); - --sidebar-foreground: oklch(98.5% 0 0); - --sidebar-primary: oklch(48.8% 0.243 264.376); - --sidebar-primary-foreground: oklch(98.5% 0 0); - --sidebar-accent: oklch(27.4% 0.006 286.033); - --sidebar-accent-foreground: oklch(98.5% 0 0); - --sidebar-border: oklch(100% 0 0/0.1); - --sidebar-ring: oklch(55.2% 0.016 285.938); - --border: 1px solid var(--border-color); -} -* { - box-sizing: border-box; - scrollbar-width: auto; - scrollbar-color: var(--muted-foreground) var(--muted); - margin: 0; - padding: 0; -} -::-webkit-scrollbar { - width: 12px; -} -::-webkit-scrollbar-thumb { - background: var(--muted-foreground); - border: 2px solid var(--background); - border-radius: 6px; -} -::-webkit-scrollbar-thumb:hover { - background: var(--foreground); -} -::-webkit-scrollbar-track { - background: var(--muted); - border-radius: 6px; -} -body { - background-color: var(--background); - color: var(--foreground); - max-width: 900px; - margin: 0 auto; - padding: 2rem 1rem 1rem; - font-family: - Inter, - -apple-system, - BlinkMacSystemFont, - Segoe UI, - Roboto, - Oxygen, - Ubuntu, - Cantarell, - sans-serif; - line-height: 1.5; - transition: - background-color 0.3s, - color 0.3s; -} -h1, -h2, -h3, -h4, -h5, -h6 { - margin-bottom: 0.5em; - font-weight: 700; -} -h1 { - letter-spacing: -0.025em; - font-size: 1.875rem; - font-weight: 700; - line-height: 2.25rem; -} -h2 { - letter-spacing: -0.025em; - font-size: 1.25rem; - font-weight: 600; - line-height: 1.75rem; -} -h3 { - letter-spacing: -0.025em; - font-size: 1.125rem; - font-weight: 600; - line-height: 1.75rem; -} -h4 { - letter-spacing: -0.025em; - font-size: 16px; - font-weight: 600; - line-height: 1.75rem; -} -h5 { - font-size: 15px; -} -h6 { - font-size: 14px; -} -p { - margin: 1em 0; -} -a { - color: var(--primary); - text-decoration: none; - transition: color 0.2s; -} -a:hover { - color: color-mix(in srgb, var(--primary) 80%, transparent); - text-decoration: underline; -} -a:focus-visible { - outline: 2px solid var(--ring); - outline-offset: 2px; - border-radius: 2px; -} -ul, -ol { - margin-bottom: 1em; - padding-left: 1.5em; -} -header { - margin-bottom: 2rem; -} -header h1 { - font-size: 2rem; -} -nav ul { - gap: 1rem; - padding: 0; - list-style: none; - display: flex; -} -section { - margin-bottom: 2rem; -} -form { - flex-direction: column; - gap: 1rem; - display: flex; -} -input[type="password"], -input[type="text"], -input[type="date"], -input[type="color"], -input[type="time"], -input[type="file"], -input[type="search"], -input[type="email"], -select, -textarea { - font-weight: 500; - font: inherit; - border: var(--border); - border-radius: var(--radius); - background-color: var(--background); - color: var(--foreground); - padding: 0.5rem; - font-size: 0.875rem; - transition: - border-color 0.2s, - box-shadow 0.2s; -} -input[type="password"]:focus, -input[type="text"]:focus, -input[type="date"]:focus, -input[type="time"]:focus, -input[type="search"]:focus, -input[type="email"]:focus, -select:focus, -textarea:focus { - border-color: var(--ring); - box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 15%, transparent); - outline: none; -} -input[type="color"] { - -webkit-appearance: none; - appearance: none; - cursor: pointer; - padding: initial; - max-width: initial; - border-radius: var(--radius); - border: none; - outline: none; -} -input[type="color"]::-webkit-color-swatch { - border-radius: var(--radius); - border: none; -} -input[type="color"]::-moz-color-swatch { - border-radius: var(--radius); - border: none; -} -input[type="reset"], -input[type="submit"], -input[type="button"], -button { - font: inherit; - cursor: pointer; - border-radius: var(--radius); - padding: 0.5rem 1rem; - font-size: 0.875rem; - font-weight: 500; - transition: background-color 0.2s ease-in-out; -} -button { - background-color: var(--primary); - color: var(--primary-foreground); - border: none; - &:hover { - background-color: color-mix(in srgb, var(--primary) 90%, transparent); - } - &:focus-visible { - box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); - outline: none; - } - &:active { - transform: scale(0.98); - } -} -button[secondary] { - background-color: var(--secondary); - color: var(--secondary-foreground); - &:hover { - background-color: color-mix(in srgb, var(--secondary) 90%, transparent); - } -} -input[type="submit"] { - border: var(--border); - color: var(--foreground); - background-color: #0000; - &:hover { - background-color: color-mix(in srgb, var(--muted) 90%, transparent); - } -} -input[type="button"] { - color: var(--foreground); - background-color: #0000; - border: none; - &:hover { - background-color: var(--muted); - } -} -input[type="reset"] { - background-color: var(--destructive); - color: var(--primary-foreground); - border: none; - &:hover { - background-color: color-mix(in srgb, var(--destructive) 90%, transparent); - } -} -fieldset { - border: var(--border); - border-radius: var(--radius); - gap: 0.5rem; - padding: 1rem; - display: flex; -} -fieldset[role="group"] { - border: none; - gap: 0; - padding: 1rem; - display: flex; - & > * { - border-radius: 0; - &:first-child { - border-top-left-radius: var(--radius); - border-bottom-left-radius: var(--radius); - border-right: 0; - } - &:last-child { - border-top-right-radius: var(--radius); - border-bottom-right-radius: var(--radius); - border-right: var(--border); - } - } -} -fieldset[role="otp"] { - border: none; - gap: 0; - padding: 1rem; - display: flex; - & > input { - text-align: center; - border-right: 0; - border-radius: 0; - width: 1rem; - &:first-child { - border-top-left-radius: var(--radius); - border-bottom-left-radius: var(--radius); - border-right: 0; - } - &:last-child { - border-top-right-radius: var(--radius); - border-bottom-right-radius: var(--radius); - border-right: var(--border); - } - } -} -legend { - padding: 0 0.5rem; -} -label { - display: block; - & * { - vertical-align: middle; - } -} -small { - color: var(--muted-foreground); -} -figure { - margin-bottom: 1rem; - overflow: hidden; -} -img { - border-radius: var(--radius); - max-width: 100%; - height: auto; -} -img[avatar] { - border-radius: 50%; -} -figcaption { - color: var(--muted-foreground); - margin-top: 0.5rem; - font-size: 0.875rem; -} -blockquote { - border-left: 4px solid var(--border-color); - padding-left: 1rem; - font-style: italic; - & > footer { - text-align: center; - } -} -[type="checkbox"], -[type="radio"] { - margin-right: 0.5rem; -} -progress { - width: 100%; -} -dialog { - background-color: var(--background); - color: var(--foreground); - border: var(--border); - border-radius: var(--radius); - margin: auto; - padding: 24px; -} -dialog::backdrop { - background-color: #000c; -} -details { - border: var(--border); - border-radius: var(--radius); - margin-bottom: 1rem; - padding: 0.5rem; -} -summary { - cursor: pointer; - font-weight: 700; -} -article { - border: var(--border); - border-radius: var(--radius); - margin-bottom: 1rem; - padding: 1rem; -} -footer { - color: var(--muted-foreground); - margin-top: 2rem; -} -[aria-busy="true"] { - opacity: 0.7; - cursor: progress; -} -[aria-busy="spinner"] { - opacity: 0.7; - cursor: progress; - &:before { - content: var(--loading-icon-url); - padding-right: 1rem; - } -} -@media (prefers-reduced-motion: reduce) { - *, - :before, - :after { - transition-duration: 0.01ms !important; - animation-duration: 0.01ms !important; - animation-iteration-count: 1 !important; - } -} -@media (width<=600px) { - body { - padding: 0.5rem; - } - nav ul { - flex-direction: column; - } -} -input[type="file"]::file-selector-button { - background-color: var(--background); - color: var(--foreground); - border: none; - font-weight: 600; -} -:disabled, -[disabled] { - cursor: not-allowed; - opacity: 0.5; -} -button:disabled, -input:disabled, -select:disabled, -textarea:disabled { - pointer-events: none; -} -input[type="radio"], -input[type="checkbox"], -input[type="range"] { - accent-color: var(--primary); - background-color: var(--background); -} -input[type="checkbox"][icon] { - display: none; - & + * { - cursor: pointer; - border-radius: var(--radius); - box-sizing: border-box; - padding: 0.5rem; - &:hover { - background-color: var(--border-color); - } - } -} -input[type="checkbox"][icon] { - display: none; - & + * { - cursor: pointer; - border-radius: var(--radius); - width: 2rem; - height: 2rem; - padding: 0.5rem; - &:hover { - background-color: var(--border-color); - stroke: var(--muted-foreground); - } - } -} -input[type="checkbox"][icon]:checked { - & + * { - background-color: var(--border-color); - &:hover { - stroke: var(--accent-foreground); - } - } -} -kbd { - background-color: var(--primary); - color: var(--primary-foreground); - border-radius: 6px; - padding: 0.125rem 0.625rem; - font-weight: 700; -} -kbd[secondary] { - background-color: var(--secondary); - color: var(--secondary-foreground); -} -kbd[outline] { - background-color: var(--background); - color: var(--primary); - border: var(--border); -} -kbd[destructive] { - background-color: var(--destructive); - color: var(--primary-foreground); -} -table { - caption-side: bottom; - border-collapse: collapse; - & caption { - color: var(--muted-foreground); - margin-top: 1rem; - } - & th { - color: var(--muted-foreground); - } - & tr { - border-bottom: var(--border); - } - & tr:hover { - background-color: hsl(var(--muted) / 0.5); - } - & td, - & th { - vertical-align: middle; - text-align: start; - padding: 0.5rem; - } - & tfoot { - background-color: var(--muted); - } -} -dialog[drawer] { - resize: vertical; - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; - max-height: 50vh; - top: auto; - bottom: 0; - &[open] { - animation: 0.2s ease-in forwards slideup; - } -} -dialog > header { - margin: 0; -} -dialog[sheet-top], -dialog[sheet-bottom], -dialog[sheet-left], -dialog[sheet-right] { - border-radius: 0; - margin: 0; -} -dialog[sheet-top], -dialog[sheet-bottom] { - width: 100vw; - max-height: 50vh; -} -dialog[sheet-left], -dialog[sheet-right] { - max-width: 50vw; - height: 100vh; -} -dialog[sheet-top][open] { - animation: 0.2s ease-in forwards slidedown; -} -dialog[sheet-bottom][open] { - animation: 0.2s ease-in forwards slideup; - top: auto; - bottom: 0; -} -dialog[sheet-left][open] { - animation: 0.2s ease-in forwards slideright; -} -dialog[sheet-right][open] { - animation: 0.2s ease-in forwards slideleft; - left: auto; - right: 0; -} -@keyframes slideup { - 0% { - transform: translateY(100%); - } - to { - transform: translateY(0); - } -} -@keyframes slidedown { - 0% { - transform: translateY(-100%); - } - to { - transform: translateY(0); - } -} -@keyframes slideleft { - 0% { - transform: translate(100%); - } - to { - transform: translate(0); - } -} -@keyframes slideright { - 0% { - transform: translate(-100%); - } - to { - transform: translate(0); - } -} -progress { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background-color: var(--muted); - border: 0; - border-radius: 9999px; - height: 0.5rem; -} -progress[value]::-webkit-progress-value { - background-color: var(--primary); - border-radius: 9999px; -} -::-webkit-progress-bar { - background-color: var(--muted); - border-radius: 9999px; -} -::-moz-progress-bar { - background-color: var(--primary); - border-radius: 9999px; -} -progress:indeterminate { - background: var(--muted) - linear-gradient(to right, var(--primary) 35%, var(--muted) 35%) top - left/150% 150% no-repeat; - animation: 1.5s linear infinite progress-indeterminate; -} -progress:indeterminate::-webkit-progress-bar { - background-color: #0000; -} -progress:indeterminate::-moz-progress-bar { - background-color: #0000; -} -@keyframes progress-indeterminate { - 0% { - background-position: 200% 0; - } - to { - background-position: -200% 0; - } -} -hr { - background-color: var(--border-color); - border: 0; - flex-shrink: 0; - height: 1px; - margin: 1rem 0; -} -hr[vertical] { - width: 1px; - height: auto; - margin: 0 1rem; -} -nav { - --separator: attr(breadcrumb, ">"); - align-items: center; - display: flex; - & > a { - color: var(--muted-foreground); - padding: 0 0.625rem 0 0; - &:after { - content: var(--separator); - padding: 0 0 0 0.625rem; - display: inline-block; - } - &:last-child { - color: var(--foreground); - &:after { - content: ""; - } - } - } - &:hover:after { - text-decoration: none; - } -} -div[skeleton] { - background-color: var(--input); - border-radius: var(--radius); - opacity: 1; - animation: 2s cubic-bezier(0.4, 0, 0.6, 1) infinite shimmer; - & * { - display: none; - } -} -@keyframes shimmer { - 50% { - opacity: 0.5; - } -} -[popover] { - inset: unset; - bottom: calc(anchor(top) + 5px); - justify-self: anchor-center; - border: var(--border); - border-radius: var(--radius); - margin: 0; - padding: 0.5rem; - position: absolute; -} -[tooltip-top], -[tooltip-bottom], -[tooltip-left], -[tooltip-right] { - position: relative; - &:after { - white-space: nowrap; - background-color: var(--primary); - color: var(--primary-foreground); - border-radius: var(--radius); - opacity: 0; - z-index: 10; - pointer-events: none; - padding: 6px 8px; - font-size: 0.875em; - transition: opacity 0.2s ease-in-out; - position: absolute; - } - &:hover:after { - opacity: 1; - } -} -[tooltip-top]:after { - content: attr(tooltip-top); - top: -0.8rem; - left: 50%; - transform: translate(-50%) translateY(-100%); -} -[tooltip-bottom]:after { - content: attr(tooltip-bottom); - top: calc(100% + 0.8rem); - left: 50%; - transform: translate(-50%) translateY(0%); -} -[tooltip-left]:after { - content: attr(tooltip-left); - top: 50%; - left: -0.3rem; - transform: translate(-100%) translateY(-50%); -} -[tooltip-right]:after { - content: attr(tooltip-right); - margin-left: 0.3rem; - top: 50%; - left: calc(100% + 0.3rem); - transform: translate(0%) translateY(-50%); -} -pre { - border-radius: var(--radius); - & > code { - display: block; - overflow-x: auto; - } -} -code { - border: var(--border); - border-radius: var(--radius); - background-color: var(--primary); - color: var(--primary-foreground); - padding: 0.2rem; -} -dialog[sonner], -dialog[toast] { - padding: 1rem 1.5rem 1rem 1rem; - inset: auto 1rem 1rem auto; - &::backdrop { - opacity: 0; - } -} -dialog[toast] { - box-shadow: var(--shadow); - &[open] { - animation: - 0.2s ease-in forwards slideup, - 0.2s ease-in forwards fad-in; - } -} -dialog[sonner] { - background-color: #0000; - border: none; - flex-direction: column-reverse; - gap: 0.5rem; - transition: gap 0.15s ease-in; - display: flex; - & > li { - background-color: var(--background); - counter-increment: sonner-counter; - border: var(--border); - border-radius: var(--radius); - padding: 1rem 1.5rem 1rem 1rem; - list-style: none; - animation: - 0.2s ease-in forwards slideup, - 0.2s ease-in forwards fad-in; - &:hover { - scale: 1.1; - } - } -} -@keyframes fad-in { - 0% { - opacity: 0; - } - to { - opacity: 1; - } -} -aside { - background-color: var(--sidebar); - border: 1px solid var(--sidebar-border); - flex-direction: column; - justify-content: space-between; - padding: 0.5rem; - display: flex; - position: relative; - & > main { - flex-direction: column; - flex-grow: 1; - display: flex; - overflow-y: auto; - } - & > header, - & > footer { - position: sticky; - } -} -menu { - border: var(--border); - border-radius: var(--radius); - flex-direction: row; - width: fit-content; - display: flex; - & > li { - padding: 0.25rem 0.75rem; - list-style: none; - } -} -[scroll-x] { - overflow-x: scroll; -} -[scroll-y] { - overflow-y: scroll; -} diff --git a/sigpro.css b/sigpro.css index d02c36f..c870754 100644 --- a/sigpro.css +++ b/sigpro.css @@ -1,873 +1,503 @@ -@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap"; +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap'); + :root { --radius: 0.5rem; - --background: oklch(100% 0 0); - --foreground: oklch(14.1% 0.005 285.823); - --card: oklch(100% 0 0); - --card-foreground: oklch(14.1% 0.005 285.823); - --popover: oklch(100% 0 0); - --popover-foreground: oklch(14.1% 0.005 285.823); - --primary: oklch(21% 0.006 285.885); - --primary-foreground: oklch(98.5% 0 0); - --secondary: oklch(96.7% 0.001 286.375); - --secondary-foreground: oklch(21% 0.006 285.885); - --muted: oklch(96.7% 0.001 286.375); - --muted-foreground: oklch(55.2% 0.016 285.938); - --accent: oklch(96.7% 0.001 286.375); - --accent-foreground: oklch(21% 0.006 285.885); - --destructive: oklch(57.7% 0.245 27.325); - --border-color: oklch(92% 0.004 286.32); - --input: oklch(92% 0.004 286.32); - --ring: oklch(70.5% 0.015 286.067); - --chart-1: oklch(64.6% 0.222 41.116); - --chart-2: oklch(60% 0.118 184.704); - --chart-3: oklch(39.8% 0.07 227.392); - --chart-4: oklch(82.8% 0.189 84.429); - --chart-5: oklch(76.9% 0.188 70.08); - --sidebar: oklch(98.5% 0 0); - --sidebar-foreground: oklch(14.1% 0.005 285.823); - --sidebar-primary: oklch(21% 0.006 285.885); - --sidebar-primary-foreground: oklch(98.5% 0 0); - --sidebar-accent: oklch(96.7% 0.001 286.375); - --sidebar-accent-foreground: oklch(21% 0.006 285.885); - --sidebar-border: oklch(92% 0.004 286.32); - --sidebar-ring: oklch(70.5% 0.015 286.067); - --shadow: 0px 10px 15px -3px #0000001a, 0px 4px 6px -2px #0000000d; - --loading-icon-url: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' stroke='rgb(184, 184, 184)' stroke-width='20' fill='none' stroke-linecap='round' stroke-dasharray='200' stroke-dashoffset='100'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 50 50' to='360 50 50' dur='1s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E"); + --background: oklch(1 0 0); + --foreground: oklch(0.141 0.005 285.823); + --card: oklch(1 0 0); + --card-foreground: oklch(0.141 0.005 285.823); + --popover: oklch(1 0 0); + --popover-foreground: oklch(0.141 0.005 285.823); + --primary: oklch(0.21 0.006 285.885); + --primary-foreground: oklch(0.985 0 0); + --secondary: oklch(0.967 0.001 286.375); + --secondary-foreground: oklch(0.21 0.006 285.885); + --muted: oklch(0.967 0.001 286.375); + --muted-foreground: oklch(0.552 0.016 285.938); + --accent: oklch(0.967 0.001 286.375); + --accent-foreground: oklch(0.21 0.006 285.885); + --destructive: oklch(0.577 0.245 27.325); + --border-color: oklch(0.92 0.004 286.32); + --input: oklch(0.92 0.004 286.32); + --ring: oklch(0.705 0.015 286.067); + --chart-1: oklch(0.646 0.222 41.116); + --chart-2: oklch(0.6 0.118 184.704); + --chart-3: oklch(0.398 0.07 227.392); + --chart-4: oklch(0.828 0.189 84.429); + --chart-5: oklch(0.769 0.188 70.08); + --sidebar: oklch(0.985 0 0); + --sidebar-foreground: oklch(0.141 0.005 285.823); + --sidebar-primary: oklch(0.21 0.006 285.885); + --sidebar-primary-foreground: oklch(0.985 0 0); + --sidebar-accent: oklch(0.967 0.001 286.375); + --sidebar-accent-foreground: oklch(0.21 0.006 285.885); + --sidebar-border: oklch(0.92 0.004 286.32); + --sidebar-ring: oklch(0.705 0.015 286.067); + --shadow: 0px 10px 15px -3px rgba(0,0,0,0.1),0px 4px 6px -2px rgba(0,0,0,0.05); --border: 1px solid var(--border-color); + --toggle-bg: oklch(0.705 0.015 286.067); + --toggle-knob: oklch(1 0 0); } + @media (prefers-color-scheme: dark) { :root { - --background: oklch(14.1% 0.005 285.823); - --foreground: oklch(98.5% 0 0); - --card: oklch(21% 0.006 285.885); - --card-foreground: oklch(98.5% 0 0); - --popover: oklch(21% 0.006 285.885); - --popover-foreground: oklch(98.5% 0 0); - --primary: oklch(92% 0.004 286.32); - --primary-foreground: oklch(21% 0.006 285.885); - --secondary: oklch(27.4% 0.006 286.033); - --secondary-foreground: oklch(98.5% 0 0); - --muted: oklch(27.4% 0.006 286.033); - --muted-foreground: oklch(70.5% 0.015 286.067); - --accent: oklch(27.4% 0.006 286.033); - --accent-foreground: oklch(98.5% 0 0); - --destructive: oklch(70.4% 0.191 22.216); - --border-color: oklch(100% 0 0/0.1); - --input: oklch(100% 0 0/0.15); - --ring: oklch(55.2% 0.016 285.938); - --chart-1: oklch(48.8% 0.243 264.376); - --chart-2: oklch(69.6% 0.17 162.48); - --chart-3: oklch(76.9% 0.188 70.08); - --chart-4: oklch(62.7% 0.265 303.9); - --chart-5: oklch(64.5% 0.246 16.439); - --sidebar: oklch(21% 0.006 285.885); - --sidebar-foreground: oklch(98.5% 0 0); - --sidebar-primary: oklch(48.8% 0.243 264.376); - --sidebar-primary-foreground: oklch(98.5% 0 0); - --sidebar-accent: oklch(27.4% 0.006 286.033); - --sidebar-accent-foreground: oklch(98.5% 0 0); - --sidebar-border: oklch(100% 0 0/0.1); - --sidebar-ring: oklch(55.2% 0.016 285.938); - --border: 1px solid var(--border-color); + --background: oklch(0.141 0.005 285.823); + --foreground: oklch(0.985 0 0); + --card: oklch(0.21 0.006 285.885); + --card-foreground: oklch(0.985 0 0); + --popover: oklch(0.21 0.006 285.885); + --popover-foreground: oklch(0.985 0 0); + --primary: oklch(0.92 0.004 286.32); + --primary-foreground: oklch(0.21 0.006 285.885); + --secondary: oklch(0.274 0.006 286.033); + --secondary-foreground: oklch(0.985 0 0); + --muted: oklch(0.274 0.006 286.033); + --muted-foreground: oklch(0.705 0.015 286.067); + --accent: oklch(0.274 0.006 286.033); + --accent-foreground: oklch(0.985 0 0); + --destructive: oklch(0.704 0.191 22.216); + --border-color: oklch(1 0 0 / 10%); + --input: oklch(1 0 0 / 15%); + --ring: oklch(0.552 0.016 285.938); + --sidebar: oklch(0.21 0.006 285.885); + --sidebar-foreground: oklch(0.985 0 0); + --sidebar-border: oklch(1 0 0 / 10%); + --toggle-bg: oklch(0.4 0.016 285.938); } } -html { - color-scheme: light dark; -} -html[data-theme="light"] { + +html[data-theme='light'] { color-scheme: light; - --background: oklch(100% 0 0); - --foreground: oklch(14.1% 0.005 285.823); - --card: oklch(100% 0 0); - --card-foreground: oklch(14.1% 0.005 285.823); - --popover: oklch(100% 0 0); - --popover-foreground: oklch(14.1% 0.005 285.823); - --primary: oklch(21% 0.006 285.885); - --primary-foreground: oklch(98.5% 0 0); - --secondary: oklch(96.7% 0.001 286.375); - --secondary-foreground: oklch(21% 0.006 285.885); - --muted: oklch(96.7% 0.001 286.375); - --muted-foreground: oklch(55.2% 0.016 285.938); - --accent: oklch(96.7% 0.001 286.375); - --accent-foreground: oklch(21% 0.006 285.885); - --destructive: oklch(57.7% 0.245 27.325); - --border-color: oklch(92% 0.004 286.32); - --input: oklch(92% 0.004 286.32); - --ring: oklch(70.5% 0.015 286.067); - --chart-1: oklch(64.6% 0.222 41.116); - --chart-2: oklch(60% 0.118 184.704); - --chart-3: oklch(39.8% 0.07 227.392); - --chart-4: oklch(82.8% 0.189 84.429); - --chart-5: oklch(76.9% 0.188 70.08); - --sidebar: oklch(98.5% 0 0); - --sidebar-foreground: oklch(14.1% 0.005 285.823); - --sidebar-primary: oklch(21% 0.006 285.885); - --sidebar-primary-foreground: oklch(98.5% 0 0); - --sidebar-accent: oklch(96.7% 0.001 286.375); - --sidebar-accent-foreground: oklch(21% 0.006 285.885); - --sidebar-border: oklch(92% 0.004 286.32); - --sidebar-ring: oklch(70.5% 0.015 286.067); - --shadow: 0px 10px 15px -3px #0000001a, 0px 4px 6px -2px #0000000d; - --border: 1px solid var(--border-color); + --background: oklch(1 0 0); + --foreground: oklch(0.141 0.005 285.823); + --primary: oklch(0.21 0.006 285.885); + --toggle-bg: oklch(0.705 0.015 286.067); } -html[data-theme="dark"] { + +html[data-theme='dark'] { color-scheme: dark; - --background: oklch(14.1% 0.005 285.823); - --foreground: oklch(98.5% 0 0); - --card: oklch(21% 0.006 285.885); - --card-foreground: oklch(98.5% 0 0); - --popover: oklch(21% 0.006 285.885); - --popover-foreground: oklch(98.5% 0 0); - --primary: oklch(92% 0.004 286.32); - --primary-foreground: oklch(21% 0.006 285.885); - --secondary: oklch(27.4% 0.006 286.033); - --secondary-foreground: oklch(98.5% 0 0); - --muted: oklch(27.4% 0.006 286.033); - --muted-foreground: oklch(70.5% 0.015 286.067); - --accent: oklch(27.4% 0.006 286.033); - --accent-foreground: oklch(98.5% 0 0); - --destructive: oklch(70.4% 0.191 22.216); - --border-color: oklch(100% 0 0/0.1); - --input: oklch(100% 0 0/0.15); - --ring: oklch(55.2% 0.016 285.938); - --chart-1: oklch(48.8% 0.243 264.376); - --chart-2: oklch(69.6% 0.17 162.48); - --chart-3: oklch(76.9% 0.188 70.08); - --chart-4: oklch(62.7% 0.265 303.9); - --chart-5: oklch(64.5% 0.246 16.439); - --sidebar: oklch(21% 0.006 285.885); - --sidebar-foreground: oklch(98.5% 0 0); - --sidebar-primary: oklch(48.8% 0.243 264.376); - --sidebar-primary-foreground: oklch(98.5% 0 0); - --sidebar-accent: oklch(27.4% 0.006 286.033); - --sidebar-accent-foreground: oklch(98.5% 0 0); - --sidebar-border: oklch(100% 0 0/0.1); - --sidebar-ring: oklch(55.2% 0.016 285.938); - --border: 1px solid var(--border-color); + --background: oklch(0.141 0.005 285.823); + --foreground: oklch(0.985 0 0); + --primary: oklch(0.92 0.004 286.32); + --toggle-bg: oklch(0.4 0.016 285.938); } + * { + margin: 0; + padding: 0; box-sizing: border-box; scrollbar-width: auto; scrollbar-color: var(--muted-foreground) var(--muted); - margin: 0; - padding: 0; -} -::-webkit-scrollbar { - width: 12px; -} -::-webkit-scrollbar-thumb { - background: var(--muted-foreground); - border: 2px solid var(--background); - border-radius: 6px; -} -::-webkit-scrollbar-thumb:hover { - background: var(--foreground); -} -::-webkit-scrollbar-track { - background: var(--muted); - border-radius: 6px; } + +*::-webkit-scrollbar { width: 12px; } +*::-webkit-scrollbar-thumb { background: var(--muted-foreground); border-radius: 6px; border: 2px solid var(--background); } +*::-webkit-scrollbar-track { background: var(--muted); border-radius: 6px; } + body { + font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif; background-color: var(--background); color: var(--foreground); + line-height: 1.5; + padding: 2rem 1rem; + transition: background-color 0.3s ease, color 0.3s ease; max-width: 900px; margin: 0 auto; - padding: 2rem 1rem 1rem; - font-family: - Inter, - -apple-system, - BlinkMacSystemFont, - Segoe UI, - Roboto, - Oxygen, - Ubuntu, - Cantarell, - sans-serif; - line-height: 1.5; - transition: - background-color 0.3s, - color 0.3s; } -h1, -h2, -h3, -h4, -h5, -h6 { - margin-bottom: 0.5em; - font-weight: 700; -} -h1 { - letter-spacing: -0.025em; - font-size: 1.875rem; - font-weight: 700; - line-height: 2.25rem; -} -h2 { - letter-spacing: -0.025em; - font-size: 1.25rem; - font-weight: 600; - line-height: 1.75rem; -} -h3 { - letter-spacing: -0.025em; - font-size: 1.125rem; - font-weight: 600; - line-height: 1.75rem; -} -h4 { - letter-spacing: -0.025em; - font-size: 16px; - font-weight: 600; - line-height: 1.75rem; -} -h5 { - font-size: 15px; -} -h6 { - font-size: 14px; -} -p { - margin: 1em 0; -} -a { - color: var(--primary); - text-decoration: none; - transition: color 0.2s; -} -a:hover { - color: color-mix(in srgb, var(--primary) 80%, transparent); - text-decoration: underline; -} -a:focus-visible { - outline: 2px solid var(--ring); - outline-offset: 2px; - border-radius: 2px; -} -ul, -ol { - margin-bottom: 1em; - padding-left: 1.5em; -} -header { - margin-bottom: 2rem; -} -header h1 { - font-size: 2rem; -} -nav ul { - gap: 1rem; - padding: 0; - list-style: none; - display: flex; -} -section { - margin-bottom: 2rem; -} -form { - flex-direction: column; - gap: 1rem; - display: flex; -} -input[type="password"], -input[type="text"], -input[type="date"], -input[type="color"], -input[type="time"], -input[type="file"], -input[type="search"], -input[type="email"], -select, -textarea { - font-weight: 500; + +h1, h2, h3, h4, h5, h6 { margin-bottom: 0.5em; font-weight: 700; } +h1 { letter-spacing: -0.025em; font-size: 1.875rem; line-height: 2.25rem; } +h2 { letter-spacing: -0.025em; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; } +h3 { letter-spacing: -0.025em; font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; } +p { margin: 1em 0; } +a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; } +a:hover { text-decoration: underline; color: color-mix(in srgb, var(--primary) 80%, transparent); } +ul, ol { margin-bottom: 1em; padding-left: 1.5em; } +header { margin-bottom: 2rem; } +nav ul { list-style: none; padding: 0; display: flex; gap: 1rem; } +section { margin-bottom: 2rem; } +form { display: flex; flex-direction: column; gap: 1rem; } + +input, select, textarea { font: inherit; + padding: 0.5rem; border: var(--border); border-radius: var(--radius); background-color: var(--background); color: var(--foreground); - padding: 0.5rem; font-size: 0.875rem; - transition: - border-color 0.2s, - box-shadow 0.2s; + transition: border-color 0.2s ease, box-shadow 0.2s ease; } -input[type="password"]:focus, -input[type="text"]:focus, -input[type="date"]:focus, -input[type="time"]:focus, -input[type="search"]:focus, -input[type="email"]:focus, -select:focus, -textarea:focus { + +input:focus, select:focus, textarea:focus { + outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 15%, transparent); - outline: none; } -input[type="color"] { - -webkit-appearance: none; + +/* Modern Checkbox */ +input[type="checkbox"] { appearance: none; + width: 1.2rem; + height: 1.2rem; + border: 2px solid var(--border-color); + border-radius: 4px; + background: var(--background); cursor: pointer; - padding: initial; - max-width: initial; - border-radius: var(--radius); - border: none; + position: relative; + transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); + vertical-align: middle; + margin-right: 0.5rem; +} + +input[type="checkbox"]:checked { + background: var(--primary); + border-color: var(--primary); +} + +input[type="checkbox"]:checked::after { + content: "✓"; + position: absolute; + color: var(--primary-foreground); + font-size: 0.85rem; + font-weight: bold; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); +} + +input[type="checkbox"]:focus-visible { outline: none; + box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 30%, transparent); } -input[type="color"]::-webkit-color-swatch { - border-radius: var(--radius); + +/* Modern Radio */ +input[type="radio"] { + appearance: none; + width: 1.2rem; + height: 1.2rem; + border: 2px solid var(--border-color); + border-radius: 50%; + background: var(--background); + cursor: pointer; + position: relative; + transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); + vertical-align: middle; + margin-right: 0.5rem; +} + +input[type="radio"]:checked { + border-color: var(--primary); + background: var(--primary); + box-shadow: inset 0 0 0 3px var(--background); +} + +input[type="radio"]:focus-visible { + outline: none; + box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 30%, transparent); +} + +/* Modern Switch (Toggle) */ +input[type="checkbox"].toggle { + appearance: none; + width: 3rem; + height: 1.5rem; + background: var(--toggle-bg); + border-radius: 9999px; border: none; + position: relative; + cursor: pointer; + transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1); + margin-right: 0.5rem; } -input[type="color"]::-moz-color-swatch { - border-radius: var(--radius); - border: none; + +input[type="checkbox"].toggle::before { + content: ""; + position: absolute; + width: 1.25rem; + height: 1.25rem; + background: var(--toggle-knob); + border-radius: 50%; + top: 0.125rem; + left: 0.125rem; + transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); + box-shadow: 0 1px 3px rgba(0,0,0,0.2); } -input[type="reset"], -input[type="submit"], -input[type="button"], -button { + +input[type="checkbox"].toggle:checked { + background: var(--primary); +} + +input[type="checkbox"].toggle:checked::before { + transform: translateX(1.5rem); +} + +input[type="checkbox"].toggle:focus-visible { + outline: none; + box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 30%, transparent); +} + +/* Modern Range */ +input[type="range"] { + appearance: none; + width: 100%; + height: 4px; + background: var(--border-color); + border-radius: 9999px; + outline: none; + cursor: pointer; +} + +input[type="range"]::-webkit-slider-thumb { + appearance: none; + width: 1rem; + height: 1rem; + background: var(--primary); + border-radius: 50%; + cursor: pointer; + transition: transform 0.2s ease, box-shadow 0.2s ease; + box-shadow: 0 1px 3px rgba(0,0,0,0.2); +} + +input[type="range"]::-webkit-slider-thumb:hover { + transform: scale(1.2); +} + +input[type="range"]:focus-visible { + outline: none; + box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 30%, transparent); +} + +/* Buttons */ +button, input[type="submit"], input[type="button"], input[type="reset"] { font: inherit; cursor: pointer; - border-radius: var(--radius); - padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; - transition: background-color 0.2s ease-in-out; + padding: 0.5rem 1rem; + border-radius: var(--radius); + transition: all 0.2s ease; } + button { + border: none; background-color: var(--primary); color: var(--primary-foreground); - border: none; - &:hover { - background-color: color-mix(in srgb, var(--primary) 90%, transparent); - } - &:focus-visible { - box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); - outline: none; - } - &:active { - transform: scale(0.98); - } } +button:hover { background-color: color-mix(in srgb, var(--primary) 90%, transparent); } +button:active { transform: scale(0.98); } + button[secondary] { background-color: var(--secondary); color: var(--secondary-foreground); - &:hover { - background-color: color-mix(in srgb, var(--secondary) 90%, transparent); - } } +button[secondary]:hover { background-color: color-mix(in srgb, var(--secondary) 90%, transparent); } + input[type="submit"] { border: var(--border); + background-color: transparent; color: var(--foreground); - background-color: #0000; - &:hover { - background-color: color-mix(in srgb, var(--muted) 90%, transparent); - } } +input[type="submit"]:hover { background-color: color-mix(in srgb, var(--muted) 90%, transparent); } + input[type="button"] { - color: var(--foreground); - background-color: #0000; border: none; - &:hover { - background-color: var(--muted); - } + background-color: transparent; + color: var(--foreground); } +input[type="button"]:hover { background-color: var(--muted); } + input[type="reset"] { + border: none; background-color: var(--destructive); color: var(--primary-foreground); - border: none; - &:hover { - background-color: color-mix(in srgb, var(--destructive) 90%, transparent); - } } +input[type="reset"]:hover { background-color: color-mix(in srgb, var(--destructive) 90%, transparent); } + fieldset { border: var(--border); border-radius: var(--radius); - gap: 0.5rem; padding: 1rem; display: flex; + gap: 0.5rem; } + fieldset[role="group"] { border: none; - gap: 0; padding: 1rem; display: flex; - & > * { - border-radius: 0; - &:first-child { - border-top-left-radius: var(--radius); - border-bottom-left-radius: var(--radius); - border-right: 0; - } - &:last-child { - border-top-right-radius: var(--radius); - border-bottom-right-radius: var(--radius); - border-right: var(--border); - } - } -} -fieldset[role="otp"] { - border: none; gap: 0; - padding: 1rem; - display: flex; - & > input { - text-align: center; - border-right: 0; - border-radius: 0; - width: 1rem; - &:first-child { - border-top-left-radius: var(--radius); - border-bottom-left-radius: var(--radius); - border-right: 0; - } - &:last-child { - border-top-right-radius: var(--radius); - border-bottom-right-radius: var(--radius); - border-right: var(--border); - } - } } -legend { - padding: 0 0.5rem; +fieldset[role="group"] > * { + border-radius: 0; } -label { - display: block; - & * { - vertical-align: middle; - } +fieldset[role="group"] > *:first-child { + border-top-left-radius: var(--radius); + border-bottom-left-radius: var(--radius); + border-right: 0; } -small { - color: var(--muted-foreground); -} -figure { - margin-bottom: 1rem; - overflow: hidden; -} -img { - border-radius: var(--radius); - max-width: 100%; - height: auto; -} -img[avatar] { - border-radius: 50%; -} -figcaption { - color: var(--muted-foreground); - margin-top: 0.5rem; - font-size: 0.875rem; +fieldset[role="group"] > *:last-child { + border-top-right-radius: var(--radius); + border-bottom-right-radius: var(--radius); + border-right: var(--border); } + +legend { padding: 0 0.5rem; } +label { display: block; } +small { color: var(--muted-foreground); } +img { max-width: 100%; height: auto; border-radius: var(--radius); } +img[avatar] { border-radius: 50%; } blockquote { border-left: 4px solid var(--border-color); padding-left: 1rem; font-style: italic; - & > footer { - text-align: center; - } -} -[type="checkbox"], -[type="radio"] { - margin-right: 0.5rem; } progress { width: 100%; + appearance: none; + height: 0.5rem; + border-radius: 9999px; + background-color: var(--muted); + border: 0; } +progress::-webkit-progress-value { border-radius: 9999px; background-color: var(--primary); } +progress::-moz-progress-bar { border-radius: 9999px; background-color: var(--primary); } + +details { + border: var(--border); + border-radius: var(--radius); + padding: 0.5rem; + margin-bottom: 1rem; +} +summary { + cursor: pointer; + font-weight: bold; +} +article { + border: var(--border); + border-radius: var(--radius); + padding: 1rem; + margin-bottom: 1rem; +} +footer { + margin-top: 2rem; + color: var(--muted-foreground); +} + +/* Dialog, Drawer, Sheet Animations */ dialog { background-color: var(--background); color: var(--foreground); border: var(--border); border-radius: var(--radius); - margin: auto; padding: 24px; + margin: auto; + opacity: 0; + transform: scale(0.95); + transition: opacity 0.2s ease, transform 0.2s ease; +} +dialog[open] { + opacity: 1; + transform: scale(1); } dialog::backdrop { - background-color: #000c; -} -details { - border: var(--border); - border-radius: var(--radius); - margin-bottom: 1rem; - padding: 0.5rem; -} -summary { - cursor: pointer; - font-weight: 700; -} -article { - border: var(--border); - border-radius: var(--radius); - margin-bottom: 1rem; - padding: 1rem; -} -footer { - color: var(--muted-foreground); - margin-top: 2rem; -} -[aria-busy="true"] { - opacity: 0.7; - cursor: progress; -} -[aria-busy="spinner"] { - opacity: 0.7; - cursor: progress; - &:before { - content: var(--loading-icon-url); - padding-right: 1rem; - } -} -@media (prefers-reduced-motion: reduce) { - *, - :before, - :after { - transition-duration: 0.01ms !important; - animation-duration: 0.01ms !important; - animation-iteration-count: 1 !important; - } -} -@media (width<=600px) { - body { - padding: 0.5rem; - } - nav ul { - flex-direction: column; - } -} -input[type="file"]::file-selector-button { - background-color: var(--background); - color: var(--foreground); - border: none; - font-weight: 600; -} -:disabled, -[disabled] { - cursor: not-allowed; - opacity: 0.5; -} -button:disabled, -input:disabled, -select:disabled, -textarea:disabled { - pointer-events: none; -} -input[type="radio"], -input[type="checkbox"], -input[type="range"] { - accent-color: var(--primary); - background-color: var(--background); -} -input[type="checkbox"][icon] { - display: none; - & + * { - cursor: pointer; - border-radius: var(--radius); - box-sizing: border-box; - padding: 0.5rem; - &:hover { - background-color: var(--border-color); - } - } -} -input[type="checkbox"][icon] { - display: none; - & + * { - cursor: pointer; - border-radius: var(--radius); - width: 2rem; - height: 2rem; - padding: 0.5rem; - &:hover { - background-color: var(--border-color); - stroke: var(--muted-foreground); - } - } -} -input[type="checkbox"][icon]:checked { - & + * { - background-color: var(--border-color); - &:hover { - stroke: var(--accent-foreground); - } - } -} -kbd { - background-color: var(--primary); - color: var(--primary-foreground); - border-radius: 6px; - padding: 0.125rem 0.625rem; - font-weight: 700; -} -kbd[secondary] { - background-color: var(--secondary); - color: var(--secondary-foreground); -} -kbd[outline] { - background-color: var(--background); - color: var(--primary); - border: var(--border); -} -kbd[destructive] { - background-color: var(--destructive); - color: var(--primary-foreground); -} -table { - caption-side: bottom; - border-collapse: collapse; - & caption { - color: var(--muted-foreground); - margin-top: 1rem; - } - & th { - color: var(--muted-foreground); - } - & tr { - border-bottom: var(--border); - } - & tr:hover { - background-color: hsl(var(--muted) / 0.5); - } - & td, - & th { - vertical-align: middle; - text-align: start; - padding: 0.5rem; - } - & tfoot { - background-color: var(--muted); - } + background-color: rgba(0, 0, 0, 0.8); + transition: backdrop-filter 0.2s ease; } + dialog[drawer] { - resize: vertical; border-bottom-right-radius: 0; border-bottom-left-radius: 0; - max-height: 50vh; top: auto; bottom: 0; - &[open] { - animation: 0.2s ease-in forwards slideup; - } + max-height: 50vh; + transform: translateY(100%); + transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease; } -dialog > header { - margin: 0; +dialog[drawer][open] { + transform: translateY(0); } -dialog[sheet-top], -dialog[sheet-bottom], -dialog[sheet-left], -dialog[sheet-right] { + +dialog[sheet-top], dialog[sheet-bottom], dialog[sheet-left], dialog[sheet-right] { border-radius: 0; margin: 0; } -dialog[sheet-top], -dialog[sheet-bottom] { - width: 100vw; - max-height: 50vh; +dialog[sheet-top], dialog[sheet-bottom] { width: 100vw; max-height: 50vh; } +dialog[sheet-left], dialog[sheet-right] { height: 100vh; max-width: 50vw; } + +dialog[sheet-top] { transform: translateY(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); } +dialog[sheet-top][open] { transform: translateY(0); } + +dialog[sheet-bottom] { transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); top: auto; bottom: 0; } +dialog[sheet-bottom][open] { transform: translateY(0); } + +dialog[sheet-left] { transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); } +dialog[sheet-left][open] { transform: translateX(0); } + +dialog[sheet-right] { transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); left: auto; right: 0; } +dialog[sheet-right][open] { transform: translateX(0); } + +/* Accordion Animation */ +details { + transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } -dialog[sheet-left], -dialog[sheet-right] { - max-width: 50vw; - height: 100vh; +details[open] summary ~ * { + animation: accordion-slide 0.3s cubic-bezier(0.4, 0, 0.2, 1); } -dialog[sheet-top][open] { - animation: 0.2s ease-in forwards slidedown; +@keyframes accordion-slide { + from { opacity: 0; transform: translateY(-10px); } + to { opacity: 1; transform: translateY(0); } } -dialog[sheet-bottom][open] { - animation: 0.2s ease-in forwards slideup; - top: auto; - bottom: 0; + +/* Sidebar Animation */ +aside { + background-color: var(--sidebar); + border: 1px solid var(--sidebar-border); + display: flex; + flex-direction: column; + justify-content: space-between; + position: relative; + padding: 0.5rem; + transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); } -dialog[sheet-left][open] { - animation: 0.2s ease-in forwards slideright; +aside[data-collapsed="true"] { + transform: translateX(-100%); } -dialog[sheet-right][open] { - animation: 0.2s ease-in forwards slideleft; - left: auto; - right: 0; -} -@keyframes slideup { - 0% { - transform: translateY(100%); - } - to { - transform: translateY(0); + +/* Utility */ +[aria-busy="true"] { opacity: 0.7; cursor: progress; } +@media (prefers-reduced-motion: reduce) { + *, *::before, *::after { + animation-duration: 0.01ms !important; + transition-duration: 0.01ms !important; } } -@keyframes slidedown { - 0% { - transform: translateY(-100%); - } - to { - transform: translateY(0); - } -} -@keyframes slideleft { - 0% { - transform: translate(100%); - } - to { - transform: translate(0); - } -} -@keyframes slideright { - 0% { - transform: translate(-100%); - } - to { - transform: translate(0); - } -} -progress { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background-color: var(--muted); - border: 0; - border-radius: 9999px; - height: 0.5rem; -} -progress[value]::-webkit-progress-value { - background-color: var(--primary); - border-radius: 9999px; -} -::-webkit-progress-bar { - background-color: var(--muted); - border-radius: 9999px; -} -::-moz-progress-bar { - background-color: var(--primary); - border-radius: 9999px; -} -progress:indeterminate { - background: var(--muted) - linear-gradient(to right, var(--primary) 35%, var(--muted) 35%) top - left/150% 150% no-repeat; - animation: 1.5s linear infinite progress-indeterminate; -} -progress:indeterminate::-webkit-progress-bar { - background-color: #0000; -} -progress:indeterminate::-moz-progress-bar { - background-color: #0000; -} -@keyframes progress-indeterminate { - 0% { - background-position: 200% 0; - } - to { - background-position: -200% 0; - } +@media (max-width: 600px) { + body { padding: 0.5rem; } + nav ul { flex-direction: column; } } +:disabled, [disabled] { cursor: not-allowed; opacity: 0.5; pointer-events: none; } hr { - background-color: var(--border-color); border: 0; - flex-shrink: 0; height: 1px; margin: 1rem 0; + background-color: var(--border-color); } -hr[vertical] { - width: 1px; - height: auto; - margin: 0 1rem; +kbd { + padding: 0.125rem 0.625rem; + background-color: var(--primary); + color: var(--primary-foreground); + border-radius: 6px; + font-weight: bold; } -nav { - --separator: attr(breadcrumb, ">"); - align-items: center; - display: flex; - & > a { - color: var(--muted-foreground); - padding: 0 0.625rem 0 0; - &:after { - content: var(--separator); - padding: 0 0 0 0.625rem; - display: inline-block; - } - &:last-child { - color: var(--foreground); - &:after { - content: ""; - } - } - } - &:hover:after { - text-decoration: none; - } -} -div[skeleton] { - background-color: var(--input); - border-radius: var(--radius); - opacity: 1; - animation: 2s cubic-bezier(0.4, 0, 0.6, 1) infinite shimmer; - & * { - display: none; - } -} -@keyframes shimmer { - 50% { - opacity: 0.5; - } -} -[popover] { - inset: unset; - bottom: calc(anchor(top) + 5px); - justify-self: anchor-center; - border: var(--border); - border-radius: var(--radius); - margin: 0; - padding: 0.5rem; - position: absolute; -} -[tooltip-top], -[tooltip-bottom], -[tooltip-left], -[tooltip-right] { - position: relative; - &:after { - white-space: nowrap; - background-color: var(--primary); - color: var(--primary-foreground); - border-radius: var(--radius); - opacity: 0; - z-index: 10; - pointer-events: none; - padding: 6px 8px; - font-size: 0.875em; - transition: opacity 0.2s ease-in-out; - position: absolute; - } - &:hover:after { - opacity: 1; - } -} -[tooltip-top]:after { - content: attr(tooltip-top); - top: -0.8rem; - left: 50%; - transform: translate(-50%) translateY(-100%); -} -[tooltip-bottom]:after { - content: attr(tooltip-bottom); - top: calc(100% + 0.8rem); - left: 50%; - transform: translate(-50%) translateY(0%); -} -[tooltip-left]:after { - content: attr(tooltip-left); - top: 50%; - left: -0.3rem; - transform: translate(-100%) translateY(-50%); -} -[tooltip-right]:after { - content: attr(tooltip-right); - margin-left: 0.3rem; - top: 50%; - left: calc(100% + 0.3rem); - transform: translate(0%) translateY(-50%); -} -pre { - border-radius: var(--radius); - & > code { - display: block; - overflow-x: auto; - } +table { + border-collapse: collapse; + width: 100%; } +table th { color: var(--muted-foreground); text-align: start; padding: 0.5rem; } +table td { padding: 0.5rem; text-align: start; } +table tr { border-bottom: var(--border); } +pre { border-radius: var(--radius); overflow-x: auto; } code { border: var(--border); border-radius: var(--radius); @@ -875,85 +505,68 @@ code { color: var(--primary-foreground); padding: 0.2rem; } -dialog[sonner], -dialog[toast] { - padding: 1rem 1.5rem 1rem 1rem; - inset: auto 1rem 1rem auto; - &::backdrop { - opacity: 0; - } -} -dialog[toast] { - box-shadow: var(--shadow); - &[open] { - animation: - 0.2s ease-in forwards slideup, - 0.2s ease-in forwards fad-in; - } -} -dialog[sonner] { - background-color: #0000; - border: none; - flex-direction: column-reverse; - gap: 0.5rem; - transition: gap 0.15s ease-in; - display: flex; - & > li { - background-color: var(--background); - counter-increment: sonner-counter; - border: var(--border); - border-radius: var(--radius); - padding: 1rem 1.5rem 1rem 1rem; - list-style: none; - animation: - 0.2s ease-in forwards slideup, - 0.2s ease-in forwards fad-in; - &:hover { - scale: 1.1; - } - } -} -@keyframes fad-in { - 0% { - opacity: 0; - } - to { - opacity: 1; - } -} -aside { - background-color: var(--sidebar); - border: 1px solid var(--sidebar-border); - flex-direction: column; - justify-content: space-between; - padding: 0.5rem; - display: flex; - position: relative; - & > main { - flex-direction: column; - flex-grow: 1; - display: flex; - overflow-y: auto; - } - & > header, - & > footer { - position: sticky; - } +[tooltip-top], [tooltip-bottom], [tooltip-left], [tooltip-right] { position: relative; } +[tooltip-top]::after, [tooltip-bottom]::after, [tooltip-left]::after, [tooltip-right]::after { + position: absolute; + white-space: nowrap; + background-color: var(--primary); + color: var(--primary-foreground); + padding: 6px 8px; + font-size: 0.875em; + border-radius: var(--radius); + opacity: 0; + transition: opacity 0.2s ease; + pointer-events: none; } +[tooltip-top]:hover::after, [tooltip-bottom]:hover::after, [tooltip-left]:hover::after, [tooltip-right]:hover::after { opacity: 1; } +[tooltip-top]::after { content: attr(tooltip-top); left: 50%; top: -0.8rem; transform: translateX(-50%) translateY(-100%); } +[tooltip-bottom]::after { content: attr(tooltip-bottom); left: 50%; top: calc(100% + 0.8rem); transform: translateX(-50%); } +[tooltip-left]::after { content: attr(tooltip-left); left: -0.3rem; top: 50%; transform: translateX(-100%) translateY(-50%); } +[tooltip-right]::after { content: attr(tooltip-right); left: calc(100% + 0.3rem); top: 50%; transform: translateY(-50%); } menu { + display: flex; + flex-direction: row; border: var(--border); border-radius: var(--radius); - flex-direction: row; width: fit-content; + list-style: none; +} +menu li { padding: 0.25rem 0.75rem; } +div[skeleton] { + background-color: var(--input); + animation: shimmer 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; + border-radius: var(--radius); +} +@keyframes shimmer { + 50% { opacity: 0.5; } +} +[popover] { + inset: unset; + position: absolute; + bottom: calc(anchor(top) + 5px); + justify-self: anchor-center; + margin: 0; + border: var(--border); + border-radius: var(--radius); + padding: 0.5rem; +} +nav { display: flex; - & > li { - padding: 0.25rem 0.75rem; - list-style: none; - } + align-items: center; + --separator: attr(breadcrumb, '>'); } -[scroll-x] { - overflow-x: scroll; +nav > a { + padding: 0 0.625rem 0 0; + color: var(--muted-foreground); } -[scroll-y] { - overflow-y: scroll; +nav > a::after { + padding: 0 0 0 0.625rem; + display: inline-block; + content: var(--separator); } +nav > a:last-child { + color: var(--foreground); +} +nav > a:last-child::after { + content: ''; +} \ No newline at end of file