.app-notify-container {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9900;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
    pointer-events: none;
    width: min(500px, calc(100vw - 2rem));
}

.app-notify {
    pointer-events: auto;
    background: var(--t-notify-bg, #fff);
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(15, 23, 42, 0.14), 0 1px 6px rgba(15, 23, 42, 0.06);
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--t-notify-border, rgba(0, 0, 0, 0.06));
    border-right: 4px solid transparent;
    animation: notifySlideIn 0.3s cubic-bezier(0.34, 1.38, 0.64, 1) both;
}

.app-notify.is-leaving {
    animation: notifySlideOut 0.22s ease-in both;
}

.app-notify-success {
    border-right-color: #16a34a;
    background: #fafffe;
}

.app-notify-danger {
    border-right-color: #dc2626;
    background: #fffafa;
}

.app-notify-warning {
    border-right-color: #d97706;
    background: #fffef5;
}

.app-notify-info {
    border-right-color: #2563eb;
    background: #f8faff;
}

.app-notify-primary {
    border-right-color: var(--primary);
    background: #f7f9ff;
}

.app-notify-icon {
    flex-shrink: 0;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
}

.app-notify-success .app-notify-icon {
    background: #dcfce7;
    color: #16a34a;
}

.app-notify-danger .app-notify-icon {
    background: #fee2e2;
    color: #dc2626;
}

.app-notify-warning .app-notify-icon {
    background: #fef3c7;
    color: #d97706;
}

.app-notify-info .app-notify-icon {
    background: #dbeafe;
    color: #2563eb;
}

.app-notify-primary .app-notify-icon {
    background: #e0e7ff;
    color: var(--primary);
}

.app-notify-text {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.55;
}

.app-notify-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1;
}

.app-notify-close:hover {
    background: rgba(0, 0, 0, 0.07);
    color: #475569;
}

.app-notify-bar {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 3px;
    width: 100%;
    border-radius: 0 0 14px 0;
    animation: notifyBarShrink 5s linear forwards;
    animation-delay: 0.15s;
}

.app-notify-success .app-notify-bar {
    background: rgba(22, 163, 74, 0.45);
}

.app-notify-danger .app-notify-bar {
    background: rgba(220, 38, 38, 0.45);
}

.app-notify-warning .app-notify-bar {
    background: rgba(217, 119, 6, 0.45);
}

.app-notify-info .app-notify-bar {
    background: rgba(37, 99, 235, 0.45);
}

.app-notify-primary .app-notify-bar {
    background: rgba(37, 99, 235, 0.35);
}

.app-notify-container-login {
    top: 1rem;
    width: min(420px, calc(100vw - 1.5rem));
    z-index: 10040;
}

.users-editor-notify-container {
    top: 5.25rem;
    z-index: 9800;
}

.app-notify-container-login .app-notify {
    border-radius: 18px;
    border-right-width: 5px;
    padding: 1rem 1rem 1rem 1.1rem;
    box-shadow: 0 24px 48px rgba(2, 8, 23, 0.34);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.84));
    border-color: rgba(148, 163, 184, 0.18);
}

.app-notify-container-login .app-notify-danger {
    border-right-color: #ef4444;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.9));
}

.app-notify-container-login .app-notify-icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.92rem;
    background: rgba(254, 226, 226, 0.14);
    color: #fca5a5;
}

.app-notify-container-login .app-notify-text {
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.7;
}

.app-notify-container-login .app-notify-close {
    color: rgba(226, 232, 240, 0.82);
}

.app-notify-container-login .app-notify-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.app-notify-container-login .app-notify-bar {
    background: rgba(248, 113, 113, 0.75);
}

@media (max-width: 575px) {
    .app-notify-container {
        top: 0.75rem;
        width: calc(100vw - 1.5rem);
    }
}
