@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

section[x-show] {
  animation: fadeIn 0.15s ease-out;
}

.modal-panel {
  animation: slideIn 0.2s ease-out;
}

.toast-enter {
  animation: toast-in 0.25s ease-out;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

table tbody tr {
  transition: background-color 0.1s ease;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e2e8f0;
  border-left: 3px solid transparent;
  transition: background-color 0.15s, color 0.15s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  text-align: left;
}

.nav-item:hover {
  background-color: #1e293b;
  color: #ffffff;
}

.nav-item.active {
  background-color: rgba(59, 130, 246, 0.2);
  color: #ffffff;
  border-left-color: #60a5fa;
}

.nav-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.nav-section-label {
  padding: 0.875rem 0.75rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

.nav-sub-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-sub-item {
  display: block;
  width: 100%;
  padding: 0.45rem 0.75rem 0.45rem 2.45rem;
  border-radius: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  transition: background-color 0.15s, color 0.15s;
}

.nav-sub-item:hover {
  background-color: #1e293b;
  color: #ffffff;
}

.nav-sub-item.active {
  background-color: rgba(59, 130, 246, 0.18);
  color: #ffffff;
}

.nav-details {
  margin-top: 0.5rem;
}

.nav-details summary {
  list-style: none;
  cursor: pointer;
}

.nav-details summary::-webkit-details-marker {
  display: none;
}
