/* ============ 生成透明圆角图片 - 工具特有样式 ============ */
/* 通用样式（卡片、按钮、分隔线、info-box、empty-state、card-header-*、
   setting-item、setting-label 等）已由 common.css 统一提供 */

#rounded-container {
    margin-bottom: 15px;
}

/* ---- 上传区（common.css 未提供，沿用图片 EXIF 视觉） ---- */
.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 40px;
    border: 3px dashed #d1d5db;
    border-radius: 16px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-area:hover,
.upload-area.dragging {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.upload-icon {
    font-size: 48px;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.upload-hint {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.6;
}

/* ---- 已上传原图预览 ---- */
.preview-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ---- 滑块（common.css 未提供） ---- */
.range-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8b5cf6;
    cursor: pointer;
    transition: all 0.2s;
}

.range-slider::-webkit-slider-thumb:hover {
    background: #7c3aed;
    transform: scale(1.1);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8b5cf6;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.range-slider::-moz-range-thumb:hover {
    background: #7c3aed;
    transform: scale(1.1);
}

/* ---- 预览区 ---- */
.preview-area {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.result-image-container {
    background: repeating-conic-gradient(#e5e7eb 0% 25%, #f3f4f6 0% 50%) 50% / 16px 16px;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-image-container canvas {
    max-width: 100%;
    height: auto;
    display: block;
}


