:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;padding:0;min-width:320px;min-height:100vh;width:100%}#root{width:100%;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.app{min-height:100vh;width:100%;background:#fff;color:#333}.app-header{text-align:center;padding:2rem 0;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 2px 20px #0000001a;width:100%}.app-header h1{margin:0 0 1rem;font-size:2.5rem;color:#2c3e50;font-weight:700}.step-indicator{display:flex;justify-content:center;gap:2rem;margin-top:1rem}.step-indicator span{padding:.5rem 1rem;border-radius:25px;background:#0000001a;color:#666;font-weight:500;transition:all .3s ease}.step-indicator span.active{background:#007bff;color:#fff;box-shadow:0 4px 15px #007bff4d}.app-container{width:100%;max-width:1000px;margin:0 auto;padding:0 1rem;box-sizing:border-box}.app-main{padding:2rem 0;width:100%}.image-uploader{background:#fff;border-radius:15px;padding:2rem;box-shadow:0 10px 30px #0000001a;margin:0 auto;max-width:600px}.dropzone{border:3px dashed #ddd;border-radius:12px;padding:3rem;cursor:pointer;transition:all .3s ease;background:#fafafa}.dropzone:hover,.dropzone.active{border-color:#007bff;background:#f0f8ff}.dropzone.error{border-color:#dc3545;background:#fff5f5}.dropzone-content{text-align:center}.upload-icon{font-size:4rem;margin-bottom:1rem}.dropzone p{margin:.5rem 0;font-size:1.1rem}.size-limit{color:#666;font-size:.9rem}.error-message{color:#dc3545;font-weight:500;margin-top:1rem;padding:.75rem;background:#fff5f5;border-radius:8px;border-left:4px solid #dc3545}.image-cropper{background:#fff;border-radius:15px;padding:2rem;box-shadow:0 10px 30px #0000001a}.cropper-header{text-align:center;margin-bottom:2rem}.cropper-header h2{margin:0 0 .5rem;color:#2c3e50;font-size:1.8rem}.cropper-canvas{display:flex;justify-content:center;margin:2rem 0;padding:1rem;background:#f8f9fa;border-radius:12px}.cropper-controls{display:flex;justify-content:space-between;gap:1rem;margin-top:2rem}.image-processor{background:#fff;border-radius:15px;padding:2rem;box-shadow:0 10px 30px #0000001a}.processor-header{text-align:center;margin-bottom:2rem}.processor-header h2{margin:0 0 .5rem;color:#2c3e50;font-size:1.8rem}.processor-content{display:grid;grid-template-columns:1fr 350px;gap:1.5rem;align-items:start}.preview-section{position:relative;background:#f8f9fa;border-radius:12px;padding:1rem;display:flex;justify-content:center}.preview-canvas{width:100%;max-width:400px;height:auto;border-radius:8px;box-shadow:0 4px 15px #0000001a;aspect-ratio:1080 / 1350;object-fit:contain}.processing-overlay{position:absolute;inset:0;background:#ffffffe6;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:12px}.spinner{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #007bff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.controls-section{display:flex;flex-direction:column;gap:1.5rem}.control-group{display:flex;flex-direction:column;gap:.5rem}.control-group label{font-weight:600;color:#2c3e50}.control-group textarea,.control-group input{padding:.75rem;border:2px solid #e1e8ed;border-radius:8px;font-size:1rem;background-color:#fff;color:#333;transition:border-color .3s ease}.control-group textarea:focus,.control-group input:focus{outline:none;border-color:#007bff}.control-group small{color:#666;font-size:.85rem}.caption-generation-section{border-top:1px solid #e1e8ed;padding-top:1.5rem;margin-top:1.5rem}.caption-generation-section .control-group button{margin-top:.5rem}.generated-captions{margin-top:1rem}.generated-captions h3{margin:0 0 1rem;color:#2c3e50;font-size:1.1rem}.caption-item{background:#f8f9fa;border:1px solid #e1e8ed;border-radius:8px;padding:1rem;margin-bottom:.75rem;display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.caption-item p{margin:0;flex:1;line-height:1.5;color:#333}.btn-copy{background:#17a2b8;color:#fff;border:none;border-radius:6px;padding:.5rem 1rem;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .3s ease;white-space:nowrap}.btn-copy:hover{background:#138496;transform:translateY(-1px)}.action-buttons{display:flex;flex-direction:column;gap:1rem;margin-top:1rem}.btn-primary,.btn-secondary,.btn-remove{padding:.75rem 1.5rem;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;text-decoration:none;display:inline-block}.btn-primary{background:#007bff;color:#fff;flex:1}.btn-primary:hover{background:#0056b3;transform:translateY(-2px);box-shadow:0 4px 15px #007bff4d}.btn-primary:disabled{background:#ccc;cursor:not-allowed;transform:none;box-shadow:none}.btn-secondary{background:#6c757d;color:#fff}.btn-secondary:hover{background:#545b62;transform:translateY(-2px)}.btn-remove{background:#dc3545;color:#fff;font-size:.9rem;padding:.5rem 1rem}.btn-remove:hover{background:#c82333}.reset-section{text-align:center;padding:2rem}.reset-button{background:#28a745;color:#fff;padding:1rem 2rem;border:none;border-radius:8px;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s ease}.reset-button:hover{background:#218838;transform:translateY(-2px);box-shadow:0 4px 15px #28a7454d}@media (max-width: 768px){.processor-content{grid-template-columns:1fr;gap:1.5rem}.step-indicator{flex-direction:column;gap:.5rem}.cropper-controls,.action-buttons{flex-direction:column}.app-main{padding:1rem 0}.app-container{padding:0 .5rem}.app-header h1{font-size:2rem}}
