body{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background-color:#f4f7f6;color:#333;margin:0;padding:20px;display:flex;justify-content:center;align-items:flex-start;min-height:100vh;box-sizing:border-box;transition:background-color .3s ease,color .3s ease}body.dark-mode{background-color:#1a1a1a;color:#e0e0e0}#app{background-color:#fff;padding:30px;border-radius:12px;box-shadow:0 8px 25px #0000001a;width:100%;max-width:700px;text-align:center;position:relative;transition:background-color .3s ease,box-shadow .3s ease}body.dark-mode #app{background-color:#2c2c2c;box-shadow:0 8px 25px #ffffff0d}.dark-mode-button{position:absolute;top:15px;left:15px;background:none;border:1px solid #ccc;border-radius:50%;width:40px;height:40px;font-size:20px;cursor:pointer;display:flex;justify-content:center;align-items:center;transition:background-color .3s ease,border-color .3s ease,color .3s ease;color:#333}body.dark-mode .dark-mode-button{background-color:#404040;border-color:#555;color:#e0e0e0}.dark-mode-button:hover{background-color:#e0e0e0}body.dark-mode .dark-mode-button:hover{background-color:#505050}.logo-container{display:flex;align-items:center;justify-content:center;margin-bottom:25px;cursor:pointer;transition:transform .3s ease-in-out}.logo-favicon{width:40px;height:40px;margin-right:10px}h1{color:#2c3e50;margin-top:0;margin-bottom:0;font-size:2.2em}@keyframes wave{0%,to{transform:translateY(0) rotate(-1deg)}25%{transform:translateY(-3px) rotate(1deg)}50%{transform:translateY(0) rotate(-2deg)}75%{transform:translateY(-3px) rotate(1deg)}}@keyframes colorShift{0%,to{color:#ff6b35}33%{color:#f7931e}66%{color:#ffd23f}}.logo-container.logo-animate{animation:wave .8s ease-in-out infinite}h1.text-animate{animation:colorShift 1.5s linear infinite}.input-section{margin-bottom:30px;padding:20px;background:#f8f9fa;border-radius:10px;border:1px solid #e9ecef}.input-section h3{color:#495057;margin-bottom:15px;font-size:1.2rem}.url-input-container{display:flex;gap:10px;margin-bottom:15px}#url-input{flex:1;padding:12px 15px;border:2px solid #dee2e6;border-radius:8px;font-size:16px;transition:border-color .3s ease}#url-input:focus{outline:none;border-color:#ff6b35;box-shadow:0 0 0 3px #ff6b3533}.button{background:linear-gradient(45deg,#ff6b35,#f7931e);color:#fff;border:none;padding:12px 20px;border-radius:8px;cursor:pointer;font-size:16px;font-weight:600;transition:all .3s ease;box-shadow:0 4px 15px #ff6b354d}.button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #ff6b3566;background:linear-gradient(45deg,#e85a2b,#e8841a)}.customization-panel{margin:10px 5px;padding:20px;background:#f8f9fa;border-radius:10px;border:1px solid #e9ecef}.customization-panel h3{color:#495057;font-size:1.2rem}.customization-row{display:flex;gap:20px;margin-bottom:15px;align-items:center;flex-wrap:wrap}.form-group{display:flex;flex-direction:column;gap:5px}.form-group label{font-weight:600;color:#495057;font-size:14px}.form-group input,.form-group select{padding:8px 12px;border:2px solid #dee2e6;border-radius:6px;font-size:14px;transition:border-color .3s ease}.form-group input:focus,.form-group select:focus{outline:none;border-color:#ff6b35;box-shadow:0 0 0 3px #ff6b351a}.upload-area{border:2px dashed #f7931e;padding:30px;text-align:center;border-radius:10px;margin-bottom:20px;transition:all .3s ease;cursor:pointer;background:linear-gradient(135deg,#ff6b350d,#f7931e0d)}.upload-area:hover{background:linear-gradient(135deg,#ff6b351a,#f7931e1a);border-color:#ff6b35;transform:translateY(-2px)}.upload-area.dragover{background:linear-gradient(135deg,#ff6b3526,#f7931e26);border-color:#ff6b35;transform:scale(1.02)}.upload-text{color:#6c757d;font-size:16px;margin-bottom:10px}.upload-subtext{color:#adb5bd;font-size:14px}#file-input{display:none}.qr-result{text-align:center;margin-top:30px;padding:20px;background:#f8f9fa;border-radius:10px;border:1px solid #e9ecef;display:flex;flex-direction:column;align-items:center}.qr-code-container{display:flex;justify-content:center;align-items:center;padding:0;background:none;border-radius:10px;box-shadow:none;margin-bottom:20px;min-height:0}#qr-canvas{max-width:100%;height:auto;border-radius:8px}#download-btn{margin-top:15px;font-size:18px;padding:15px 30px}.preview-image{max-width:100px;max-height:100px;border-radius:8px;margin-top:10px;border:2px solid #dee2e6}.error-message{color:#dc3545;background-color:#f8d7da;border:1px solid #f5c6cb;padding:10px 15px;border-radius:6px;margin-bottom:15px;font-size:14px}.success-message{color:#155724;background-color:#d4edda;border:1px solid #c3e6cb;padding:10px 15px;border-radius:6px;margin-bottom:15px;font-size:14px}.loading{display:inline-block;width:20px;height:20px;border:3px solid #f3f3f3;border-top:3px solid #ff6b35;border-radius:50%;animation:spin 1s linear infinite;margin-right:10px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.hidden{display:none!important}.fade-in{animation:fadeIn .5s ease-in}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.generate-btn-loading{pointer-events:none;opacity:.7}.generate-btn-loading:before{content:"";display:inline-block;width:16px;height:16px;border:2px solid #ffffff;border-top:2px solid #ffd23f;border-radius:50%;animation:spin 1s linear infinite;margin-right:8px}#qr-preview-section{margin-top:25px;padding:20px;background:linear-gradient(135deg,#ffd23f1a,#f7931e1a);border-radius:10px;border:2px solid rgba(255,210,63,.3);text-align:center}#qr-preview-section h4{color:#333;margin-bottom:15px;font-size:1.1rem;background:linear-gradient(45deg,#ff6b35,#f7931e);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.qr-preview-container{display:flex;justify-content:center;align-items:center;padding:10px;background:#fff7e6;border-radius:10px;box-shadow:0 2px 8px #ff6b3514;border:2px solid #ffd23f;min-height:0}.qr-preview-section{margin:0 auto 24px;padding:16px 0 0;text-align:center}.qr-preview-section h4{color:#ff6b35;font-size:1.1rem;margin-bottom:10px;font-weight:700}.qr-preview-container{display:inline-block;padding:10px;background:#fff7e6;border-radius:10px;box-shadow:0 2px 8px #ff6b3514;border:2px solid #ffd23f}#qr-preview-canvas{max-width:120px;height:auto;border-radius:8px;background:#fff}.color-selector{display:flex;align-items:center;gap:10px;padding:8px;border:2px solid #dee2e6;border-radius:8px;background:#fff;transition:border-color .3s ease}.color-selector:hover{border-color:#ff6b35}.color-selector input[type=color]{width:40px;height:40px;border:none;border-radius:6px;cursor:pointer;background:none}.color-selector input[type=color]::-webkit-color-swatch-wrapper{padding:0;border:2px solid #dee2e6;border-radius:6px}.color-selector input[type=color]::-webkit-color-swatch{border:none;border-radius:4px}.color-display{width:30px;height:30px;border-radius:6px;border:2px solid #dee2e6;background:#000;transition:all .3s ease}.color-value{font-family:Courier New,monospace;font-size:12px;font-weight:600;color:#495057;background:#f8f9fa;padding:4px 8px;border-radius:4px;border:1px solid #e9ecef;min-width:60px;text-align:center}.size-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.size-btn{background:linear-gradient(135deg,#ff6b351a,#f7931e1a);border:2px solid #f7931e;color:#333;padding:12px 16px;border-radius:10px;cursor:pointer;font-size:14px;font-weight:600;text-align:center;transition:all .3s ease;min-width:80px;line-height:1.2}.size-btn span{display:block;font-size:11px;font-weight:400;color:#6c757d;margin-top:2px}.size-btn:hover{background:linear-gradient(135deg,#ff6b3533,#f7931e33);border-color:#ff6b35;transform:translateY(-2px);box-shadow:0 4px 12px #ff6b354d}.size-btn.active{background:linear-gradient(45deg,#ff6b35,#f7931e);border-color:#ff6b35;color:#fff;box-shadow:0 4px 15px #ff6b3566}.size-btn.active span{color:#ffffffe6}.size-btn.active:hover{background:linear-gradient(45deg,#e85a2b,#e8841a);transform:translateY(-2px);box-shadow:0 6px 20px #ff6b3580}.style-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.style-btn{background:linear-gradient(135deg,#ff6b3514,#f7931e14);border:2px solid #ffd23f;color:#333;padding:12px 18px;border-radius:10px;cursor:pointer;font-size:14px;font-weight:600;text-align:center;transition:all .3s ease;min-width:80px;line-height:1.2}.style-btn:hover{background:linear-gradient(135deg,#ff6b352e,#f7931e2e);border-color:#ff6b35;transform:translateY(-2px);box-shadow:0 4px 12px #ff6b352e}.style-btn.active{background:linear-gradient(45deg,#ff6b35,#ffd23f);border-color:#ff6b35;color:#fff;box-shadow:0 4px 15px #ff6b3540}.style-btn.active:hover{background:linear-gradient(45deg,#e85a2b,#ffd23f);transform:translateY(-2px);box-shadow:0 6px 20px #ff6b3559}.customization-dropdown{margin-bottom:30px;background:#fff7e6;border-radius:12px;border:2px solid #ffd23f;box-shadow:0 2px 10px #ff6b3512;padding:0}.customization-summary{font-size:1.2rem;font-weight:700;color:#ff6b35;padding:18px 30px;cursor:pointer;outline:none;background:linear-gradient(90deg,#ffd23f,#ff6b35);border-radius:12px;-webkit-user-select:none;user-select:none}.customization-dropdown[open] .customization-summary{border-bottom:2px solid #ffd23f}.customization-flex{display:flex}.customization-flex .customization-panel{flex:1 1 45%;max-width:45%;box-sizing:border-box}.image-panel{min-width:320px;max-width:100%;flex:2 1 320px}.customization-flex .customization-panel{flex:1 1 300px;max-width:100%;box-sizing:border-box}@media (max-width: 900px){.customization-flex{flex-direction:column;gap:18px;padding:18px 10px 10px;flex-wrap:wrap}.image-panel{max-width:100%}}@media (max-width: 480px){.form-group{min-width:100%}.button{width:100%;margin-top:10px}.url-input-container{gap:15px}.size-buttons{justify-content:center}.size-btn{min-width:70px;padding:10px 12px;font-size:12px}.color-selector{flex-direction:column;align-items:flex-start;gap:8px;padding:12px}.customization-row{flex-direction:column;align-items:stretch;gap:15px}}.clear-color-btn{background:#ffd23f;border:none;color:#ff6b35;font-size:18px;border-radius:50%;width:32px;height:32px;margin-left:6px;cursor:pointer;transition:background .2s,color .2s;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px #ff6b3514}.clear-color-btn:hover{background:#ff6b35;color:#fff}body.dark-mode h1{color:#e0e0e0}body.dark-mode .input-section,body.dark-mode .customization-panel,body.dark-mode .qr-result{background-color:#2a2a2a;border-color:#444;color:#e0e0e0}body.dark-mode .input-section h3,body.dark-mode .customization-panel h3,body.dark-mode .qr-result .button{color:#fff}body.dark-mode .customization-summary{background:linear-gradient(90deg,#c7a00f,#d65621);color:#fff;border-color:#c7a00f!important}body.dark-mode .customization-summary:hover{background:linear-gradient(90deg,#b38f00,#cc5600)}body.dark-mode .customization-dropdown[open] .customization-summary{border-bottom:2px solid #c7a00f}body.dark-mode .color-selector,body.dark-mode .size-btn,body.dark-mode .style-btn,body.dark-mode .remove-image-btn{background-color:#3a3a3a;border-color:#555;color:#e0e0e0}body.dark-mode .clear-color-btn{background-color:#505050;color:#ccc;border-color:#666}body.dark-mode .clear-color-btn:hover{background-color:#606060;color:#fff}body.dark-mode input,body.dark-mode select,body.dark-mode textarea{background-color:#444;color:#e0e0e0;border-color:#555}body.dark-mode #url-input,body.dark-mode .color-value{background-color:#555;color:#fff;border-color:#666}body.dark-mode h3,body.dark-mode h4,body.dark-mode label{color:#e0e0e0}body.dark-mode .qr-preview-section{background-color:#333;border-color:#444}.logo-container:hover{animation:wave .8s ease-in-out infinite}.logo-container:hover h1{animation:colorShift 1.5s linear infinite}.image-panel #image-preview{display:flex;align-items:center;gap:10px;margin-top:10px}.image-panel #image-preview img{max-width:100px;max-height:100px;border-radius:8px;border:2px solid #dee2e6;display:block}.remove-image-btn{background-color:#f7931e;color:#fff;border:none;font-size:14px;width:24px;height:24px;border-radius:50%;cursor:pointer;display:flex;justify-content:center;align-items:center;transition:background-color .2s ease}.remove-image-btn:hover{background-color:#e85a2b}
