/* Дизайнерская боковая панель навигации */

.sidebar-nav {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    pointer-events: none;
}

/* Тонкий триггер по центру */
.sidebar-trigger {
    width: 3px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(141, 177, 217, 0.4), transparent);
    border-radius: 2px;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-trigger::before {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    top: -20px;
    bottom: -20px;
}

.sidebar-trigger:hover {
    width: 4px;
    background: linear-gradient(180deg, transparent, rgba(141, 177, 217, 0.8), transparent);
}

/* Контейнер иконок */
.sidebar-icons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 16px;
    margin-left: 20px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

/* Открытое состояние */
.sidebar-nav.open .sidebar-icons {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.sidebar-nav.open .sidebar-trigger {
    width: 4px;
    background: linear-gradient(180deg, transparent, rgba(181, 156, 152, 0.8), transparent);
}

/* Иконка навигации */
.sidebar-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a6a7a;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: all 0.3s ease;
}

.sidebar-icon svg {
    width: 24px;
    height: 24px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

/* Hover эффект - только SVG без фона */
.sidebar-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(141, 177, 217, 0.15) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.sidebar-icon:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

.sidebar-icon:hover {
    color: #8DB1D9;
    transform: scale(1.1);
}

.sidebar-icon:active {
    transform: scale(0.95);
}

/* Форма для кнопки выхода */
.sidebar-icon-form {
    margin: 0;
    padding: 0;
}

/* Оверлей для закрытия */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Мобильная версия - скрываем */
@media (max-width: 768px) {
    .sidebar-nav {
        display: none;
    }
    
    .sidebar-overlay {
        display: none;
    }
}

/* Уменьшенная версия для небольших экранов */
@media (max-height: 600px) {
    .sidebar-icons {
        gap: 12px;
        padding: 12px;
    }
    
    .sidebar-icon {
        width: 38px;
        height: 38px;
    }
    
    .sidebar-icon svg {
        width: 20px;
        height: 20px;
    }
}
