
.notifications-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--ui-z-toast, 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;
}

.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;
    white-space: pre-line;
}

.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: var(--ui-color-success, #3D9966);
}

.notification.error {
    background-color: var(--ui-color-danger, #DC4E41);
}

.notification.warning {
    background-color: var(--ui-color-warning, #f59e0b);
}

.notification.info {
    background-color: var(--ui-color-info, #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;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.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);
    }
}
