.alert-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 350px;
}

.alert {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 16px 18px;
    border-radius: 16px;
    color: #fff;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.08);

    animation: slideIn 0.45s ease;
    transition: 0.3s ease;
}

.alert.success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.alert.error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.alert-icon {
    font-size: 22px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.alert-message {
    font-size: 14px;
    line-height: 1.4;
}

.close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

.progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
    animation: progress 5s linear forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(120%);
    }
}

@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}
