.custom-tabs {
  background-color: #fff;
  border: 1px solid lightgray;
  border-radius: 50rem !important;
  z-index: 0;
}

.custom-tabs * {
  z-index: 2;
}

.custom-tab-input {
  display: none;
}

.custom-tabs-nav {
  gap: 0;
}

.custom-tabs-nav li {
  flex: 1;
}

.custom-tab-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 80px;
  padding: 0 15px;
  font-size: 0.85rem;
  color: #333;
  font-weight: 700;
  border-radius: 50rem;
  cursor: pointer;
  transition: color 0.15s ease-in;
  text-decoration: none;
  white-space: nowrap;
}

.custom-tab-label:hover {
  color: #185ee0;
  text-decoration: none;
}

.custom-tab-label.active {
  color: #185ee0;
}

.custom-glider {
  height: 40px;
  background-color: #e6eef9;
  z-index: 1;
  border-radius: 50rem;
  transition: 0.25s ease-out;
  bottom: 0px;
  left: 0px;
}

/* Tab content styling */
.tab-content-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.tab-content-panel.active {
  display: block;
  opacity: 1;
}

/* Responsive scaling for mobile */
@media (max-width: 700px) {
  .custom-tabs-nav {
    align-items: stretch;
    font-size: 10px;
    overflow: auto;
    width: auto;
  }

  .custom-tabs-nav li {
    width: 100%;
  }

  .custom-tab-label {
    padding: 10px;
  }

  .custom-tabs {
    background-color: #fff;
    border: 1px solid lightgray;
  }

  .custom-glider {
    height: 40px;
    background-color: #e6eef9;
    z-index: 1;
    border-radius: 50rem;
    transition: 0.25s ease-out;
    bottom: 0px;
    left: 0px;
  }
}
