:root {
  color-scheme: dark;
}

html {
  background-color: #333333;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: #333333;
}

* {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background-color: #ffcc00;
  color: #262626;
}

:focus-visible {
  outline: 2px solid #ffcc00;
  outline-offset: 2px;
}

input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.75);
  cursor: pointer;
}

select option {
  background-color: #262626;
  color: #ffffff;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border: 1px solid #7f7f7f;
  background-color: #262626;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border: 2px solid #262626;
  background-color: #ffcc00;
  cursor: grab;
}

input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 2px solid #262626;
  border-radius: 0;
  background-color: #ffcc00;
  cursor: grab;
}

input[type="range"]::-moz-range-track {
  height: 8px;
  background-color: #262626;
}

.table-scroll {
  scrollbar-color: #7f7f7f #262626;
  scrollbar-width: thin;
}

.table-scroll::-webkit-scrollbar {
  height: 10px;
}

.table-scroll::-webkit-scrollbar-track {
  background-color: #262626;
}

.table-scroll::-webkit-scrollbar-thumb {
  background-color: #7f7f7f;
  border: 2px solid #262626;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #a6a6a6;
}

.skeleton {
  background-image: linear-gradient(90deg, #3a3a3a 25%, #4c4c4c 37%, #3a3a3a 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.2s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.toast-enter-active,
.toast-leave-active {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-enter-from,
.toast-leave-to {
  opacity: 0;
  transform: translateY(12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
