.tabs-container {
  background: var(--bg-body);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tabs-header {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-tooltip);
  overflow-x: auto;
}

.tabs-header::-webkit-scrollbar {
  height: 4px;
}

.tabs-header::-webkit-scrollbar-track {
  background: var(--gray-100);
}

.tabs-header::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 2px;
}

.tab-item {
  position: relative;
  flex-shrink: 0;
}

.tab-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-link:hover {
  color: var(--gray-400);
  background: var(--bg-hover);
}

.tab-link.active {
  color: var(--white);
  /*border-bottom-color: var(--primary);*/
  background: var(--bg-secondary);
}

.tab-icon {
  width: 18px;
  height: 18px;
}

.tab-badge {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  background: var(--gray-200);
  color: var(--gray-700);
  border-radius: 999px;
}

.tab-link.active .tab-badge {
  background: var(--primary);
  color: var(--white);
}

.tabs-content {
  padding: var(--space-4) var(--space-3);
  background: var(--bg-secondary);
}

.tab-panel {
  display: none;
  animation: fadeIn var(--transition-base);
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Vertical tabs */
.tabs-vertical {
  display: flex;
  gap: var(--space-6);
}

.tabs-vertical .tabs-header {
  flex-direction: column;
  width: 220px;
  border-bottom: none;
  border-right: 2px solid var(--border-color);
  background: transparent;
}

.tabs-vertical .tab-link {
  justify-content: flex-start;
  border-bottom: none;
  border-right: 2px solid transparent;
}

.tabs-vertical .tab-link.active {
  border-right-color: var(--primary);
  background: var(--bg-active);
}

.tabs-vertical .tabs-content {
  flex: 1;
  padding: 0;
}

/* Pills style tabs */
.tabs-pills .tabs-header {
  border-bottom: none;
  background: transparent;
  gap: var(--space-2);
  padding: var(--space-2);
}

.tabs-pills .tab-link {
  border-radius: var(--border-radius-sm);
  border-bottom: none;
}

.tabs-pills .tab-link.active {
  background: var(--primary);
  color: var(--white);
}

.tabs-pills .tab-link.active .tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Bordered tabs */
.tabs-bordered {
  border: 1px solid var(--border-color);
}

.tabs-bordered .tabs-header {
  border-bottom: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
  .tabs-vertical {
    flex-direction: column;
  }

  .tabs-vertical .tabs-header {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
  }

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

  .tabs-vertical .tab-link.active {
    border-right: none;
    border-bottom-color: var(--primary);
  }
}
