/* Superbed 前端样式 */

/* 上传进度遮罩 */
#superbed-upload-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.superbed-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: superbed-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes superbed-spin {
    to { transform: rotate(360deg); }
}

.superbed-upload-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.superbed-upload-percent {
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* 通知提示 */
.superbed-notice {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99998;
    max-width: 380px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    animation: superbed-slide-in 0.3s ease;
}

@keyframes superbed-slide-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.superbed-notice-success { background: #ecfdf5; color: #065f46; border-left: 4px solid #10b981; }
.superbed-notice-error   { background: #fef2f2; color: #991b1b; border-left: 4px solid #ef4444; }
.superbed-notice-info    { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }
.superbed-notice a       { color: inherit; text-decoration: underline; }

/* 拖拽高亮 */
.superbed-dragover {
    outline: 3px dashed #3b82f6 !important;
    outline-offset: 2px;
    background: rgba(59, 130, 246, 0.06) !important;
}

/* 工具栏按钮 */
.superbed-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    vertical-align: middle;
}

.superbed-upload-btn:hover {
    background: #f0f9ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.superbed-upload-btn svg {
    flex-shrink: 0;
}
