/* InstinctHub Tab Component Styles */

.ihub-tabs-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.ihub-tabs-header {
  display: flex;
  border-bottom: var(--borderDefault);
  margin-bottom: 20px;
  position: relative;
}

.ihub-tab-item {
  padding: 12px 24px;
  cursor: pointer;
  font-family: var(--Nunito);
  font-weight: 500;
  font-size: 1rem;
  color: var(--Gunmetal);
  position: relative;
  transition: all 0.3s ease;
}

.ihub-tab-item:hover {
  color: var(--DarkCyan);
}

.ihub-tab-active {
  color: var(--DarkCyan);
  font-weight: 600;
}

.ihub-tab-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--Main-Gradient);
  border-radius: 2px 2px 0 0;
}

.ihub-tab-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ihub-tab-content {
  padding: 10px 0;
}

/* Bordered variant */
.ihub-tabs-bordered {
  padding: 0;
  border-bottom: none;
}

.ihub-tabs-bordered .ihub-tab-item {
  border: var(--borderDefault);
  border-bottom: none;
  margin-right: 5px;
  border-radius: 5px 5px 0 0;
}

.ihub-tabs-bordered .ihub-tab-active {
  border-bottom: 3px solid var(--White);
  margin-bottom: -2px;
  background-color: var(--White);
  border-top: 3px solid var(--DarkCyan);
}

.ihub-tabs-bordered .ihub-tab-active::after {
  display: none;
}

/* Pills variant */
.ihub-tabs-pills {
  border-bottom: none;
  gap: 10px;
}

.ihub-tabs-pills .ihub-tab-item {
  border-radius: 30px;
  padding: 8px 20px;
  background-color: var(--Magnolia);
}

.ihub-tabs-pills .ihub-tab-active {
  background: var(--DarkCyan);
  color: var(--White);
}

.ihub-tabs-pills .ihub-tab-active::after {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ihub-tabs-header {
    flex-wrap: wrap;
    gap: 5px;
  }

  .ihub-tab-item {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .ihub-tabs-pills .ihub-tab-item {
    padding: 6px 16px;
  }
}

@media (max-width: 480px) {
  .ihub-tabs-header {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding-bottom: 5px;
  }

  .ihub-tabs-header::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .ihub-tab-item {
    white-space: nowrap;
  }
}


/* InstinctHub Vertical Tabs Styles */

.ihub-vtabs-container {
    display: flex;
    gap: 30px;
    width: 100%;
    margin: 20px 0;
    min-height: 300px;
  }
  
  .ihub-vtabs-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    max-width: 300px;
    border-right: var(--borderDefault);
    padding-right: 20px;
  }
  
  .ihub-vtab-item {
    padding: 15px 20px;
    margin-bottom: 5px;
    cursor: pointer;
    font-family: var(--Nunito);
    font-weight: 500;
    font-size: 1rem;
    color: var(--Gunmetal);
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .ihub-vtab-item:hover {
    background-color: var(--Magnolia);
    color: var(--DarkCyan);
  }
  
  .ihub-vtab-active {
    background-color: var(--Gray);
    color: var(--DarkCyan);
    font-weight: 600;
    position: relative;
  }
  
  .ihub-vtab-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    height: 100%;
    width: 4px;
    background: var(--DarkCyan);
    border-radius: 0 2px 2px 0;
  }
  
  .ihub-vtab-disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .ihub-vtab-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .ihub-vtab-content {
    flex: 1;
    padding: 15px 0;
    min-height: 300px;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .ihub-vtabs-container {
      flex-direction: column;
      gap: 15px;
    }
    
    .ihub-vtabs-sidebar {
      width: 100%;
      max-width: 100%;
      border-right: none;
      border-bottom: var(--borderDefault);
      padding-right: 0;
      padding-bottom: 15px;
      overflow-x: auto;
      flex-direction: row;
    }
    
    .ihub-vtab-item {
      padding: 10px 15px;
      margin-right: 10px;
      margin-bottom: 0;
      white-space: nowrap;
    }
    
    .ihub-vtab-active::before {
      left: 0;
      bottom: -15px;
      top: auto;
      width: 100%;
      height: 3px;
      border-radius: 2px 2px 0 0;
    }
    
    .ihub-vtab-content {
      padding: 15px 0;
      min-height: 200px;
    }
  }
  
  @media (max-width: 480px) {
    .ihub-vtabs-sidebar {
      padding-bottom: 10px;
    }
    
    .ihub-vtab-item {
      padding: 8px 12px;
      font-size: 0.9rem;
    }
    
    .ihub-vtab-icon {
      margin-right: 8px;
    }
  }