/* WOW staff + Unfold motion. Does not replace Unfold layout. */
:root {
  --wow-motion-fast: 120ms;
  --wow-motion-normal: 200ms;
  --wow-motion-smooth: 300ms;
  --wow-brand: #20989e;
}

.wow-staff-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f6f2;
  transition: opacity 300ms ease, visibility 300ms ease;
}

html[data-theme="dark"] .wow-staff-intro,
html.dark .wow-staff-intro {
  background: #111827;
  color: #f8fafc;
}

.wow-staff-intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.wow-staff-intro img {
  height: 48px;
  width: auto;
}

.wow-staff-intro__line {
  margin-top: 16px;
  width: 120px;
  height: 2px;
  background: rgba(32, 152, 158, 0.2);
  overflow: hidden;
}

.wow-staff-intro__line span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--wow-brand);
  animation: wow-line 900ms ease infinite;
}

.staff-sidebar,
.sidebar,
aside {
  transition: width var(--wow-motion-smooth) ease, transform var(--wow-motion-smooth) ease;
}

.staff-sidebar a,
.btn,
button,
.icon-btn,
input,
select,
textarea,
#result_list tbody tr {
  transition: background-color var(--wow-motion-fast) ease, color var(--wow-motion-fast) ease, border-color var(--wow-motion-fast) ease, transform var(--wow-motion-fast) ease;
}

.btn:hover:not(:disabled),
.icon-btn:hover {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

#result_list tbody tr:hover,
.change-list table tbody tr:hover {
  background-color: rgba(32, 152, 158, 0.06);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(32, 152, 158, 0.18);
}

@keyframes wow-line {
  from { transform: translateX(-120%); }
  to { transform: translateX(280%); }
}

@media (prefers-reduced-motion: reduce) {
  .wow-staff-intro__line span,
  .btn:hover,
  .icon-btn:hover {
    animation: none;
    transform: none;
  }
}
