:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;color:#213547;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}#root{width:100%;min-height:100vh}.app{min-height:100vh;padding:2rem;background:#f5f7fa}.app-header{text-align:center;color:#1a1a1a;margin-bottom:2rem}.app-header h1{font-size:2.5rem;margin:0 0 .5rem;font-weight:700;color:#1a1a1a}.app-header p{font-size:1.1rem;color:#666;margin:0}.language-selector-container{display:flex;justify-content:flex-end;margin-bottom:1rem}.language-selector{display:flex;align-items:center}.language-select{padding:.5rem 2.5rem .5rem .75rem;border:1.5px solid #d1d5db;border-radius:8px;font-size:.9rem;font-weight:500;background:#fff;color:#374151;cursor:pointer;transition:border-color .2s,box-shadow .2s;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .75rem center;background-size:12px}.language-select:hover{border-color:#667eea}.language-select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.privacy-warning{display:flex;align-items:center;gap:.5rem;margin-top:1rem;padding:.75rem 1rem;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;color:#1e40af;font-size:.9rem;max-width:600px;margin-left:auto;margin-right:auto}.privacy-warning svg{flex-shrink:0;color:#3b82f6}.app-container{display:grid;grid-template-columns:380px 1fr;gap:2rem;max-width:1400px;margin:0 auto}.controls-panel{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 4px 16px #00000014,0 1px 3px #0000000d;height:fit-content;max-height:calc(100vh - 200px);overflow-y:auto;border:1px solid #e5e7eb;transition:box-shadow .3s ease}.controls-panel:hover{box-shadow:0 6px 20px #0000001a,0 2px 6px #00000014}.upload-section,.crop-section{margin-bottom:2rem;padding-bottom:2rem;border-bottom:1px solid #e5e7eb}.upload-section h2,.crop-section h2,.watermark-controls h2{margin:0 0 1rem;color:#1a1a1a;font-size:1.2rem;font-weight:600}.file-input{display:none}.upload-button{width:100%;padding:.875rem 1.25rem;background:#667eea;color:#fff;border:none;border-radius:10px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .25s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 6px #667eea33;position:relative;overflow:hidden}.upload-button:before{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background:#fff3;transform:translate(-50%,-50%);transition:width .6s,height .6s}.upload-button:hover:before{width:300px;height:300px}.upload-button:hover{background:#5568d3;box-shadow:0 4px 12px #667eea66;transform:translateY(-1px)}.upload-button:active{background:#4a5bc4;transform:translateY(0);box-shadow:0 2px 6px #667eea4d}.button-group{display:flex;gap:.5rem;flex-wrap:wrap}.crop-button,.apply-crop-button,.eraser-button,.watermark-mode-button{flex:1;min-width:120px;padding:.75rem 1rem;border:none;border-radius:10px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .25s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 6px #0000001a}.crop-button{background:#f5576c;color:#fff}.crop-button:hover{background:#e4485c;box-shadow:0 4px 12px #f5576c66;transform:translateY(-1px)}.crop-button.active{background:#d93a4f;box-shadow:0 0 0 3px #f5576c40,0 4px 12px #f5576c4d;transform:translateY(0)}.apply-crop-button{background:#10b981;color:#fff}.apply-crop-button:hover{background:#059669;box-shadow:0 4px 12px #10b98166;transform:translateY(-1px)}.eraser-button{background:#f59e0b;color:#fff}.eraser-button:hover{background:#d97706;box-shadow:0 4px 12px #f59e0b66;transform:translateY(-1px)}.eraser-button.active{background:#b45309;box-shadow:0 0 0 2px #f59e0b33}.watermark-mode-button{background:#667eea;color:#fff}.watermark-mode-button:hover{background:#5568d3;box-shadow:0 4px 12px #667eea66;transform:translateY(-1px)}.watermark-mode-button.active{background:#5568d3;box-shadow:0 0 0 3px #667eea40,0 4px 12px #667eea4d;transform:translateY(0)}.undo-button,.redo-button{flex:1;min-width:100px;padding:.6rem 1rem;border:1.5px solid #d1d5db;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:background-color .2s,border-color .2s,color .2s;background:#fff;color:#374151}.undo-button:hover:not(:disabled),.redo-button:hover:not(:disabled){background:#f9fafb;border-color:#667eea;color:#667eea}.undo-button:disabled,.redo-button:disabled{opacity:.4;cursor:not-allowed;border-color:#e5e7eb;color:#9ca3af;background:#f9fafb}.crop-hint{margin-top:.5rem;font-size:.85rem;color:#6b7280;margin:0}.watermark-controls{display:flex;flex-direction:column;gap:1.5rem}.control-group{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.75rem;padding-bottom:1.5rem;border-bottom:1px solid #f3f4f6}.control-group:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.control-group label{font-weight:600;color:#1f2937;font-size:.95rem;letter-spacing:-.01em;margin-bottom:.625rem;display:block}.hint-text{font-size:.8rem;color:#6b7280;margin:0;line-height:1.4}.position-display{padding:.5rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;font-size:.9rem;color:#374151;text-align:center}.text-input{padding:.75rem 1rem;border:2px solid #e5e7eb;border-radius:10px;font-size:.95rem;transition:all .2s cubic-bezier(.4,0,.2,1);font-family:inherit;background:#fff;color:#1f2937;width:100%}.text-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 4px #667eea1a;background:#fafbfc}.text-input:hover:not(:focus){border-color:#d1d5db;background:#fafbfc}.textarea{resize:vertical;min-height:80px;line-height:1.5}.checkbox-group{display:flex;gap:1.5rem;flex-wrap:wrap}.checkbox-label{display:flex;align-items:center;gap:.5rem;cursor:pointer;font-weight:400!important;color:#374151!important}.checkbox-label input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:#667eea}.checkbox-label span{-webkit-user-select:none;user-select:none}.slider{width:100%;height:6px;border-radius:3px;background:#e5e7eb;outline:none;-webkit-appearance:none;appearance:none}.slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:#667eea;cursor:pointer;transition:background-color .2s,transform .2s;border:2px solid white;box-shadow:0 1px 3px #0003}.slider::-webkit-slider-thumb:hover{background:#5568d3;transform:scale(1.1)}.slider::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#667eea;cursor:pointer;border:2px solid white;box-shadow:0 1px 3px #0003;transition:background-color .2s,transform .2s}.slider::-moz-range-thumb:hover{background:#5568d3;transform:scale(1.1)}.color-palette{display:grid;grid-template-columns:repeat(8,1fr);gap:.6rem;margin-top:.75rem;padding:.5rem 0}.color-swatch{width:100%;aspect-ratio:1;border:3px solid #e5e7eb;border-radius:50%;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);padding:0;min-height:32px;position:relative;box-shadow:0 1px 3px #0000001a}.color-swatch:hover{transform:scale(1.15);border-color:#667eea;box-shadow:0 4px 12px #667eea4d;z-index:2}.color-swatch.selected{border-color:#667eea;border-width:4px;box-shadow:0 0 0 3px #667eea40,0 4px 12px #667eea66;transform:scale(1.1);z-index:2}.download-button{width:100%;padding:.875rem 1.25rem;background:#10b981;color:#fff;border:none;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .25s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 6px #10b98133;margin-top:.5rem}.download-button:hover:not(:disabled){background:#059669;box-shadow:0 4px 12px #10b98166;transform:translateY(-1px)}.download-button:active:not(:disabled){background:#047857;transform:translateY(0);box-shadow:0 2px 6px #10b9814d}.download-button:disabled{opacity:.5;cursor:not-allowed;background:#d1d5db}.canvas-section{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 4px 16px #00000014,0 1px 3px #0000000d;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;border:1px solid #e5e7eb;transition:box-shadow .3s ease}.canvas-section:hover{box-shadow:0 6px 20px #0000001a,0 2px 6px #00000014}.canvas-container{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;transition:opacity .2s}.canvas-container.drag-over{opacity:.7}.drag-overlay{position:absolute;inset:0;background:#667eea1a;border:2px dashed #667eea;border-radius:8px;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:10}.drag-overlay p{font-size:1.2rem;color:#667eea;font-weight:600;margin:0}.preview-canvas{max-width:100%;height:auto;box-shadow:0 2px 8px #0000001a;-webkit-user-select:none;user-select:none;border-radius:8px}.canvas-hint{margin-top:1rem;font-size:.9rem;color:#6b7280;text-align:center}.placeholder{text-align:center;color:#9ca3af;padding:3rem 2rem;border:2px dashed #d1d5db;border-radius:12px;transition:border-color .2s,background-color .2s}.placeholder.drag-over{border-color:#667eea;background-color:#eff6ff}.placeholder p{font-size:1.2rem;margin:.5rem 0}.placeholder-hint{font-size:.9rem!important;opacity:.7}.placeholder-drag-hint{font-size:1rem!important;color:#667eea;font-weight:500;margin-top:1rem!important}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal-content{background:#fff;border-radius:12px;padding:2rem;max-width:400px;width:100%;box-shadow:0 10px 30px #0000004d}.modal-content h3{margin:0 0 1rem;color:#1a1a1a;font-size:1.5rem;font-weight:600}.modal-content p{margin:0 0 1.5rem;color:#374151;line-height:1.6}.modal-buttons{display:flex;gap:.75rem;justify-content:flex-end}.modal-button-confirm,.modal-button-cancel{padding:.75rem 1.5rem;border:none;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;transition:background-color .2s,box-shadow .2s}.modal-button-confirm{background:#f5576c;color:#fff}.modal-button-confirm:hover{background:#e4485c;box-shadow:0 2px 8px #f5576c4d}.modal-button-cancel{background:#f3f4f6;color:#374151}.modal-button-cancel:hover{background:#e5e7eb;box-shadow:0 2px 8px #0000001a}@media(max-width:1024px){.app-container{grid-template-columns:1fr}.controls-panel{max-height:none}}@media(max-width:768px){.app{padding:1rem}.app-header h1{font-size:2rem}.controls-panel,.canvas-section{padding:1rem}.button-group{flex-direction:column}.crop-button,.apply-crop-button{width:100%}.color-palette{grid-template-columns:repeat(6,1fr)}}
