/* Custom Styles */

/* 隐藏 color input 的默认外观 */
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

/* 预览区域滚动条美化 */
#preview-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#preview-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#preview-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#preview-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 确保 Canvas 在容器中居中且不超出容器宽度 */
canvas {
    max-width: 100%;
    object-fit: contain;
}
