/* === Toast / 上传进度 === */

/* ---- Toast ---- */
.toast-container {
    position: fixed; top: 16px; right: 16px; z-index: 60;
    display: flex; flex-direction: column; gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px; border-radius: 10px;
    font-size: 13px; font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    will-change: transform, opacity;
    max-width: 340px;
}
.toast.hiding { animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards; }
.toast-success {
    background: rgba(240, 253, 244, 0.95);
    border: 1px solid #bbf7d0;
    color: #15803d;
}
.toast-error {
    background: rgba(254, 242, 242, 0.95);
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.toast-info {
    background: rgba(239, 246, 255, 0.95);
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}
.toast-warning {
    background: rgba(254, 252, 232, 0.95);
    border: 1px solid #fde68a;
    color: #a16207;
}

/* ---- 上传进度 ---- */
.upload-overlay {
    position: fixed; bottom: 16px; right: 16px; z-index: 50;
    animation: uploadSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}
.upload-overlay.hidden { display: none !important; }
.upload-progress-card {
    width: 320px; padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}
.upload-progress-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.upload-progress-header span:first-child { font-size: 13px; font-weight: 500; color: #111827; }
.upload-progress-header span:last-child { font-size: 12px; color: #6b7280; }
.upload-progress-track {
    height: 6px; background: #f3f4f6; border-radius: 3px; overflow: hidden;
}
.upload-progress-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, #4a9eff, #3a7eef);
    transition: width 0.3s;
}
.upload-progress-file { font-size: 12px; color: #9ca3af; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
