/* PillNav Styles - Ported from React Component */

/* Prevent layout shift (jumping) by reserving scrollbar space */
html {
  overflow-y: auto;
  scrollbar-gutter: stable;
}


.pill-nav-items {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  /* Increased slightly for better look */
  background: var(--background-light, #f6f7f8);
  border-radius: 9999px;
  padding: 4px;
  box-sizing: border-box;
}

.dark .pill-nav-items {
  background: var(--background-dark, #101c22);
  border: 1px solid #1e293b;
}

.pill-list {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 0;
  height: 100%;
}

.pill-list>li {
  display: flex;
  height: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 24px;
  background: transparent;
  color: #64748b;
  text-decoration: none;
  border-radius: 9999px;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.2s ease;
}

.dark .pill {
  color: #94a3b8;
}

/* Hover Circle - The expanding background */
.pill .hover-circle {
  position: absolute;
  left: 50%;
  bottom: 0;
  border-radius: 50%;
  background: #0f172a;
  /* Slate 900 */
  z-index: 1;
  display: block;
  pointer-events: none;
  will-change: transform;
  transform-origin: 50% 100%;
  transform: scale(0);
  /* Default hidden to prevent FOUC */
}

.dark .pill .hover-circle {
  background: #ffffff;
}

/* Label Stack - Container for text */
.pill .label-stack {
  position: relative;
  display: inline-block;
  z-index: 2;
  line-height: 1;
}

.pill .pill-label {
  position: relative;
  z-index: 2;
  display: inline-block;
  line-height: 1;
  will-change: transform;
  color: inherit;
}

.pill .pill-label-hover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: #ffffff;
  z-index: 3;
  display: inline-block;
  will-change: transform, opacity;
  opacity: 0;
}

.dark .pill .pill-label-hover {
  color: #0f172a;
}

/* Active State */
.pill.is-active {
  color: #0f172a;
  background: #e2e8f0;
}

.dark .pill.is-active {
  color: #ffffff;
  background: #334155;
}

/* Remove hover circle for active item if desired, or keep it */
.pill.is-active .hover-circle {
  display: none;
}