html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .drawer-content {
  background: #0f0f0e;
  color: #f5f5f4;
}

html[data-theme="dark"] .bg-neutral-50 {
  background-color: #0f0f0e !important;
}

html[data-theme="dark"] .bg-white {
  background-color: #171716 !important;
}

html[data-theme="dark"] .bg-neutral-950 {
  background-color: #050505 !important;
}

html[data-theme="dark"] .bg-neutral-200 {
  background-color: #2a2926 !important;
}

html[data-theme="dark"] .text-neutral-950,
html[data-theme="dark"] .text-neutral-800 {
  color: #f5f5f4 !important;
}

html[data-theme="dark"] .text-neutral-700,
html[data-theme="dark"] .text-neutral-600,
html[data-theme="dark"] .text-neutral-500 {
  color: #c7c2b8 !important;
}

html[data-theme="dark"] .text-neutral-400 {
  color: #a8a29a !important;
}

html[data-theme="dark"] .border-neutral-300,
html[data-theme="dark"] .border-neutral-200 {
  border-color: rgba(245, 245, 244, 0.16) !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background-color: #111110;
  border-color: rgba(245, 245, 244, 0.22);
  color: #f5f5f4;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #78716c;
}

.form-select {
  appearance: none;
  border-radius: 0;
  min-height: 50px;
  background-image: linear-gradient(45deg, transparent 50%, #525252 50%), linear-gradient(135deg, #525252 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 12px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}

[data-site-header].is-compact {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  background: rgba(250, 250, 250, 0.95);
  color: #0a0a0a;
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.08);
  backdrop-filter: blur(18px);
}

[data-site-header].is-compact [data-header-brand] {
  font-size: 1.25rem;
}

html[data-theme="dark"] [data-site-header] {
  background: rgba(15, 15, 14, 0.95) !important;
  color: #f5f5f4 !important;
  box-shadow: 0 1px 0 rgba(245, 245, 244, 0.12);
  backdrop-filter: blur(18px);
}

html[data-theme="dark"] [data-site-header].is-compact {
  background: rgba(15, 15, 14, 0.95) !important;
  color: #f5f5f4 !important;
  box-shadow: 0 1px 0 rgba(245, 245, 244, 0.12);
}

#main-content {
  view-transition-name: main-content;
}

.drawer-side > aside {
  transition-duration: 260ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer-overlay {
  transition-duration: 200ms;
}

@keyframes page-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes page-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes panel-fade-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes panel-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#admin-panel {
  view-transition-name: admin-panel;
}

::view-transition-old(root) {
  animation: 160ms ease both page-fade-out;
}

::view-transition-new(root) {
  animation: 220ms ease both page-fade-in;
}

::view-transition-old(admin-panel) {
  animation: 140ms ease both panel-fade-out;
}

::view-transition-new(admin-panel) {
  animation: 180ms ease both panel-fade-in;
}

::view-transition-old(main-content) {
  animation: 150ms ease both panel-fade-out;
}

::view-transition-new(main-content) {
  animation: 210ms ease both panel-fade-in;
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    scroll-behavior: auto !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-old(main-content),
  ::view-transition-new(main-content),
  ::view-transition-old(admin-panel),
  ::view-transition-new(admin-panel) {
    animation-duration: 1ms;
  }
}
