/* public/css/toast.css */

.toast-container {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 200px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #1d1d1f; 
    font-size: 15px;
    font-weight: 500;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success, .toast.error, .toast.info, .toast.loading { 
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* 图标基础样式 */
.toast-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: #34c759; } /* Apple Green */
.toast.error .toast-icon { color: #ff3b30; }   /* Apple Red */
.toast.info .toast-icon { color: #007aff; }    /* Apple Blue */

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 122, 255, 0.2);
    border-top-color: #007aff; /* Apple Blue */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}