:root {
    --sidebar-width: 100px;
    --sidebar-width-collapsed: 80px;
    --main-color:  rgb(33, 37, 41);
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
}

.sidebar {
    width: var(--sidebar-width);
    border-radius: 0.1em 0.1em 0.1em 0.1em;
    margin-left: auto;
    background: var(--bg-color-sidebar);
    color: var(--text-color-sidebar);
    transition: all 0.3s ease;
    
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
    
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);

    
}

.sidebar.collapsed{

 & main{
    width: 80%; /* Example: adjust the width when sidebar is collapsed */
    transition: width 0.3s ease;
}
  &.slidebar {
    width: auto; /* Example: adjust the width when sidebar is collapsed */
    transition: width 0.3s ease;
 }
}



.sidebar-link {
    color: var(--text-color-sidebar);
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 16px;
    white-space: nowrap;
    overflow: hidden;
    width: 200px;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.logo-text {
    background: linear-gradient(45deg, #ffffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}

.notification-badge {
    background: #ff6b6b;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
}

.profile-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


.collapsed~.main-content {
    margin-left: var(--sidebar-width-collapsed);

}

.toggle-btn {
    position: absolute;
    left: -15px;
    top: 20px;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.collapsed .toggle-btn {
    transform: rotate(180deg);

}

.collapsed .hide-on-collapse {
    opacity: 0;
    visibility: hidden;
}

.collapsed .logo-text {
    opacity: 0;

}
.collapsed .logosidebar{
    opacity: 0;
}

.collapsed .profile-info {
    opacity: 0;
}

.collapsed .sidebar-link {
    text-align: center;
    padding: 1rem !important;
    margin: 4px 8px;
}

.collapsed .sidebar-link i {
    margin: 0 !important;
}

.profile-info {
    transition: opacity 0.2s ease;
}