﻿

.yiben-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    min-width: 320px;
    max-width: 400px;
    z-index: 99999;
    animation: yiben-slide-in 0.3s ease-out forwards;
}

@@keyframes yiben-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@@keyframes yiben-slide-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.yiben-notification.hiding {
    animation: yiben-slide-out 0.3s ease-in forwards;
}

.yiben-notification-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.yiben-notification-body {
    flex: 1;
}

.yiben-notification-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.yiben-notification-message {
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.yiben-notification-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.125rem;
    padding: 0;
    margin-left: 1rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

    .yiben-notification-close:hover {
        color: #64748b;
    }

.yiben-icon-success {
    color: #22c55e;
}

.yiben-icon-error {
    color: #ef4444;
}

.yiben-icon-warning {
    color: #f59e0b;
}

.yiben-icon-info {
    color: #3b82f6;
}
