/**
 * Стили для красивых уведомлений BeauTips
 */

.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    pointer-events: all;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    min-width: 300px;
    max-width: 400px;
}

.notification-show {
    transform: translateX(0);
    opacity: 1;
}

.notification-hide {
    transform: translateX(450px);
    opacity: 0;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    word-wrap: break-word;
}

.notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.notification-close:active {
    transform: scale(0.95);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
    transform-origin: left;
    animation: notification-progress linear forwards;
}

@keyframes notification-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .notifications-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }

    .notification-show {
        transform: translateY(0);
    }

    .notification-hide {
        transform: translateY(-100px);
    }
}

/* Анимация появления для нескольких уведомлений */
.notification:nth-child(1) {
    animation-delay: 0ms;
}

.notification:nth-child(2) {
    animation-delay: 50ms;
}

.notification:nth-child(3) {
    animation-delay: 100ms;
}

/* Эффект при наведении */
.notification:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.notification-show:hover {
    transform: translateX(-5px) scale(1.02);
}

