:root {
    --uges-notify-navy: #2e3192;
    --uges-notify-blue: #3d4db7;
    --uges-notify-lime: #d9ff67;
    --uges-notify-ink: #111615;
    --uges-notify-muted: #5f6b66;
    --uges-notify-success: #2f7d4f;
    --uges-notify-error: #c62828;
    --uges-notify-warning: #b7791f;
    --uges-notify-info: #2e3192;
}

.uges-notify-stack {
    position: fixed;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.uges-notify-stack--bottom-right {
    right: 20px;
    bottom: 20px;
    align-items: stretch;
}

.uges-notify-stack--bottom-left {
    left: 20px;
    bottom: 20px;
    align-items: stretch;
}

.uges-notify-stack--top-right {
    right: 20px;
    top: 20px;
    align-items: stretch;
}

.uges-notify-stack--top-left {
    left: 20px;
    top: 20px;
    align-items: stretch;
}

.uges-notify-stack--top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    align-items: stretch;
}

.uges-notify-stack--bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    align-items: stretch;
}

.uges-notify {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(46, 49, 146, 0.12);
    background: #ffffff;
    box-shadow:
        0 18px 45px rgba(17, 22, 21, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.04);
    color: var(--uges-notify-ink);
    overflow: hidden;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition:
        opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.uges-notify.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.uges-notify.is-leaving {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
}

/* Remove side color strip completely */
.uges-notify__accent {
    display: none !important;
}

/* Tinted Card Borders & Backgrounds instead of side strip */
.uges-notify--success {
    border-color: rgba(47, 125, 79, 0.25);
    background: linear-gradient(135deg, #ffffff 60%, rgba(243, 255, 247, 0.95) 100%);
    box-shadow: 0 16px 36px rgba(47, 125, 79, 0.12), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.uges-notify--error {
    border-color: rgba(198, 40, 40, 0.25);
    background: linear-gradient(135deg, #ffffff 60%, rgba(255, 245, 245, 0.95) 100%);
    box-shadow: 0 16px 36px rgba(198, 40, 40, 0.12), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.uges-notify--warning {
    border-color: rgba(183, 121, 31, 0.25);
    background: linear-gradient(135deg, #ffffff 60%, rgba(255, 251, 242, 0.95) 100%);
    box-shadow: 0 16px 36px rgba(183, 121, 31, 0.12), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.uges-notify--info {
    border-color: rgba(46, 49, 146, 0.25);
    background: linear-gradient(135deg, #ffffff 60%, rgba(246, 248, 255, 0.95) 100%);
    box-shadow: 0 16px 36px rgba(46, 49, 146, 0.12), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.uges-notify__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.uges-notify__icon svg,
.uges-notify__close svg {
    display: block;
    width: 20px;
    height: 20px;
}

.uges-notify--success .uges-notify__icon {
    background: linear-gradient(135deg, #388e3c, #1b5e20);
    color: #ffffff;
}

.uges-notify--error .uges-notify__icon {
    background: linear-gradient(135deg, #e53935, #b71c1c);
    color: #ffffff;
}

.uges-notify--warning .uges-notify__icon {
    background: linear-gradient(135deg, #f57c00, #e65100);
    color: #ffffff;
}

.uges-notify--info .uges-notify__icon {
    background: linear-gradient(135deg, #3f51b5, #1a237e);
    color: #ffffff;
}

.uges-notify__body {
    min-width: 0;
    padding-top: 2px;
}

.uges-notify__title {
    margin: 0 0 2px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--uges-notify-muted);
}

.uges-notify__message {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--uges-notify-ink);
    word-break: break-word;
}

.uges-notify__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--uges-notify-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.uges-notify__close:hover {
    background: rgba(46, 49, 146, 0.08);
    color: var(--uges-notify-navy);
}

.uges-notify__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: transparent;
    overflow: hidden;
    border-radius: 0 0 18px 18px;
}

.uges-notify__progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform: scaleX(1);
    background: var(--uges-notify-navy);
}

.uges-notify--success .uges-notify__progress span {
    background: linear-gradient(90deg, #388e3c, #81c784);
}

.uges-notify--error .uges-notify__progress span {
    background: linear-gradient(90deg, #e53935, #ff8a80);
}

.uges-notify--warning .uges-notify__progress span {
    background: linear-gradient(90deg, #f57c00, #ffd54f);
}

.uges-notify--info .uges-notify__progress span {
    background: linear-gradient(90deg, #3f51b5, #9fa8da);
}

.uges-notify__progress span.is-animating {
    animation: ugesNotifyProgress linear forwards;
}

@keyframes ugesNotifyProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

@media (max-width: 575px) {
    .uges-notify-stack--bottom-right,
    .uges-notify-stack--bottom-left,
    .uges-notify-stack--top-right,
    .uges-notify-stack--top-left {
        right: 12px;
        left: 12px;
        width: auto;
    }

    .uges-notify-stack--bottom-center,
    .uges-notify-stack--top-center {
        width: calc(100vw - 24px);
    }
}
