@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
}


.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    perspective: 1500px;
}


#sidebar {
    min-width: 250px;
    max-width: 250px;
    color: #fff !important;
    background: #343a40;
    transition: all 0.6s cubic-bezier(0.945, 0.020, 0.270, 0.665);
    transform-origin: bottom left;
}


#sidebar.active {
    margin-left: -250px;
    transform: rotateY(100deg);
}

#sidebar .sidebar-header {
    padding: 17px;
    background: #343a40;
    text-align: center;
}

#sidebar .sidebar-search {
    padding: 20px;
    background: var(--main-color);
    text-align: center;
}

#sidebar .sidebar-profile:hover {
  color: white;
  background-color: #343a40;
}


#sidebar ul.components {
    background: #646566;
}


#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    color: #fff !important;;
    padding: 10px;
    font-size: 1.1em;
    display: block;

}

#sidebar ul ul li {
    padding-left: 25px;
    color: #fff;
    background: var(--main-color);
}

#sidebar ul ul li a:hover {
    color: #fff !important;
    text-decoration: none;
}

#sidebar ul li a:hover  {
    color: var(--main-color) !important;
    text-decoration: none;
    background: #4a4c4c !important;
}

#sidebar ul li a.active {
    color: var(--main-color);
    background: #343a40 !important;
    text-decoration: none;
}

#sidebarCollapse {
    width: 40px;
    height: 40px;
    color: #fff;
    background: #5ba611;
    cursor: pointer;
}

#sidebarCollapse span {
    width: 80%;
    height: 2px;
    margin: 0 auto;
    display: block;
    background: #fff;
    transition: all 0.8s cubic-bezier(0.810, -0.330, 0.345, 1.375);
    transition-delay: 0.2s;
}

#sidebarCollapse span:first-of-type,
#sidebarCollapse span:nth-of-type(2),
#sidebarCollapse span:last-of-type {
    transform: none;
    opacity: 1;
    margin: 5px auto;
}

#sidebarCollapse.active span:first-of-type {
    transform: rotate(45deg) translate(5px, 5px);
}
#sidebarCollapse.active span:nth-of-type(2) {
    opacity: 0;
}
#sidebarCollapse.active span:last-of-type {
    transform: rotate(-45deg) translate(5px, -5px);
}



#sidebarCollapse.active span {
    transform: none;
    opacity: 1;
    margin: 5px auto;
}


a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: var(--secondary-color);
}

ul ul a:hover {
    color: #fff;
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: var(--secondary-color);
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

ul.CTAsa {
    padding: 20px;
}

ul.CTAsa a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #7386D5;
}

a.article, a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}



/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */
#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

#sidebarCollapse {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    cursor: pointer;
}

.homebtn {
  margin-left: 5px;
  color: #fff;
  background: #1912ff;
}

.homebtn:hover {
  color: red;
  background: #1912ff !important;
}


#sidebarCollapse span {
    width: 80%;
    height: 2px;
    margin: 0 auto;
    display: block;
    background: #555;
    transition: all 0.8s cubic-bezier(0.810, -0.330, 0.345, 1.375);
    transition-delay: 0.2s;
}

#sidebarCollapse span.admin {
    width: 80%;
    height: 2px;
    margin: 0 auto;
    display: block;
    background: #fff;
    transition: all 0.8s cubic-bezier(0.810, -0.330, 0.345, 1.375);
    transition-delay: 0.2s;
}

#sidebarCollapse span:first-of-type,
#sidebarCollapse span:nth-of-type(2),
#sidebarCollapse span:last-of-type {
    transform: none;
    opacity: 1;
    margin: 5px auto;
}

#sidebarCollapse.active span:first-of-type {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--main-color);
}
#sidebarCollapse.active span:nth-of-type(2) {
    opacity: 0;
}
#sidebarCollapse.active span:last-of-type {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--main-color);
}


#sidebarCollapse.active span {
    transform: none;
    opacity: 1;
    margin: 5px auto;
}


/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */
@media (max-width: 768px) {
    #sidebar {
      min-width: 150px;
      max-width: 150px;
      margin-left: -0px;
      transform: none;
      transition: all 0.6s cubic-bezier(0.945, 0.020, 0.270, 0.665);
    }
    #sidebar.active {
      margin-left: -150px;
      transform: rotateY(90deg);
    }
    #sidebarCollapse span:first-of-type,
    #sidebarCollapse span:nth-of-type(2),
    #sidebarCollapse span:last-of-type {
        transform: none;
        opacity: 1;
        margin: 5px auto;
    }
    #sidebarCollapse.active span {
        margin: 0 auto;
    }
    #sidebarCollapse.active span:first-of-type {
        transform: rotate(45deg) translate(2px, 2px);
    }
    #sidebarCollapse.active span:nth-of-type(2) {
        opacity: 0;
    }
    #sidebarCollapse.active span:last-of-type {
        transform: rotate(-45deg) translate(1px, -1px);
    }

    .search {
      display: none;
    }

}

.button2 {
  color: white;
  display: inline-block; /* Inline elements with width and height. TL;DR they make the icon buttons stack from left-to-right instead of top-to-bottom */
  position: relative; /* All 'absolute'ly positioned elements are relative to this one */
}

/* Make the badge float in the top right corner of the button */
.button2__badge {
  background-color: var(--main-color);
  border-radius: 20px;
  color: white;

  padding: 1px 6px;
  font-size: 12px;

  position: absolute; /* Position the badge within the relatively positioned button */
  top: -5px;
  right: -5px;
}
