/* portal-sidebar.css */

#left-sidebar {
    display: flex;
    flex-direction: column;
    background-color: var(--sidebar-bg);
    color: #d1d5db;
    overflow-x: hidden;
    white-space: nowrap;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-collapsed-width);
    transition: width var(--sidebar-transition-speed) ease-in-out;
    z-index: 2000;
}

body.sidebar-expanded #left-sidebar {
    width: var(--sidebar-expanded-width);
}

.sidebar-header {
    padding: 0;
    display: flex;
    align-items: center;
}

.sidebar-logo-link {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    padding: 15px 25px;
    width: 100%;
    border-bottom: 1px solid #374151;
}

.sidebar-logo-img {
    height: 30px;
    width: 30px;
    flex-shrink: 0;
}

.sidebar-logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    opacity: 0;
    transition: opacity var(--sidebar-transition-speed) ease-in-out;
}

body.sidebar-expanded .sidebar-logo-text {
    opacity: 1;
}

.sidebar-user-info {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-user-info__photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #374151;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user-info__details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    overflow: hidden;
    opacity: 0;
    transition: opacity var(--sidebar-transition-speed) ease-in-out;
}

body.sidebar-expanded .sidebar-user-info__details {
    opacity: 1;
}

.sidebar-user-info__name {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info__email {
    font-size: 0.8rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #d1d5db;
    text-decoration: none;
    gap: 20px;
    transition: background-color 0.2s;
}

.sidebar-nav a:hover {
    background-color: #1f2937;
    color: #fff;
}

.active-menu-item a {
    background-color: #374151 !important;
    color: #fff !important;
}

.sidebar-nav a svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.sidebar-nav a span {
    opacity: 0;
    transition: opacity var(--sidebar-transition-speed) ease-in-out;
}

body.sidebar-expanded .sidebar-nav a span {
    opacity: 1;
}

.sidebar-nav .nav-separator {
    height: 1px;
    background-color: #374151;
    margin: 10px 25px;
    list-style: none;
}