/* Система уведомлений - баннер сверху */
.notifications-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    pointer-events: none;
    width: 100%;
}

.notification {
    width: 100%;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60px;
    font-weight: 500;
    font-size: 16px;
    padding-top: calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top) + 12px) !important;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.notification.hide {
    transform: translateY(0); /* Остаемся на месте */
    opacity: 0; /* Только растворение */
    transition: opacity 0.25s ease-out; /* Только opacity, без transform */
}

/* Иконки уведомлений */
.notification-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.notification-icon.success {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.notification-icon.error {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.notification-icon.warning {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.notification-icon.info {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Контент уведомления */
.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.notification-title {
    display: none; /* Скрываем заголовок для баннеров */
}

.notification-message {
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Кнопка закрытия - скрываем для баннеров */
.notification-close {
    display: none;
}

/* Прогресс-бар для автозакрытия */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.05s ease-out;
    width: 100%;
}

/* Анимация прогресс-бара */
.notification-progress-bar.animate {
    animation: notificationProgress linear;
}

@keyframes notificationProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Типы уведомлений */
.notification.success {
    background-color: #3D9966;
}

.notification.error {
    background-color: #DC4E41;
}

.notification.warning {
    background-color: #f59e0b;
}

.notification.info {
    background-color: #3b82f6;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
    .notification {
        padding: 14px 16px;
        min-height: 56px;
        font-size: 15px;
        
    }
    
    .notification-icon {
        width: 18px;
        height: 18px;
        font-size: 11px;
        margin-right: 6px;
    }


    
}

@media (min-width: 600px) {
    .notification {
        max-width: 600px;
        left: 0;
        right: 0;
        margin: 0 auto;
        border-radius: 20px;
    }
}

body.web-desktop .notification {
    top: 10px;
}

body.web-desktop .notification-progress {
    display: none;
}

/* Анимации убраны - используем только CSS transitions */

/* Дополнительные стили для баннеров */
.notification.important {
    animation: pulseShadow 2s infinite;
}

@keyframes pulseShadow {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}
