/* Простое меню с разделами - однотонный стиль */
.modal-bottom {
    margin: auto 0 0 0;
    max-width: 100%;
}

.modal-bottom .modal-content {
    border-radius: 20px 20px 0 0;
    border: none;
    background: #2c2c2c;
    color: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid #444;
    padding: 1.2rem 1.5rem;
    background: #2c2c2c;
}

.modal-title {
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
}

.close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.close:hover {
    color: #fff;
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
    background: #2c2c2c;
}

/* Разделы меню */
.menu-section {
    margin-bottom: 2rem;
}

.menu-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ccc !important;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

/* Элементы меню */
.menu-item {
    background: #3a3a3a;
    border: 1px solid #555;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 8px;
    padding: 0.75rem;
}

.menu-item:hover {
    background: #4a4a4a;
    border-color: #666;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.menu-item-icon {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.menu-item:hover .menu-item-icon {
    opacity: 1;
}

.menu-item-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    margin-top: 0.3rem;
}

/* Нижняя навигация - фиксированная и всегда видимая */
footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: #2c2c2c;
    border-top: 1px solid #444;
    padding: 0;
    margin: 0;
}

.bottom-navbar {
    background: #2c2c2c;
    padding: 0.8rem 0.5rem 1rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0;
}

.bottom-navbar-item {
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 80px;
}

.bottom-navbar-item:hover {
    color: #fff;
    text-decoration: none;
    background: #3a3a3a;
}

.bottom-navbar-item.active {
    color: #fff;
    background: #4a4a4a;
}

.bottom-navbar-item .image {
    margin-bottom: 0.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-navbar-item .image img,
.bottom-navbar-item .image svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.bottom-navbar-item:hover .image img,
.bottom-navbar-item:hover .image svg {
    transform: scale(1.1);
}

.bottom-navbar-item .label {
    font-size: 0.7rem !important;
    font-weight: 500;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

/* Отступ снизу для основного контента, чтобы меню не перекрывало */
main.account-app {
    padding-bottom: 80px !important;
}

/* Адаптивность */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
        display: flex;
        align-items: flex-end;
    }
    
    .modal-content {
        max-height: 75vh;
        overflow-y: auto;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .menu-item {
        min-height: 60px;
        padding: 0.6rem;
    }
    
    .menu-section-title {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .menu-item-label {
        font-size: 0.75rem;
    }

    .bottom-navbar {
        padding: 0.6rem 0.3rem 0.8rem;
    }

    .bottom-navbar-item {
        padding: 0.3rem;
        max-width: 70px;
    }

    .bottom-navbar-item .image img,
    .bottom-navbar-item .image svg {
        width: 18px;
        height: 18px;
    }

    .bottom-navbar-item .label {
        font-size: 0.65rem !important;
        max-width: 60px;
    }
}

/* Анимация появления модального окна */
.modal.fade .modal-dialog {
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

/* Простой индикатор для кнопки "Еще" */
.bottom-navbar-item[data-toggle="modal"] {
    position: relative;
}

.bottom-navbar-item[data-toggle="modal"]:after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    background: #007bff;
    border-radius: 50%;
    opacity: 0.8;
}

.bottom-navbar-item[data-toggle="modal"].active:after {
    background: #fff;
}

/* Цветовая группировка разделов - простые акценты */
.menu-section:nth-child(1) .menu-item {
    border-left: 3px solid #28a745;
}

.menu-section:nth-child(2) .menu-item {
    border-left: 3px solid #007bff;
}

.menu-section:nth-child(3) .menu-item {
    border-left: 3px solid #ffc107;
}

.menu-section:nth-child(4) .menu-item {
    border-left: 3px solid #dc3545;
}

/* Скролл для модального окна */
.modal-content::-webkit-scrollbar {
    width: 4px;
}

.modal-content::-webkit-scrollbar-track {
    background: #444;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 2px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #777;
}