/* PicStudio base styles - replace with your existing style.css */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f8f9fa; color: #333; }
header { background: #fff; padding: 15px 30px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
header a { color: #667eea; text-decoration: none; font-weight: 500; }
main { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
h1 { font-size: 2em; margin-bottom: 10px; color: #222; }
p { color: #666; line-height: 1.6; }
.upload-area { border: 2px dashed #ddd; border-radius: 12px; padding: 60px 20px; text-align: center; cursor: pointer; margin: 30px 0; transition: border-color .2s; }
.upload-area:hover, .upload-area.dragover { border-color: #667eea; background: #f0f4ff; }
.upload-area p { font-size: 1.1em; color: #999; }
.preview-area { display: none; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.preview-area.active { display: grid; }
.preview-area img { width: 100%; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.controls { display: none; margin: 20px 0; }
.controls.active { display: block; }
.controls label { display: block; margin-bottom: 8px; font-weight: 500; }
.controls input[type="range"] { width: 100%; margin: 10px 0; }
.controls input[type="number"], .controls select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 1em; margin: 5px 0; }
.controls button { padding: 10px 24px; background: #667eea; color: #fff; border: none; border-radius: 6px; font-size: 1em; cursor: pointer; margin-top: 10px; }
.controls button:hover { background: #5568d3; }
.download-section { display: none; text-align: center; margin: 30px 0; }
.download-section.active { display: block; }
.download-section button { padding: 12px 30px; background: #667eea; color: #fff; border: none; border-radius: 6px; font-size: 1.1em; cursor: pointer; }
.loading-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.9); z-index: 9999; align-items: center; justify-content: center; flex-direction: column; }
.loading-overlay.active { display: flex; }
.spinner { width: 50px; height: 50px; border: 4px solid #eee; border-top-color: #667eea; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 768px) { .preview-area { grid-template-columns: 1fr; } }
