/* All the default sidebar styles */
/* toggle button settings */
/* Note: this disables the navbar-toggle class's hide function. set visibility with the boostrap visible/hidden classes */
/* Note: this also disables the navbar-header class positioning settings in small screens. */

.navbar {
    &.navbar-static .navbar-header {
      float: $float-start;
    }
  
    .navbar-toggle {
      &.toggle-left {
        float: $float-start;
        margin-inline-start: 15px;
      }
  
      &.toggle-right {
        float: $float-end;
        margin-inline-end: 15px;
      }
  
      &.toggle-sidebar {
        display: block;
      }
    }
  }
  
  [data-bs-toggle="sidebar"] {
    display: block;
  }
  
  /* sidebar settings */
  
  .sidebar-left {
    inset-inline-start: 0;
  }
  
  .sidebar-right {
    inset-inline-end: 0;
  }
  
  /* css to override hiding the sidebar according to different screen sizes */
  
  .row .sidebar {
    &.sidebar-left.sidebar-xs-show {
      inset-inline-start: 0;
      -webkit-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
      -o-transform: translate(0, 0);
      -moz-transform: translate(0, 0);
      transform: translate(0, 0);
    }
  
    &.sidebar-right.sidebar-xs-show {
      inset-inline-end: 0;
      -webkit-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
      -o-transform: translate(0, 0);
      -moz-transform: translate(0, 0);
      transform: translate(0, 0);
    }
  }
  
  /*right sidebar is untested */
  
  @media (min-width: 768px) {
    .row .sidebar {
      &.sidebar-left.sidebar-sm-show {
        inset-inline-start: 0;
        -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        -o-transform: translate(0, 0);
        -moz-transform: translate(0, 0);
        transform: translate(0, 0);
      }
  
      &.sidebar-right.sidebar-sm-show {
        inset-inline-end: 0;
        -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        -o-transform: translate(0, 0);
        -moz-transform: translate(0, 0);
        transform: translate(0, 0);
      }
    }
  
    /*right sidebar is untested */
  }
  
  @media (min-width: 992px) {
    .row .sidebar {
      &.sidebar-left.sidebar-md-show {
        inset-inline-start: 0;
        -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        -o-transform: translate(0, 0);
        -moz-transform: translate(0, 0);
        transform: translate(0, 0);
      }
  
      &.sidebar-right.sidebar-md-show {
        inset-inline-end: 0;
        -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        -o-transform: translate(0, 0);
        -moz-transform: translate(0, 0);
        transform: translate(0, 0);
      }
    }
  }
  
  @media (min-width: 1170px) {
    .row .sidebar {
      &.sidebar-left.sidebar-lg-show {
        inset-inline-start: 0;
        -webkit-transform: translate(0, 0);
        -moz-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        -o-transform: translate(0, 0);
        transform: translate(0, 0);
      }
  
      &.sidebar-right.sidebar-lg-show {
        inset-inline-end: 0;
        -webkit-transform: translate(0, 0);
        -moz-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        -o-transform: translate(0, 0);
        transform: translate(0, 0);
      }
    }
  }
  
  /* animation class - optional: without it the sidebar would just pop in and out*/
  
  .sidebar-animate {
    -webkit-transition: -webkit-transform 300ms ease;
    -moz-transition: -moz-transform 300ms ease;
    -o-transition: transform 300ms ease;
    transition: transform 300ms ease;
  }
  
  /* Left panel positioning classes */
  
  .sidebar {
    &.sidebar-left {
      -webkit-transform: translate(-100%, 0);
      -moz-transform: translate(-100%, 0);
      -ms-transform: translate(-100%, 0);
      -o-transform: translate(-100%, 0);
      transform: translate(-100%, 0);
  
      &.sidebar-open {
        -webkit-transform: translate(0, 0);
        -moz-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        -o-transform: translate(0, 0);
        transform: translate(0, 0);
      }
    }
  
    &.sidebar-right {
      -webkit-transform: translate(100%, 0);
      -moz-transform: translate(100%, 0);
      -ms-transform: translate(100%, 0);
      -o-transform: translate(100%, 0);
      transform: translate(100%, 0);
  
      &.sidebar-open {
        -webkit-transform: translate(0, 0);
        -moz-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        -o-transform: translate(0, 0);
        transform: translate(0, 0);
        box-shadow: none;
      }
    }
  }