*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
select {
  font-size: 16px;
}

@media (min-width: 640px) {
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="password"],
  select {
    font-size: 0.875rem;
  }
}

input[type="file"]::file-selector-button {
  min-height: 36px;
  margin-right: 0.75rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background-color: #f8fafc;
  color: #1e293b;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

input[type="file"]::file-selector-button:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}

input[type="checkbox"] {
  accent-color: #2563eb;
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

#sekolahAutocompleteList {
  max-height: min(16rem, 45dvh);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

#sekolahAutocompleteList::-webkit-scrollbar {
  width: 6px;
}

#sekolahAutocompleteList::-webkit-scrollbar-track {
  background: #f8fafc;
}

#sekolahAutocompleteList::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 9999px;
}

#sekolahAutocompleteList [data-school-option] {
  min-height: 44px;
}

#statProgressBar,
#migrationProgressBar,
#csvProgressBar {
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width;
}

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

  #statProgressBar,
  #migrationProgressBar,
  #csvProgressBar {
    transition: none;
  }
}