/* --- Simulator Navigation Panel (Matching Accordion Aesthetic) --- */
.simulator-pillbar {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.pillbar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  background-color: rgba(0, 0, 0, 0.01);
}

html.dark .pillbar-header {
  background-color: rgba(255, 255, 255, 0.01);
}

.pillbar-header-icon {
  color: var(--primary-color);
  flex-shrink: 0;
}

.pillbar-container {
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-start;
  align-items: center;
}

.simulator-pill {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  color: var(--text-muted);
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.simulator-pill:hover {
  color: var(--text-main);
  border-color: var(--primary-color);
  background-color: var(--surface-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px -2px rgba(79, 70, 229, 0.08);
}

html.dark .simulator-pill:hover {
  box-shadow: 0 4px 8px -2px rgba(99, 102, 241, 0.2);
}

.simulator-pill.active {
  color: #ffffff !important;
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

html.dark .simulator-pill.active {
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

@media (max-width: 640px) {
  .page-header {
    margin-bottom: 1.25rem;
  }

  .simulator-pillbar {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .pillbar-header {
    padding: 1rem;
    font-size: 0.9375rem;
  }

  .pillbar-container {
    padding: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    gap: 0.6rem;
  }

  .pillbar-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
  }

  .simulator-pill {
    scroll-snap-align: start;
    white-space: nowrap;
    padding: 0.45rem 1rem;
    font-size: 0.8125rem;
  }
}
