
.tab button {
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 5px 18px;
  padding-bottom:10px;
  max-width: fit-content;
  font-weight: 600;
  color: #667085;
  font-size: 14px;
  transition: all 0.2s ease;
}

.tab button:hover {
  border-bottom: 1px solid #667085;
}

.tab button.active {
  color: #175cd3;
  border-bottom: 2px solid #175cd3;
}

.tabcontent {
  padding: 16px 0;
  border-top: none;
  display: none;
}

/* Mobile responsive tab container */
.tab {
  position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E0 #F7FAFC;
}

/* Webkit scrollbar styling for tabs */
.tab::-webkit-scrollbar {
  height: 4px;
}

.tab::-webkit-scrollbar-track {
  background: #F7FAFC;
}

.tab::-webkit-scrollbar-thumb {
  background: #CBD5E0;
  border-radius: 2px;
}

.tab::-webkit-scrollbar-thumb:hover {
  background: #A0AEC0;
}

/* Mobile: smaller buttons and padding */
@media (max-width: 768px) {
  .tab button {
    padding: 8px 12px;
    font-size: 13px;
    min-width: fit-content;
  }

  .tabcontent {
    padding: 12px 0;
  }

  /* Add scroll indicator shadows */
  .tab::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 1;
  }

  .tab::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 1;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .tab button {
    padding: 6px 10px;
    font-size: 12px;
  }
}
