$rtl-support: true;

@import "../_appwork/include-dark";
@import "../_theme/common";
@import "../_theme/libs";
@import "../_theme/uikit";

$primary-color: #775cdc;

@include appwork-common-dark-theme($primary-color);
@include appwork-libs-dark-theme($primary-color);
@include appwork-uikit-dark-theme($primary-color);

// Navbar

@include appwork-navbar-variant('.bg-navbar-theme', #1C1F24, $color: $text-muted, $active-color: $body-color);

// Sidenav

@include appwork-sidenav-variant('.bg-sidenav-theme', #4e54c8, $color: #fff, $menu-bg: #4b4fc1);

.bg-sidenav-theme {
  background: linear-gradient(to top, #4e54c8, #8c55e4);

  .sidenav-inner > .sidenav-item > .sidenav-link .sidenav-icon,
  .sidenav-inner > .sidenav-item > .sidenav-link:hover .sidenav-icon,
  .sidenav-inner > .sidenav-item > .sidenav-link:focus .sidenav-icon {
    color: rgba(255,255,255,.7);
  }

  .sidenav-item:not(.active) > .sidenav-link > div,
  .sidenav-item > .sidenav-link.sidenav-toggle > div {
    transition: all .2s;
  }
  .sidenav-item:not(.active) > .sidenav-link:hover > div,
  .sidenav-item > .sidenav-link.sidenav-toggle:hover > div {
    opacity: .8;
  }

  .sidenav-item.active > .sidenav-link:not(.sidenav-toggle) {
    background: rgba(0, 0, 0, .1) !important;
  }
}

.bg-sidenav-theme .sidenav-vertical,
.bg-sidenav-theme.sidenav-vertical {
  background-attachment: fixed;
  background-size: 100% 100vh;

  .sidenav-item:not(.active) > .sidenav-link:hover > div,
  .sidenav-item > .sidenav-link.sidenav-toggle:hover > div {
    opacity: .8;
    transform: translateX(8px);
  }
}

[dir=rtl] .bg-sidenav-theme .sidenav-vertical,
[dir=rtl] .bg-sidenav-theme.sidenav-vertical {
  .sidenav-item:not(.active) > .sidenav-link:hover > div,
  .sidenav-item > .sidenav-link.sidenav-toggle:hover > div {
    transform: translateX(-8px);
  }
}

// Footer

@include appwork-footer-variant('.bg-footer-theme', $body-bg, $color: $text-muted, $active-color: $body-color);

.layout-footer {
  box-shadow: 0 -1px 0 $border-color;
}
