/* 二维码图片合并工具样式 */

/* 预览画布样式 */
.preview-container {
    position: relative;
    display: inline-block;
}

.preview-canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 水印保护 */
.watermark-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    color: #666;
    pointer-events: none;
    z-index: 50;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 加载动画 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 模式标签激活状态 */
.mode-tab.active {
    background: #007bff !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

/* 按钮激活状态 */
.btn.active {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

/* 上传预览 */
.uploaded-preview {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.uploaded-preview img {
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

/* 文件信息 */
.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* 错误和成功消息 */
.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
}

/* 进度指示器 */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    width: 0%;
    transition: width 0.3s ease;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 防止右键和拖拽 */
.preview-result img,
.preview-result canvas {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -ms-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.preview-result {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .mode-tabs {
        flex-direction: column;
        gap: 6px;
    }
    
    .mode-tab {
        padding: 10px;
        font-size: 13px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .upload-zone {
        padding: 20px;
    }
    
    .controls-section {
        margin-bottom: 15px;
    }
    
    .slider-control {
        margin-bottom: 12px;
    }
}
