/* Tab Navigation */
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab-nav::-webkit-scrollbar {
  height: 4px;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-bottom: -2px;
}

.tab-button:hover {
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

.tab-button.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.is-active {
  display: block;
}

/* Vertical Tabs */
.tabs-vertical {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
}

.tabs-vertical .tab-nav {
  flex-direction: column;
  border-bottom: none;
  border-right: 2px solid var(--border);
}

.tabs-vertical .tab-button {
  text-align: left;
  border-bottom: none;
  border-right: 2px solid transparent;
  margin-bottom: 0;
  margin-right: -2px;
}

.tabs-vertical .tab-button.is-active {
  border-bottom-color: transparent;
  border-right-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .tabs-vertical {
    grid-template-columns: 1fr;
  }

  .tabs-vertical .tab-nav {
    flex-direction: row;
    border-right: none;
    border-bottom: 2px solid var(--border);
  }

  .tabs-vertical .tab-button {
    border-right: none;
    border-bottom: 2px solid transparent;
    margin-right: 0;
    margin-bottom: -2px;
  }

  .tabs-vertical .tab-button.is-active {
    border-right-color: transparent;
    border-bottom-color: var(--primary);
  }
}
