/* Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
display: flex;
min-height: 100vh;
background: #f5f6fa;
}
/* Sidebar */
.sidebar {
position: fixed;
top: 0; left: 0;
height: 100%;
width: 78px;
background: #fff;
border-right: 1px solid #e0e0e0;
padding: 10px 14px;
transition: all 0.4s ease;
overflow: hidden;
}
.sidebar.active {
width: 250px;
}
/* Logo */
.logo {
display: flex;
align-items: center;
gap: 10px;
color: #111;
font-size: 20px;
font-weight: 600;
margin-bottom: 25px;
}
.menu-btn {
font-size: 22px;
color: #1976d2;
cursor: pointer;
}
.logo-text {
opacity: 0;
transition: opacity 0.3s ease;
}
.sidebar.active .logo-text {
opacity: 1;
}
/* Navigation */
.nav-links {
list-style: none;
margin-top: 20px;
}
.nav-links li {
margin: 8px 0;
}
.nav-links a {
display: flex;
align-items: center;
gap: 15px;
text-decoration: none;
color: #333;
padding: 10px;
border-radius: 8px;
transition: background 0.3s, color 0.3s;
}
.nav-links a:hover {
background: #e3f2fd;
color: #1976d2;
}
.nav-links a.active {
background: #1976d2;
color: #fff;
}
.nav-links span {
opacity: 0;
transition: opacity 0.3s ease;
}
.sidebar.active .nav-links span {
opacity: 1;
}
/* Profile */
.profile {
position: absolute;
bottom: 20px;
left: 14px;
display: flex;
align-items: center;
gap: 10px;
color: #333;
}
.profile img {
border-radius: 50%;
}
.profile-text {
opacity: 0;
transition: opacity 0.3s ease;
}
.sidebar.active .profile-text {
opacity: 1;
}