:root {
  --tab-ring: rgba(59, 130, 246, 0.3);
}

body {
  font-feature-settings: 'liga' 1, 'calt' 0;
}

.nav-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.nav-card h3 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: rgba(15, 23, 42, 0.5);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  text-align: left;
  transition: background 0.2s, color 0.2s;
  border: 1px solid transparent;
}

.nav-link .material-symbols-outlined {
  font-size: 1.25rem;
  color: rgba(15, 23, 42, 0.5);
}

.nav-link .pill {
  margin-left: auto;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.08);
  color: rgba(15, 23, 42, 0.7);
}

.nav-link:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.15);
}

.nav-link.active {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.15);
  color: rgb(15, 23, 42);
  font-weight: 600;
}

.nav-link.active .material-symbols-outlined {
  color: rgb(30, 64, 175);
}

#tab-bar {
  scrollbar-width: none;
}

#tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.35rem 0.85rem;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  position: relative;
}

.tab-chip.active {
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 2px var(--tab-ring);
  background: white;
  font-weight: 600;
}

.tab-chip button.tab-close {
  border: none;
  background: transparent;
  font-size: 0.85rem;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.45);
}

.tab-chip button.tab-close:hover {
  color: #dc2626;
}

#tab-stage .tab-pane {
  display: none;
  min-height: calc(100vh - 220px);
}

#tab-stage .tab-pane.active {
  display: block;
}

#toast-container {
  z-index: 9999;
}

#toast-container .alert {
  width: 320px;
  align-items: flex-start;
}
