/* Start Icon-Hover Styles */
[data-nav-style="icon-hover"][data-nav-layout="horizontal"] {
  @extend .icon-hover;

  @media (min-width: 992px) {
    .app-sidebar {
      .slide.side-menu__label1 {
        @apply block pt-1 pb-3 px-7 border-b border-gray-200 mb-3 mx-0;
      }
      .side-menu__item {
        @apply px-4;
      }
      .side-menu__icon {
        @apply mb-0 #{!important};
      }

      .slide.has-sub .slide-menu.child1 {
        &.active {
          @apply inset-x-auto #{!important};
        }
      }
    }

    &.dark {
      .app-sidebar {
        .slide.side-menu__label1 {
          @apply border-white/10;
        }
      }
    }
  }
}

[data-nav-style="icon-hover"][data-toggled="icon-hover-closed"] {
  &:not([data-nav-layout="horizontal"]) {
    @extend .icon-hover;
    @media (min-width: 992px) {
      .main-menu {
        // @apply px-[1.219rem];
        @apply px-0;
      }
      .side-menu__item {
        @apply mx-[1.219rem];
      }
      .child1,
      .child2,
      .child3 {
        .side-menu__item {
          @apply mx-0;
        }
      }
      #sidebar-scroll {
        @apply overflow-y-visible h-auto;
      }
      .app-sidebar {
        @apply w-20 absolute;
        .slide.has-sub .slide-menu {
          @apply pb-2;
        }
        .main-sidebar-header {
          .header-logo {
            .desktop-logo,
            .desktop-dark {
              @apply hidden;
            }
            .toggle-logo {
              @apply block;
            }
            .toggle-dark {
              @apply hidden;
            }
          }
        }
        .side-menu__item {
          @apply px-0;
        }
        .slide-menu {
          @apply m-0 #{!important};
          &.child1,
          &.child2,
          &.child3 {
            .slide {
              @apply px-3;
            }
          }
        }
        .slide.side-menu__label1 {
          @apply block py-3 px-7 border-b border-gray-200 mb-3;
        }
        .slide.side-menu__label1 {
          @apply py-3 px-7 #{!important};
        }
      }
      &.dark {
        .app-sidebar {
          .main-sidebar-header {
            .header-logo {
              .toggle-logo {
                @apply hidden;
              }
              .toggle-dark {
                @apply block;
              }
            }
          }
          .slide.side-menu__label1 {
            @apply border-white/10;
          }
        }
      }

      .header {
        @apply ps-20;
      }
      .content {
        @apply ms-20;
      }
      .app-sidebar {
        .slide {
          &.has-sub {
            @apply grid;
          }
        }
        .slide-menu {
          &.child1,
          &.child2,
          &.child3 {
            @apply rounded-e-md;
            .slide {
              @apply start-0;

              .side-menu__item {
                @apply ps-8 pe-4;

                &:before {
                  @apply start-3;
                }
              }
            }

            .side-menu__angle {
              @apply end-4;
            }
          }
        }

        .slide.has-sub .slide-menu {
          @apply start-20 #{!important};

          &.child2,
          &.child3 {
            @apply start-56 #{!important};
          }
        }
      }
      .content {
        @apply min-h-[1275px];
      }
    }
  }
}

.icon-hover {
  @media (min-width: 992px) {
    .app-sidebar {
      .main-sidebar {
        @apply overflow-visible h-[90%];
      }

      .main-sidebar-header {
        @apply w-[4.95rem];
      }

      .side-menu__icon {
        @apply mx-auto;
      }

      .slide {
        @apply p-0;
      }

      .slide-menu {
        @apply top-auto #{!important};
        &.child1,
        &.child2,
        &.child3 {
          @apply w-56;

          .slide {
            .side-menu__item {
              @apply text-start flex;

              &:before {
                @apply top-[0.938rem];
              }
            }
          }
          @apply mt-0 #{!important};

          .side-menu__angle {
            @apply block  top-[0.65rem];
          }
        }
      }
      .slide.has-sub:hover {
        .slide-menu.child1 {
          @apply block #{!important};
          .slide.has-sub:hover {
            .slide-menu.child2 {
              @apply block #{!important};
              .slide.has-sub:hover {
                .slide-menu.child3 {
                  @apply block #{!important};
                }
              }
            }
          }
        }
      }

      .slide__category,
      .side-menu__angle {
        @apply hidden;
      }

      .side-menu__item {
        @apply text-center flex;
      }
      .side-menu__label {
        @apply hidden;
      }

      .slide.has-sub .slide-menu {
        @apply bg-white dark:bg-bgdark shadow-md transition-none;
        @apply absolute #{!important};
      }

      .simplebar-content-wrapper {
        position: initial;
      }

      .simplebar-mask {
        position: inherit;
      }
    }

    &.dark .app-sidebar .slide.has-sub .slide-menu {
      @apply bg-bgdark;
    }
  }
}

/*End  Icon-Hover Styles */
