@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400&display=swap');
.sidebar{
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(40px);
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 6px 14px;
    transition :0.5s;
}
.sidebar.active{
    width: 260px;
}
.sidebar .logo-menu{
    display: flex;
    align-items: center;
    width: 100%;
    height: 70px;
}
.sidebar .logo-menu .logo{
    color: white;
    font-size: 21px;
    pointer-events: none;
    opacity: 0;
    transition : 0.3s;
}
.sidebar.active .logo-menu .logo{
    opacity: 1;
    transition-delay: 0.2s;
}
.sidebar .datetime{
    width: 100%;
    display:flex;
    justify-content: space-between;
    white-space: nowrap; 
    overflow: hidden;
    text-wrap: none;
    color: white;
    font-size: 16px;
}
#thaiDateTime {
    #thai-day, #thai-year, #thai-time {
        font-family: 'Roboto Mono', monospace;
    }
    #thai-month {
        font-family: 'kanit', sans-serif;
    }
    transition: opacity 0.1s ease-in-out;
}
.fade-out {
    opacity: 0;
}

.sidebar .logo-menu .toggle-btn {
    position : absolute;
    left : 50%;
    transform : translateX(-50%);
    height: 40px;
    width: 40px;
    font-size: 26px;
    color : white;
    text-align: center;
    line-height: 40px;
    transition : 0.5s;
}
.sidebar .logo-menu .toggle-btn:hover{
    color: #bb98ff;
    font-size: 32px;
    text-shadow: 0 0 10px #000000;
}

.sidebar.active .logo-menu .toggle-btn{
    left : 90%;
}
.sidebar .list {
    margin-top : 10px;
    padding-left: 0;
}
.list .list-item{
    list-style: none;
    width: 100%;
    height: 50px;
    margin : 10px 0;
    line-height: 50px;
    white-space: nowrap;
    transition : 0.5s;
}
.list .list-item.active a{
    background-color: rgb(187, 152, 255);
    color:#0c2333;
    box-shadow: 0 0 13px rgb(134, 73, 255);
    border: 1px solid rgb(255, 255, 255);
}
.list .list-item:hover a{
    background-color: rgb(187, 152, 255);
    color:#0c2333;
}

.list .list-item a{
    display: flex;
    align-items: center;
    font-size: 18px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    transition : 0.4s;
}
.list .list-item a i{
    min-width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
}
.sidebar .link-name{
    opacity: 0;
    pointer-events: none;
    transition :opacity 0.3s;
}
.sidebar.active .link-name{
    opacity: 1;
    pointer-events: auto;
    transition-delay: calc(0.1s * var(--i));
}

@media (max-width: 576px) {
    .sidebar{
        position: fixed;
        top:0;
        left:0;
        width: 100%;
        height: 80px;
        transition-delay: 0.2s;
    }

    .sidebar.active {
        width: 100%;
        height: 350px;
        transition: height 0.3s ease-in-out;
        z-index: 100;
    }

    .sidebar .logo-menu .toggle-btn {
        /* position : absolute; */
        left : 90%;
        /* transform : translateX(-50%); */
        /* height: 40px;
        width: 40px;
        font-size: 26px;
        color : white;
        text-align: center;
        line-height: 40px;
        transition : 0.5s; */
    }

    .sidebar .list {
        opacity: 0;
        pointer-events: none;
        transition :opacity 0.3s;
    }

    .sidebar.active .list {
        opacity: 1;
        transition :opacity 0.3s;
        transition-delay: 0.2s;
    }

    .sidebar .logo-menu .logo{
        /* color: white;
        font-size: 21px; */
        pointer-events: none;
        opacity: 1;
        /* transition : 0.3s; */
    }

    body {
        /* margin-top: 80px; */
        padding: 80px 0 0 0 !important;
    }
}
