@use "../../../../styles/abstracts/variables";
@use "../../../../styles/abstracts/mixins";

.settings {
  @include mixins.adminPageIntro;
  margin-top: 1.2rem;
  width: 100%;
  overflow-x: hidden;

   @media only screen and (max-width: 1000px) {
      padding: 1rem .5rem !important;
    }


  // tab
  &__tab {
    margin-top: 1rem;
    background: variables.$col-active-btn-bg;
    border-radius: 6px;
    display: flex;
    width: 100%;
    padding: 0.5rem 0.7rem;
    align-items: center;
    font-size: 0.85rem;
    overflow-x: scroll;
    flex: auto;
    gap: 30px;
    color: variables.$col-white;

    @media only screen and (max-width: 1000px) {
      width: 100%;
      padding: 0.5rem 0.6rem !important;
    }

    &--item {
      text-align: center;
      cursor: pointer;
      font-weight: 400;
      color: variables.$col-white;

      @media only screen and (max-width: 1000px) {
        display: flex;
        flex: 0 0 150px;
      }

      &--active {
        background: variables.$col-orange;
        color: variables.$col-dark;
        border-radius: 6px;
        padding: 0.5rem 1.5rem;
        cursor: pointer;
        font-size: 0.85rem;
        font-weight: 500;
        text-align: center;

        @media only screen and (max-width: 1000px) {
          padding: 0.6rem 1.5rem;
          font-size: 0.7rem;
          flex: 0 0 190px;
          gap: 30px;
          margin-right: 1rem;
          font-weight: 600 !important;
          font-size: .9rem !important;
        }
      }
    }
  }

  &__children {
    // border: 1px solid variables.$col-border-lining;
    // padding: 1rem 1.2rem;
    border-radius: 10px;
    margin-top: 1rem;
  }

  // Skeleton styles
  @keyframes pulse {
    0% {
      background-color: rgba(255, 255, 255, 0.08);
    }
    50% {
      background-color: rgba(255, 255, 255, 0.15);
    }
    100% {
      background-color: rgba(255, 255, 255, 0.08);
    }
  }

  .skeleton-box {
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    animation: pulse 1.5s ease-in-out infinite;
    margin-bottom: 12px;
  }

  .skeleton-line {
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    animation: pulse 1.5s ease-in-out infinite;
    margin-bottom: 12px;
  }
}
