.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 50px;
    background: #ffffff;
    transition: ease-in-out 0.4s;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar .logo-content {
    position: relative;
    width: 240px;
    height: 50px;
    z-index: 4;
    border-bottom: 1px solid #F3F4F6;
}

.sidebar.show {
    width: 240px;
}

#pc-app-name {
    font-size: 20px;
    font-weight: 500;
    position: absolute;
    cursor: default;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

.sidebar .nav_list {
    width: 240px;
    flex: 1;
    padding-left: 0;
}

.sidebar #menu-btn{
    position: absolute;
    color: #fff;
    left: 13px;
    top: 13px;
    height: 24px;
    width: 24px;
    text-align: center;
    cursor: pointer;
    background-image: url(../source-img/menu-icon.svg);
}


.sidebar ul li{
    position: relative;
    height: 50px;
    width: 240px;
    list-style: none;
    font-weight: normal;
    cursor: pointer;
}

.sidebar ul li a{
    color: #000000;
    display: flex;
    text-decoration: none;
    border-radius: 12px; 
    position: relative;
}

.sidebar ul li .dropdown {
    color: #000000;
    display: flex;
    text-decoration: none;
    border-radius: 12px; 
    position: relative;
    width: 100%;
    height: 100%;
}

.sidebar ul li .dropdown ul {
    width: 100%;
    height: 100%;
}

.sidebar ul li .dropdown .custom-dropdown-toggle {
    width: 100%;
    height: 50px;
    background-color: #fff;
    border-radius: 0;
    font-size: 20px;
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
}

.sidebar ul li a div{
    background-color: #fdfdfd;
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 50px;
}

.sidebar ul li a img{
    position: absolute;
    width: 18px;
    height: 18px;
    top: 16px;
    left: 16px;
}

.sidebar ul li a span{
    position: absolute;
    height: 19px;
    top: 15px;
    left: 50px;
    font-size: 14px;
}

.sidebar.show + .main-content {
    width: calc(100% - 240px);
    left: 240px;
}
.main-content.show {
    width: calc(100% - 240px);
    left: 240px;
}

.selected {
    color: #2185D0;
    background: #fff;
}

.sidebar ul li a .selected div{
    background-color: #2185D0;
}

.sidebar ul li a div.active {
    background-color: #2185D0;
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 50px;
}

.sidebar ul li a span.active{
    color: #2185D0;
}

.sidebar ul li a:hover{
    color: #2185D0;
    background: #fff;
    filter: invert(54%) sepia(42%) saturate(2841%) hue-rotate(195deg) brightness(90%) contrast(88%);
}

.sidebar #google-login-div, .sidebar #google-login-btn {
    width: 100%;
    height: 50px;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0;
    border-top: 1px solid #F3F4F6;
}

.sidebar #google-login-div #userProfilePicture {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    left: 5px;
    bottom: 5px;
    position: absolute;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.sidebar #google-login-div #userName {
    font-size: 13px;
    width: 190px;
    text-align: left;
    font-weight: bold;
    position: absolute;
    left: 55px;
}

.sidebar #google-login-div #logout-btn {
    background-color: #fff;
    left: 50px;
    font-size: 13px;
    border: none;
    position: absolute;
    font-weight: 600;
    color: #DC3545;
    bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 5px;
}

.sidebar #google-login-div #logout-btn:hover {
    color: #fff;
    background-color: #DC3545;
}

.sidebar #google-login-btn .login-text {
    font-size: 15px;
    font-weight: bold;
    position: absolute;
    left: 55px;
    cursor: pointer;
}

.sidebar #google-login-btn img {
    width: 40px;
    height: 40px;
    position: absolute;
    left: 5px;
    top: 5px;
    cursor: pointer;
}

.sidebar #google-login-btn img:hover {
    transform: scale(1.2);
}
 
/* button đổi ngôn ngữ */

.language-toggle-box label {
    width: 80px;
    height: 40px;
    position: relative;
    display: block;
    background: #ebebeb;
    border-radius: 20px;
    box-shadow: inset 0px 5px 15px rgba(0,0,0,0.4), inset 0px -5px 15px rgba(255,255,255,0.4);
    cursor: pointer;
  }

  #language-toggle {
    display: none;
  }
  
  li .language-toggle-box {
    position: absolute;
    top: 5px;
    right: 10px;
    z-index: 2;
  }
  
  .language-toggle-box label:after {
    content: "";
    width: 36px;
    height: 36px;
    position: absolute;
    top:2px;
    left:2px;
    background: linear-gradient(180deg,#ffcc89,#d8860b);
    border-radius: 180px;
    box-shadow: 0px 5px 10px rgba(0,0,0,0.2);
  }

  .language-toggle-box input:checked + label:after {
    left:78px;
    transform: translateX(-100%);
    background: linear-gradient(180deg,#777,#807878);
  }
  .language-toggle-box label, .language-toggle-box label:after {
    transition: 0.4s
  }
  
  .language-toggle-box label:active:after{ 
    width: 52px; 
  }
  
  .language-toggle-box label img {
    position: absolute;
    width: 24px;
    top:8px;
    z-index: 100;
  }
  .language-toggle-box label img.vi {
    left:8px;
    fill:#fff;
    transition: 0.3s;
  }
  .language-toggle-box label img.en {
    left:48px;
    fill:#7e7e7e;
    transition: 0.3s;
  }
  .language-toggle-box input:checked + label img.vi {
    fill:#7e7e7e;
  }
  .language-toggle-box input:checked + label img.en {
    fill:#fff;
  }
  
/* nhạc nền */

li #music {
    position: absolute; 
    cursor: pointer; 
    top: 5px; 
    left: 5px; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    border: 3px solid red;
}

#music.scale-animation {
    animation: scaleAnimation 0.5s infinite; 
}

#userProfilePicture:hover {
    transform: scale(1.2);
}

@keyframes scaleAnimation {
    0% {
      transform: scale(1);
      box-shadow: 0 0 10px rgba(0, 0, 255, 0.7);
    }
    50% {
      transform: scale(1.2);
      box-shadow: 0 0 10px rgba(0, 0, 255, 0.7);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 10px rgba(0, 0, 255, 0.7);
    }
}
  