/* Google Font CDN link */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');

/*這一段是從PROTREE MENU抄的，根據不同的screen，font-size可以改變*/
:root {
  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --normal-font-size: .938rem;
  --content-font-size: .844rem;
  --small-font-size: .75rem;
  --smaller-font-size: .65rem;
  --tooltip-font-size: .75rem;    
}

@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

*{
    margin : 0;
    padding : 0;
    box-sizing: border-box;
    font-family: "Poppins" , sans-serif;
}
body {
    position:relative;
    min-height:100vh;
    width:100%;
    /*overflow : hidden;*/
}
.sidebar {
    position : fixed;
    top: 0;
    left:0;
    border : 1px solid #000;
    height:100%;
    width:78px;
    background: #11101d;
    padding : 6px 14px;
    transition: all 0.5s ease;
    z-index:2000;
}
.sidebar.active {
    width : 240px;
}


.sidebar .logo_content .logo {
    color : #fff;   
    display : flex;
    height:50px;
    width:100%;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.sidebar.active .logo_content .logo {
    opacity: 1;
    pointer-events: none;
}

.logo_content .logo i {
    font-size: 28px;
    margin-right:5px;
}

.logo_content .logo .logo_name {
    font-size: 28px;
    font-weight: 400;
}

.sidebar #btn {
    position: absolute;
    color : #fff;
    left: 50%;
    top:6px;
    font-size: 20px;
    height:50px;
    width:50px;
    text-align: center;
    line-height:50px;
    transform: translateX(-50%);
    
    /* border:1px solid white; */
}

.sidebar.active #btn {
    left: 90%;
}

.sidebar ul {
    margin-top: 20px;
    margin-left:0;
    /* border:1px solid white; */
}

.sidebar ul li {
    /* border:1px solid white; */
    position: relative;
    height:50px;
    line-height: 50px;
    width: 100%;
    margin:0 5px;
    list-style: none;
}



.sidebar ul li .sbtooltip {
    position:absolute;
    /* left:122px; */
    left : 61px;
    top:0;
    /* transform: translate(-50% , -50%); */
    transform: translatey(-50%);
    background:#fff;
    height:35px;
    width:122px;
    border-radius: 6px;
    line-height: 35px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transition:0s;
    pointer-events: none;
    display:block;
    z-index: 10000;
}
.sidebar.active ul li .sbtooltip {
    display:none;
}


.sidebar ul li:hover .sbtooltip {
    opacity:1;
    top:50%;
    transition: all 0.5s ease;
}

.sidebar ul li a {
    color : #fff;
    display : flex;
    align-items: center;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.5s ease;
    white-space: nowrap;
}

.sidebar ul li a:hover {
    color:#11101d;
    background-color: #fff;
}

.sidebar .links_name {
    opacity: 0;
    pointer-events: none;
}

.sidebar.active .links_name {
    opacity: 1;
    pointer-events: auto;
}

.sidebar ul li i{
    /* border:1px solid white; */
 
    height:50px;
    line-height: 50px;
    min-width:50px;
    text-align: center;
    border-radius: 12px;
}

.sidebar ul li input {
    position: absolute;
    top : 0;
    left : 0;
    width:100%;
    height:100%;
    border-radius: 12px;
    background: #1d1b31;
    padding-left: 50px;
    border:0;
    outline: none;
    color: #fff;
    font-size: 18px;
    
}

.sidebar ul li .bi-search {
    position: absolute;
    color:#fff;
    z-index: 99;
    font-size:20px;
    transition: all 0.5s ease;
}

.sidebar ul li .bi-search:hover {
    color:#11101d;
    background-color: #fff;
}

.sidebar .profile_content {
    color: #fff;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    /* border:1px solid; */
}



.profile_content .profile {
    position: relative;
    padding:6px 10px;
    height:60px;
    background: #11101d;
}

.sidebar.active .profile {
    background:#1d1b31;
}


.profile_content .profile .profile_details {
    display: flex;
    align-items: center;
    width: 80%;
    opacity: 0;
    pointer-events: none;
    background: #11101d;
}

.sidebar.active .profile_details {
    opacity: 1;
    pointer-events: auto;
    background:#1d1b31;
}


.profile_content .profile .profile_details i {
    min-width:30px;
    height:50px;
    text-align: center;
    font-size: 17px;
}

.profile .profile_details .name {
    word-break:break-all;
    font-size: 14px;
}

.profile_content .profile #logout {
    position:absolute;
    bottom: 5px;
    left: 50%;
    font-size: 20px;
    width:50px;
    height:50px;
    line-height: 50px;
    text-align: center;
    transform: translateX(-50%);
    border-radius: 12px;
    background:#1d1b31;
    transition: all 0.5s ease;

}
.sidebar.active .profile_content .profile #logout {
    left: 88%;
}



.home_content {
    position: absolute;
    height:100%;
    width:calc(100% - 78px);
    left:78px;
    transition: all 0.5s ease;
    font-family: Verdana;
    font-size:var(--smaller-font-size);
}

.sidebar.active ~ .home_content {
    width:calc(100% - 240px);
    left:240px;
}

.home_content .text {
    font-size: 18px;
    font-weight: 500;
    color: #1d1b31;
}

.home_content .top_bar {
    background-color: rgba(0,0,0,.05);
    padding:2px;
}






