@import url('poppins.css'); *{ margin: 0; padding: 0; box-sizing: border-box; font-family: "Poppins" , sans-serif; } .sidebar .sub-menu li a { color: #fff; padding-left: 10px; } .sidebar .sub-menu li a:hover { background: rgba(255,255,255,0.1); color: white; } .sidebar .sub-menu li a { padding-left: 10px; } /* Hide the sub-menu by default */ .sidebar .sub-menu { display: none; } /* Show the sub-menu when the "open" class is present */ .sidebar .sub-menu.open { display: block; } .sidebar { position: fixed; left: 0; top: 0; height: 100%; width: 78px; background: linear-gradient(180deg, #004d40 0%, #00695c 40%, #00897b 70%, #00acc1 100%); padding: 6px 14px; z-index: 99; transition: all 0.5s ease; box-shadow: 4px 0 20px rgba(0, 105, 92, 0.4); } .sidebar.open{ width: 260px; } .sidebar .logo-details{ height: 60px; display: flex; align-items: center; position: relative; } .sidebar .logo-details .icon{ opacity: 0; transition: all 0.5s ease; } .sidebar .logo-details .logo_name{ color: #fff; font-size: 20px; font-weight: 600; opacity: 0; transition: all 0.5s ease; } .sidebar.open .logo-details .icon, .sidebar.open .logo-details .logo_name{ opacity: 1; } .sidebar .logo-details #btn{ position: absolute; top: 50%; right: 0; transform: translateY(-50%); font-size: 22px; transition: all 0.4s ease; font-size: 23px; text-align: center; cursor: pointer; transition: all 0.5s ease; } .sidebar.open .logo-details #btn{ text-align: center; } .sidebar i{ color: #fff; height: 60px; min-width: 50px; font-size: 28px; text-align: center; line-height: 60px; } .sidebar .nav-list{ margin-top: 20px; height: 100%; } .sidebar li{ position: relative; margin: 8px 0; list-style: none; } .sidebar li .tooltip { position: absolute; top: -20px; left: calc(100% + 15px); z-index: 3; background: linear-gradient(135deg, #00695c, #00acc1); color: white; box-shadow: 0 4px 12px rgba(0,150,136,0.3); padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 500; opacity: 0; white-space: nowrap; pointer-events: none; transition: 0s; } .sidebar li:hover .tooltip { opacity: 1; pointer-events: fill; transition: all 0.4s ease; top: 50%; transform: translateY(-50%); } .sidebar.open li .tooltip{ display: none; } .sidebar input{ font-size: 15px; color: teal; font-weight: 400; outline: none; height: 50px; width: 100%; width: 50px; border: none; border-radius: 12px; transition: all 0.5s ease; background: #1d1b31; } .sidebar.open input{ padding: 0 20px 0 50px; width: 100%; } .sidebar .bx-search{ position: absolute; top: 50%; left: 0; transform: translateY(-50%); font-size: 22px; background: #1d1b31; color: #FFF; } .sidebar.open .bx-search:hover { background: #FFF; color: #FFF; } .sidebar .bx-search:hover{ background: #FFF; color: #11101d; } .sidebar li a { display: flex; height: 100%; width: 100%; border-radius: 10px; align-items: center; text-decoration: none; transition: all 0.3s ease; background: transparent; padding: 4px 6px; } .sidebar li a:hover { background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); transform: translateX(2px); } .sidebar li a .links_name{ color: #fff; font-size: 15px; font-weight: 400; white-space: nowrap; opacity: 0; pointer-events: none; transition: 0.4s; } .sidebar li a.active { background: rgba(255, 255, 255, 0.2); border-left: 3px solid white; } .sidebar.open li a .links_name{ opacity: 1; pointer-events: auto; } .sidebar li a:hover .links_name, .sidebar li a:hover i { color: #ffffff; } .sidebar li a.active-link { background: rgba(255,255,255,0.2); border-left: 3px solid rgba(255,255,255,0.9); box-shadow: inset 0 0 10px rgba(255,255,255,0.05); } .sidebar li i{ height: 50px; line-height: 50px; font-size: 18px; border-radius: 12px; } .sidebar li.profile { position: fixed; height: 90px; width: 78px; left: 0; bottom: -8px; padding: 10px 14px; background: rgba(0,0,0,0.25); backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,0.1); transition: all 0.5s ease; overflow: hidden; justify-content: center; } .sidebar.open li.profile{ width: 260px; } .sidebar li .profile-details{ display: flex; align-items: center; flex-wrap: nowrap; } .sidebar li img{ height: 50px; width: 50px; object-fit: cover; border-radius: 100px; margin-right: 20px; } .sidebar li.profile .name, .sidebar li.profile .job{ font-size: 15px; font-weight: 400; color: #fff; white-space: nowrap; } .sidebar li.profile .job{ font-size: 12px; } .sidebar .profile #log_out { position: absolute; top: 50%; right: 0; transform: translateY(-50%); background: rgba(0,0,0,0.2); width: 100%; height: 90px; line-height: 60px; border-radius: 0; transition: all 0.5s ease; } .sidebar.open .profile #log_out{ width: 50px; background: none; } .home-section{ position: relative; background: #ffffff; min-height: 100vh; top: 0; left: 78px; width: calc(100% - 78px); transition: all 0.5s ease; z-index: 2; } .sidebar.open ~ .home-section{ left: 250px; width: calc(100% - 250px); } .home-section .text{ display: inline-block; color: #11101d; font-size: 25px; font-weight: 500; margin: 18px } @media (max-width: 420px) { .sidebar li .tooltip{ display: none; } }