@import url("https://fonts.googleapis.com/css2?family=M+PLUS+1p&display=swap");

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}
html, body {
    margin: 0;
    padding: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.main-content{
    background-color: #fff;
    padding: 50px;
}

#sidebar{
    width: 70px;
    min-width: 70px;
    height: 100%;
    z-index: 1000;
    transition: all .15s ease-in-out;
    display: flex;
    flex-direction: column;
    background-color: #f4f9fd;
    border-right:1px #cedbe8 solid;
    position: fixed;
}


#sidebar.expand {
    width: 300px;
    min-width: 300px;

}

#toggle-btn {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    margin-top: 10px;
    padding: .625rem 1.625rem;

}


#toggle-btn i {
    font-size: 1.5rem;
    color: #4873ac;
    
}

.sidebar-logo {
    margin: auto 0;
}

.sidebar-logo a {
    color: #4873ac;
    font-size: 1.15rem;
    font-weight: 600;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    
}

#sidebar.expand .sidebar-logo,
#sidebar.expand a.sidebar-link span {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}


.sidebar-nav {
    padding: 0;
    flex: 1 1 auto;
}

a.sidebar-link{
    padding: 16px;
    color: #4873ac;
    display: block;
    font-size: 1rem;
    white-space: nowrap;
    border-left: 3px solid transparent;

}

.sidebar-link i {
    font-size: 1.2rem;
    /* margin-right: .75rem; */
}

a.sidebar-link:hover{
    background-color: #eaeff8;
    border-left: 3px solid #9ebdfc;
}

#sidebar .tooltip{
    display: none;
    pointer-events: none;
}

#sidebar:not(.expand) .tooltip {
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
    position:absolute;
    left: 90px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 6px;
    height: 35px;
    width: 122px;
    color: #4873ac;
    background: #fff;
    line-height: 35px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

#sidebar:not(.expand) .sidebar-item:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.sidebar-item {
    position: relative;
}


#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 50%;
    width: 135px;
    background-color: #fff;
    color: #4873ac;
    padding: 0;
    left: 90px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    border-radius: 6px;
    line-height: 35px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
#sidebar:not(.expand) .sidebar-item:hover .has-dropdown + .sidebar-dropdown {
    max-height: 300px;          
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}



#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after{
    border: solid;
    border-width: 0 0.075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after{
    transform: rotate(45deg);
    transition: all .2s ease-out;
}

#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 9999;
  border-radius: 50%;
  visibility: visible;
  background-color: #4873ac;
  color: #fff;
}
