@use '../../../../scss/base/mixins' as *;

$bottom-bar-height: 5px;

.routertabsBottomBar {
  border-radius: $bottom-bar-height;
  background-color: var(--medium-purple);
  margin-bottom: 20px;
  width: 100%;
  height: $bottom-bar-height;
  position: relative;
  overflow: hidden;
}

.routertabsBottomBarActive {
  border-radius: $bottom-bar-height;
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--dark-purple);
  height: $bottom-bar-height;
  transform-origin: left;
}

.routertabsSubtabs {
  position: relative;
  height: 28px;
  margin-bottom: 20px;
  .routertabsLink {
    font-size: var(--font-size-10);
    height: 28px;
    padding: 0 10px;
  }
  .routertabsLinkHasTag {
    padding: 0 2px 0 10px;
    height: 28px;
    margin-right: 8px;
  }
  // TODO: After all apps are updated to react-router-dom v6, we will remove the old .routertabs-link-active class. We need to keep both for now.
  .routertabsLinkActive,
  .routertabsLink.active {
    color: var(--white);
    font-weight: var(--font-weight-semibold);
    transition: color 0.25s ease-in-out;
  }
}

.routertabsSubtabsActive {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--purple);
  transform-origin: left;
  border-radius: 100px;
}

.routertabsLink {
  padding: 16px 24px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--dark-purple);
  white-space: nowrap;
  text-align: center;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  // TODO: After all apps are updated to react-router-dom v6, we will remove the old .routertabs-link-active class. We need to keep both for now.
  &:hover:not(.routertabsLinkActive):not(.active) {
    color: var(--blue);
  }
}

// TODO: After all apps are updated to react-router-dom v6, we will remove the old .routertabs-link-active class. We need to keep both for now.
.routertabsLinkActive {
  font-weight: var(--font-weight-bold);
  color: var(--dark-purple);
}

.routertabsNavContainer {
  display: flex;
  align-items: center;
}
