.notification-bell-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-default);
    pointer-events: none;
}

body.map-active .notification-bell-container {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.notification-bell {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--danger-color, #ea4335);
    display: none;
}

.hamburger-menu-button {
    transition: var(--transition-default);

    z-index: 999; /* Выше, чем у меню */
    cursor: pointer;
}

.hamburger-menu-button.active {
    background-color: rgba(255, 255, 255, 0.2); /* Легкая подсветка для индикации активного состояния */
}
.hamburger-menu-container {
    position: fixed;
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    /* Убираем bottom и right, будем позиционировать относительно кнопки */
    transform: scale(0.3);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    /* Важное изменение: позиционируем относительно нижнего правого угла */
    right: 20px; /* Совпадает с расположением гамбургер-кнопки */
    bottom: 20px; /* Совпадает с расположением гамбургер-кнопки */
}

.hamburger-menu-container.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}


.hamburger-menu {
    position: absolute;
    bottom: 0; /* Привязываем к нижнему краю контейнера */
    right: 0; /* Привязываем к правому краю контейнера */
    /* Остальные свойства без изменений */
    background: var(--glass-bg, rgba(255, 255, 255, 0.07));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.3));
    overflow: hidden;
    width: 270px;
    padding: 8px 0;
    transform: translateY(-100%); /* Смещаем над кнопкой */
    margin-bottom: 60px; /* Отступ от кнопки, чтобы она оставалась видимой */
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--text-color, #ffffff);
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-item-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color, #ffffff);
}

.menu-item-icon svg {
    width: 20px;
    height: 20px;
}

.menu-item-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

/* Toggle Switch for LDM */
.toggle-switch {
    width: 40px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-switch.active {
    background-color: var(--primary-color, #4285f4);
}

.toggle-slider {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(20px);
}

/* Notification Popup */
.notification-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.notification-popup.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification-popup.info {
    border-left: 4px solid var(--primary-color, #4285f4);
}

.notification-popup.success {
    border-left: 4px solid var(--secondary-color, #34a853);
}

.notification-popup.warning {
    border-left: 4px solid var(--accent-color, #fbbc05);
}

.notification-popup.error {
    border-left: 4px solid var(--danger-color, #ea4335);
}

@media (max-width: 768px) {
    .notification-bell-container {
        top: 15px;
        right: 15px;
    }
    
    .hamburger-menu-container {
        bottom: 50px;
        right: 15px;
    }
    .hamburger-menu {
        width: 250px;
    }
    
    
}

@media (max-width: 360px) {
    .hamburger-menu {
        width: 220px; /* Smaller width for very small screens */
        margin-bottom: 8px; /* Even less space on very small screens */
    }
    
    .menu-item {
        padding: 8px 10px; /* Further reduced padding */
    }
    
    .menu-item-text {
        font-size: 13px;
    }
    
    .menu-item-icon {
        margin-right: 8px; /* Reduced margin */
    }
}

/* Low Detail Mode (LDM) overrides */
body.ldm-active .hamburger-menu-container,
body.ldm-active .notification-bell-container,
body.ldm-active .hamburger-menu-button,
body.ldm-active .notification-bell {
    transition: none !important;
}

body.ldm-active .hamburger-menu {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(20, 20, 20, 0.85) !important;
}

body.ldm-active .menu-item:hover {
    background: rgba(40, 40, 40, 0.85) !important;
    transform: none !important;
}