:root {
  color-scheme: dark;
}

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

body {
  min-height: 100vh;
  background-color: #081620;
  background-image:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(38, 208, 206, 0.16) 0%, transparent 70%),
    radial-gradient(ellipse 700px 400px at 85% 15%, rgba(56, 189, 248, 0.10) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(20, 60, 80, 0.20) 0%, transparent 50%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

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

::selection {
  background-color: #f5a623;
  color: #081620;
}

:focus-visible {
  outline: 2px solid #f5a623;
  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: #0d222e;
  color: #ffffff;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  border: 1px solid #22465c;
  background-color: #081620;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  border: 2px solid #081620;
  background-color: #f5a623;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.4);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(245, 166, 35, 0.6);
}

input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(0.95);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  border: 2px solid #081620;
  background-color: #f5a623;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.4);
  cursor: grab;
}

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

.table-scroll {
  scrollbar-color: #22465c #081620;
  scrollbar-width: thin;
  max-height: 75vh;
  overflow: auto;
}

.sticky-cell {
  position: sticky;
}

.sticky-top-row1 {
  position: sticky;
  top: 0;
}

.sticky-top-row2 {
  position: sticky;
  top: 34px;
}

tbody tr:hover .sticky-cell {
  background-color: #0c2b3d !important;
}

.freeze-boundary {
  border-right: 2px solid #22465c !important;
  box-shadow: 6px 0 16px -2px rgba(0, 0, 0, 0.65);
}

.freeze-header-row th {
  border-bottom: 2px solid #22465c !important;
}

.section-divider {
  border-left: 2px solid #22465c !important;
}

.resize-handle {
  position: absolute;
  top: 0;
  right: -3px;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  z-index: 40;
  background-color: transparent;
}

.resize-handle:hover,
.resize-handle:active {
  background-color: #38bdf8;
}

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

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

.table-scroll::-webkit-scrollbar-thumb {
  background-color: #22465c;
  border-radius: 4px;
}

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

.skeleton {
  background-image: linear-gradient(90deg, #0e2330 25%, #173b4f 37%, #0e2330 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;
  }
}
