/* Стили для нижней панели */
.bottom-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 10000;
    visibility: hidden;
    transition: visibility 0s linear 0.6s; /* Задержка чтобы скрыть после анимации */
    pointer-events: none;
}

.bottom-panel.active,
.bottom-panel.preparing {
    visibility: visible;
    transition: visibility 0s linear 0s;
    pointer-events: auto;
}

.bottom-panel.preparing {
    pointer-events: none;
}

.bottom-panel.preparing .bottom-panel__content {
    transform: translateY(100%) !important;
    transition: none !important;
}

.bottom-panel.preparing .bottom-panel__overlay {
    opacity: 0 !important;
    transition: none !important;
}

.bottom-panel__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bottom-panel.active .bottom-panel__overlay {
    opacity: 1;
}

.bottom-panel__content {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #16181c;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 10002;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), max-height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
    padding: 0px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Стили для внутреннего содержимого панели с плавной анимацией высоты */
.bottom-panel__content-inner {
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    max-height: 85vh;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Скрытие скроллбара для WebKit браузеров (Chrome, Safari) */
.bottom-panel__content-inner::-webkit-scrollbar {
    display: none;
    width: 0px;
    height: 0px;
}

/* Анимация для содержимого внутри панели */
.bottom-panel__content-inner > div {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

/* Анимация при смене содержимого */
.bottom-panel__content-inner.changing > div {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Плавная анимация для изменения размера панели */
.bottom-panel__content-inner {
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Анимация для плавного изменения высоты при динамическом контенте */
.bottom-panel__content {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), 
                height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), 
                max-height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                min-height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bottom-panel.active .bottom-panel__content {
    transform: translateY(0);
}

@media (min-width: 600px) {
    .bottom-panel__content {
        max-width: 600px;
        left: calc(50% - 600px / 2);
        max-height: 75vh;
    }
    .bottom-panel__content-inner {
        max-height: 69vh;
    }
}

.bottom-panel__header {
    display: none; /* Скрываем заголовок */
}

.bottom-panel__header h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.bottom-panel__list {
    padding: 15px 0 32px 0;
    max-height: 70vh;
    overflow-y: auto;
}

.panel-item {
    display: flex;
    align-items: center;
    padding: 5px 20px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.panel-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.panel-item:hover {
    background: #2a2a2a;
}

.panel-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.panel-item__icon img {
    width: 70%;
    height: auto;
}

.panel-item__info {
    flex: 1;
}

.panel-item__title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 5px;
}

.panel-item__subtitle {
    color: #999;
    font-size: 14px;
} 