@import"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap";*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}body{margin:0;padding:0;-webkit-overflow-scrolling:touch;overscroll-behavior:none}.app{font-family:Roboto,sans-serif;display:flex;flex-direction:column;align-items:center;background-color:#121212;color:#e0e0e0;margin:0;padding:2rem;min-height:100vh;box-sizing:border-box;min-height:100dvh}.header{text-align:center;margin-bottom:2rem}.title{font-size:clamp(2rem,5vw,3rem);font-weight:700;background:linear-gradient(90deg,#fde047,#f97316,#ef4444);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:.2rem;line-height:1.2}.subtitle{text-align:center;color:#888;margin-bottom:2rem;font-size:clamp(.9rem,2.5vw,1rem);line-height:1.4}.main-container{display:flex;gap:2rem;width:100%;max-width:1400px;margin:0 auto}.controls-container{flex:1;background:#1e1e1e;padding:2rem;border-radius:16px;box-shadow:0 8px 32px #0000005e;border:1px solid rgba(255,255,255,.1);max-width:600px}.result-container{flex:1;background:#1e1e1e;padding:2rem;border-radius:16px;box-shadow:0 8px 32px #0000005e;border:1px solid rgba(255,255,255,.1);min-height:600px;display:flex;flex-direction:column}h2{color:#e0e0e0;margin-top:0;margin-bottom:1rem;font-size:1.25rem;font-weight:500}.upload-section,.prompt-section,.api-key-section{margin-bottom:2rem}.upload-area{border:2px dashed #444;border-radius:12px;padding:clamp(1rem,4vw,2rem);text-align:center;transition:all .3s ease;background:#252525;cursor:pointer;-webkit-tap-highlight-color:rgba(249,115,22,.2);touch-action:manipulation;min-height:120px;display:flex;flex-direction:column;justify-content:center;align-items:center}.upload-area:hover,.upload-area.drag-over{border-color:#f97316;background:#2a2a2a}@media (hover: none){.upload-area:active{border-color:#f97316;background:#2a2a2a;transform:scale(.98)}}.upload-area p{margin:0 0 .5rem;font-size:1.1rem}.upload-area span{color:#888;font-size:.9rem}.thumbnails-container{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:clamp(.5rem,2vw,1rem);margin-top:1rem}.thumbnail-wrapper{position:relative;padding-top:100%;border-radius:8px;overflow:hidden;background:#252525}.thumbnail-wrapper img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}.thumbnail-wrapper .remove-btn{position:absolute;top:5px;right:5px;background:#000000b3;border:none;color:#fff;width:clamp(24px,5vw,28px);height:clamp(24px,5vw,28px);border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:clamp(12px,3vw,16px);padding:0;line-height:1;-webkit-tap-highlight-color:rgba(239,68,68,.2);touch-action:manipulation;transition:all .2s ease}.thumbnail-wrapper .remove-btn:hover{background:#ef4444cc;transform:scale(1.1)}@media (hover: none){.thumbnail-wrapper .remove-btn:active{background:#ef4444cc;transform:scale(.9)}}textarea,input[type=password]{width:100%;padding:clamp(12px,3vw,16px);border-radius:8px;border:1px solid #444;background-color:#252525;color:#e0e0e0;resize:vertical;min-height:clamp(100px,20vw,120px);box-sizing:border-box;margin-bottom:.5rem;font-family:inherit;font-size:clamp(14px,3.5vw,16px);line-height:1.5;-webkit-appearance:none;-webkit-tap-highlight-color:transparent;transition:border-color .2s ease,box-shadow .2s ease}textarea:focus,input[type=password]:focus{outline:none;border-color:#f97316;box-shadow:0 0 0 2px #f9731633}input[type=password]{min-height:auto}#generate-btn{background:linear-gradient(90deg,#f97316,#ef4444);color:#fff;padding:clamp(16px,4vw,20px) clamp(20px,5vw,32px);border:none;border-radius:12px;cursor:pointer;font-size:clamp(16px,4vw,18px);font-weight:500;width:100%;position:relative;display:flex;align-items:center;justify-content:center;gap:.5rem;transition:transform .2s ease,opacity .2s ease;-webkit-tap-highlight-color:transparent;touch-action:manipulation;min-height:48px}#generate-btn:not(:disabled):hover{transform:translateY(-2px)}@media (hover: none){#generate-btn:not(:disabled):active{transform:scale(.95);transition:transform .1s ease}}#generate-btn:disabled{opacity:.7;cursor:not-allowed}.spinner{width:20px;height:20px;border:2px solid transparent;border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.result-image-container{flex:1;background-color:#252525;border-radius:8px;padding:1rem;display:flex;justify-content:center;align-items:center;min-height:400px}.result-image-container img{max-width:100%;max-height:100%;border-radius:8px}.result-image-container p{color:#888;text-align:center}@media (max-width: 1024px){.main-container{flex-direction:column;gap:1.5rem}.controls-container{max-width:none}.app{padding:1.5rem}.header{margin-bottom:1.5rem}}@media (max-width: 768px){.app{padding:1rem}.main-container{gap:1rem}.controls-container,.result-container{padding:1.5rem;border-radius:12px}.header{margin-bottom:1rem}.title{margin-bottom:.5rem}.subtitle,.upload-section,.prompt-section,.api-key-section{margin-bottom:1.5rem}.result-image-container{min-height:300px;padding:.75rem}}@media (max-width: 480px){.app{padding:.75rem}.controls-container,.result-container{padding:1rem;border-radius:8px}.upload-section,.prompt-section,.api-key-section{margin-bottom:1rem}h2{font-size:1.1rem;margin-bottom:.75rem}.thumbnails-container{grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:.5rem}.result-image-container{min-height:250px;padding:.5rem}}@media (max-width: 896px) and (orientation: landscape){.app{padding:.5rem}.main-container{flex-direction:row;gap:1rem}.title{font-size:2rem;margin-bottom:.2rem}.subtitle,.header{margin-bottom:1rem}.controls-container,.result-container{padding:1rem}.result-image-container{min-height:200px}}@media (max-width: 320px){.upload-area{min-height:100px;padding:.75rem}.upload-area p{font-size:1rem}.upload-area span{font-size:.8rem}.thumbnails-container{grid-template-columns:repeat(auto-fill,minmax(60px,1fr))}}@media (max-width: 768px){.app{transform:translateZ(0);-webkit-overflow-scrolling:touch}.controls-container,.result-container{will-change:transform}}@media (-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){.upload-area{border-width:1.5px}}
