:root {
    --app-notify-success: #16a34a;
    --app-notify-error: #dc2626;
    --app-notify-info: #2563eb;
    --app-notify-warning: #d97706;
}

.app-notify-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.app-notify {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12), 0 2px 8px rgba(15, 23, 42, .08);
    padding: 14px 16px;
    border-left: 4px solid var(--app-notify-info);
    opacity: 0;
    transform: translateX(30px) scale(.98);
    transition: opacity .35s ease, transform .35s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.app-notify.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.app-notify.is-leaving {
    opacity: 0;
    transform: translateX(30px) scale(.98);
}

.app-notify--success {
    border-left-color: var(--app-notify-success);
}

.app-notify--error {
    border-left-color: var(--app-notify-error);
}

.app-notify--info {
    border-left-color: var(--app-notify-info);
}

.app-notify--warning {
    border-left-color: var(--app-notify-warning);
}

.app-notify__icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.app-notify--success .app-notify__icon {
    background: var(--app-notify-success);
}

.app-notify--error .app-notify__icon {
    background: var(--app-notify-error);
}

.app-notify--info .app-notify__icon {
    background: var(--app-notify-info);
}

.app-notify--warning .app-notify__icon {
    background: var(--app-notify-warning);
}

.app-notify__body {
    flex: 1 1 auto;
    min-width: 0;
}

.app-notify__title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px;
    line-height: 1.3;
}

.app-notify__message {
    font-size: 13px;
    color: #475569;
    margin: 0;
    line-height: 1.45;
    word-break: break-word;
}

.app-notify__close {
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 2px;
    margin-left: 4px;
}

.app-notify__close:hover {
    color: #334155;
}

.app-notify__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: rgba(15, 23, 42, .08);
}

.app-notify__progress span {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation: app-notify-progress linear forwards;
}

.app-notify--success .app-notify__progress span {
    background: var(--app-notify-success);
}

.app-notify--error .app-notify__progress span {
    background: var(--app-notify-error);
}

.app-notify--info .app-notify__progress span {
    background: var(--app-notify-info);
}

.app-notify--warning .app-notify__progress span {
    background: var(--app-notify-warning);
}

@keyframes app-notify-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

@media (max-width: 480px) {
    .app-notify-stack {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
        width: auto;
    }
}