/* ============================================
   CSS Variables - Настройка цветов виджета
   ============================================ */
:root {
    /* Основной цвет (иконка, прогресс-бар) */
    --notification-primary-color: #1767ce ;

    /* Цвет фона попапа */
    --notification-bg-color: #ffffff;

    /* Цвет заголовка */
    --notification-title-color: #1a1a2e;

    /* Цвет текста */
    --notification-text-color: #6b7280;

    /* Цвет тени иконки */
    --notification-icon-shadow: rgba(61, 14, 137, 0.1) ;

    /* Цвет тени попапа */
    --notification-popup-shadow: rgba(0, 0, 0, 0.1);
    --notification-popup-shadow-2: rgba(0, 0, 0, 0.08);

    /* Цвет границы попапа */
    --notification-border-color: rgba(0, 0, 0, 0.06);
}

.popup-icon {
    width: 40px;
    height: 40px;
    background: var(--notification-primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--notification-icon-shadow);
}
.popup-icon svg{
        fill: var(--notification-primary-color) !important;
}
.popup-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--notification-primary-color);
    border-radius: 0 0 12px 12px;
    animation: shrinkProgress 4s linear forwards;
    width: 100%;
}

/* ============================================
   Animations
   ============================================ */

@keyframes slideInPopup {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutPopup {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shrinkProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.notification-popup {
    position: fixed;
    top: 24px;
    left: 24px;
    background: var(--notification-bg-color);
    padding: 16px 20px;
    border-radius: 12px;
    z-index: 10000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    box-shadow: 0 10px 25px var(--notification-popup-shadow), 0 6px 10px var(--notification-popup-shadow-2);
    opacity: 0;
    transform: translateX(-100%);
    animation: slideInPopup 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    pointer-events: none;
    min-width: 280px;
    max-width: 360px;
    border: 1px solid var(--notification-border-color);
    overflow: hidden;
}

.popup-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--notification-title-color);
    margin-bottom: 2px;
    letter-spacing: -0.2px;
}

.popup-text {
    font-size: 13px;
    color: var(--notification-text-color);
    font-weight: 400;
}
