/* http://startbootstrap.com/templates/simple-sidebar.html */

#wrapper {
  padding-left: 200px;
  /* transition: all 0.4s ease 0s; */
}

#sidebar-wrapper {
  margin-left: -200px;
  left: 200px;
  width: 200px;
  background: #000;
  position: fixed;
  height: 100%;
  overflow-y: auto;
  z-index: 1000;
  /* transition: all 0.4s ease 0s; */
}

#page-content-wrapper {
  width: 100%;
}

.sidebar-nav {
  position: absolute;
  top: 0;
  width: 200px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li {
  line-height: 40px;
}

/* indent everything except buttons. use padding instead of indent so text that wraps doesnt go to the left margin. 
   put the padding on the a instead of the li so that there isnt a bar on the left that gets missed when hovering. */
.sidebar-nav li:not(.full-width) a {
	padding-left: 15px;
}

/* pad the archive with double whatever the a is. */
#archive {
	padding-left: 25px;
}

.sidebar-nav li a {
  color: #999999;
  display: block;
  text-decoration: none;
}

.sidebar-nav li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.2);
  text-decoration: none;
}

/* Cancel the hover for dropdown menu items */
.sidebar-nav .dropdown-menu li a:hover {
  background: rgba(184,184,184,0.8);
  color: inherit;
}

.sidebar-nav li a:active,
.sidebar-nav li a:focus {
  text-decoration: none;
}

.sidebar-nav > .sidebar-brand {
  height: 65px;
  line-height: 60px;
  font-size: 18px;
}

.sidebar-nav > .sidebar-brand a {
  color: #fff;
  background: none;
}

.content-header span {
  margin: 0;
  margin-left: 10px;
  display: inline-block;
}

#menu-toggle {
  display: none;
}

.inset {
  padding: 20px;
}

/* *** NEW MOBILE DROPDOWN CSS START *** */
@media (max-width:767px) {
  #wrapper {
    padding-left: 0;
  }

  .content-header {
    height: 80px; 
    display: flex;
    align-items: center;
  }

  #sidebar-wrapper {
    left: 0;
    margin-left: 0;
    width: 100%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    position: absolute;
    top: 80px; 
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  #wrapper.active {
    position: relative;
    left: 0; 
  }

  #wrapper.active #sidebar-wrapper {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  #menu-toggle {
    display: inline-block;
  }

  .inset {
    padding: 15px;
  }
}
/* *** NEW MOBILE DROPDOWN CSS END *** */