
/* Стили для боковой панели */
.sidebar {
    left: 0px;
    top: 0px;
    position: fixed;
    width: 200px;
    height: 100%;
    background-color: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: width 0.1s ease;
    overflow: hidden; /* ???? */
    z-index: 90;
    scrollbar-width: thin;
}

.sidebar.collapsed {
    width: 46px;
}
/* Авторазворот при наведении */
.sidebar.collapsed:hover {
    width: 200px;
}

.sidebar-header {
    padding: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.toggle-btn {
    background: none;
    border: none;
    width: 46px;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    box-shadow: none;
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
}

.nav-item {
    padding: 12px 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.nav-item-logo {
    padding: 12px 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.nav-item-logo:hover {
    background-color: #f5f5f5;
}

.nav-item:hover {
    background-color: #f5f5f5;
}

.nav-item.active {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #2196f3;
}

.nav-icon {
    width: 24px;
    margin-right: 20px;
    font-size: 18px;
    text-align: center;
}
