/* Боковое меню */
.side-menu {
    list-style: none;
    padding: 0;
    /*margin: 1rem 0 0 0;*/
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.side-menu li {
    margin: 0;
}

.side-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.side-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.side-menu a:hover {
    background: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.2);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.side-menu a:hover::before {
    transform: scaleY(1);
}

.side-menu a:active {
    transform: translateX(3px);
    background: rgba(13, 110, 253, 0.1);
}

/* Select для мобильных устройств */
.side-menu-select {
    display: none;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    color: #495057;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23495057' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.side-menu-select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    background-color: white;
}

.side-menu-select:hover {
    background-color: rgba(13, 110, 253, 0.05);
    border-color: rgba(13, 110, 253, 0.2);
}

/* Адаптивность */
@media (max-width: 992px) {
    /*.side-menu {
        margin-top: 1.5rem;
    }
    */
	.side-menu {
        display: none;
    }
    
    .side-menu-select {
        display: block;
    }
    
    .side-menu {
        gap: 0.4rem;
    }
    
    .side-menu a:hover {
        transform: translateY(-2px);
    }
    .side-menu a {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}
@media (min-width: 992px) {
.side-menu-select {
        display: none;
    }
    
    .side-menu {
        display: flex;
    }
}



@media (max-width: 576px) {
    .side-menu a {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .side-menu-select {
        font-size: 0.95rem;
        padding: 10px 14px;
    }
}

@media (max-width: 400px) {
    .side-menu a {
        padding: 8px 12px;
    }
    
    .side-menu-select {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Анимации
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.side-menu li {
    animation: slideInRight 0.5s ease;
}


.side-menu li:nth-child(1) { animation-delay: 0.1s; }
.side-menu li:nth-child(2) { animation-delay: 0.2s; }
.side-menu li:nth-child(3) { animation-delay: 0.3s; }
.side-menu li:nth-child(4) { animation-delay: 0.4s; }
.side-menu li:nth-child(5) { animation-delay: 0.5s; }
.side-menu li:nth-child(6) { animation-delay: 0.6s; }
.side-menu li:nth-child(7) { animation-delay: 0.7s; }
.side-menu li:nth-child(8) { animation-delay: 0.8s; }
.side-menu li:nth-child(9) { animation-delay: 0.9s; }
.side-menu li:nth-child(10) { animation-delay: 1s; }
.side-menu li:nth-child(11) { animation-delay: 1.1s; }
.side-menu li:nth-child(12) { animation-delay: 1.2s; }
.side-menu li:nth-child(13) { animation-delay: 1.3s; }
.side-menu li:nth-child(14) { animation-delay: 1.4s; }
.side-menu li:nth-child(15) { animation-delay: 1.5s; }
*/

/* Иконки (опционально) */
.side-menu a::after {
    content: '→';
    margin-left: auto;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    color: #0d6efd;
    font-weight: bold;
}

.side-menu a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Альтернативный вариант с иконками Bootstrap */
.side-menu.with-icons a {
    padding-left: 45px;
}

.side-menu.with-icons a::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    transition: all 0.3s ease;
}

/* Пример иконок для разных пунктов меню */
.side-menu.with-icons li:nth-child(1) a::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5z'/%3E%3C/svg%3E");
}

/*Если пункт меню указывает туда, где мы находимся*/
.side-menu li.selected a {
    background: rgba(13, 110, 253, 0.05);
    /*color: #0d6efd;*/
    border-color: rgba(13, 110, 253, 0.2);
    /*transform: translateX(5px);*/
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.side-menu li.selected a::before {
    transform: scaleY(1);
}

/* Адаптивность для выбранного элемента */
@media (max-width: 768px) {
    .side-menu li.selected a {
        transform: translateY(-2px);
    }
}
