/* Local aliases. Source of truth lives in styles.css (theme tokens). */
:root {
  --dark-color: var(--color-bg);
  --accent-color: var(--color-accent);
  --secondary-color: var(--color-accent);
  --text-color: var(--color-text);
}

/* Main toggle styles */
.toggle-container {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

/* Toggle slider styles */
.toggle-slider {
  position: relative;
  width: 2.5rem;
  height: 1.25rem;
  background: rgb(var(--color-accent-rgb) / 0.2);
  border-radius: 0.625rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-slider-thumb {
  position: absolute;
  left: 0.125rem;
  top: 0.125rem;
  width: 1rem;
  height: 1rem;
  background: var(--secondary-color);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

/* Toggle button styles */
.toggle-btn {
  padding: 0.25rem 0;
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  opacity: 0.7;
  font-size: 0.9rem;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.toggle-btn.toggle-active {
  color: var(--secondary-color);
  opacity: 1;
}

/* Clear toggle behavior - Business (left) vs Personal (right) */
.toggle-container:has(#business-tab.toggle-active) .toggle-slider-thumb,
.toggle-container:has(#mobile-business-tab.toggle-active) .toggle-slider-thumb {
  transform: translateX(0);
}

.toggle-container:has(#personal-tab.toggle-active) .toggle-slider-thumb,
.toggle-container:has(#mobile-personal-tab.toggle-active) .toggle-slider-thumb {
  transform: translateX(1.25rem);
}

/* Direct styling for the active states as fallback */
#business-tab.toggle-active ~ .toggle-slider .toggle-slider-thumb,
#mobile-business-tab.toggle-active ~ .toggle-slider .toggle-slider-thumb {
  transform: translateX(0) !important;
}

#personal-tab.toggle-active ~ .toggle-slider .toggle-slider-thumb,
#mobile-personal-tab.toggle-active ~ .toggle-slider .toggle-slider-thumb {
  transform: translateX(1.25rem) !important;
}

/* Toggle positioning */
.desktop-toggle {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.mobile-toggle {
  background-color: var(--dark-color);
  padding: 0.75rem 0;
  display: flex;
  justify-content: flex-start;
  border-bottom: 1px solid rgb(var(--color-text-rgb) / 0.05);
  margin-bottom: 1rem;
  width: 100%;
  position: relative;
}

/* Content tabs styling */
.content-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgb(var(--color-accent-rgb) / 0.2);
  padding-bottom: 0.5rem;
}

.tab-btn {
  padding: 0.25rem 0;
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  border: none;
  opacity: 0.7;
  font-size: 0.9rem;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.2s ease;
}

.tab-btn.tab-active {
  color: var(--secondary-color);
  opacity: 1;
}

.tab-btn.tab-active::after {
  width: 100%;
}

/* Tab content styles */
.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
}

/* Ensure hidden content is properly hidden */
.toggle-content.hidden {
  display: none !important;
}

/* Media queries */
@media (max-width: 768px) {
  .desktop-toggle {
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-toggle {
    display: none;
  }
}

/* Rest of the skillbar styling remains unchanged */
/* ... existing code ... */