:root{--primary-color: #646cff;--bg-color: #ffffff;--text-color: #000000;--card-bg: #ffffff;--accent-gradient: linear-gradient(135deg, #646cff 0%, #9f44d3 100%)}html,body,#root{margin:0;padding:0;width:100%;height:100%;background:#fff;overflow:hidden}.flip-wrap{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#fff}.app-header{position:fixed;top:0;left:0;width:100%;padding:1rem;display:flex;justify-content:space-between;align-items:center;z-index:100;pointer-events:none}.app-header h1{margin:0;font-size:1.2rem;color:#666;pointer-events:auto;background:#fffc;padding:6px 12px;border-radius:6px;font-family:Georgia,serif;font-weight:400;letter-spacing:1px;text-transform:uppercase;border:1px solid rgba(0,0,0,.1)}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:2000}.modal-content{background:#fff;padding:2rem;border-radius:12px;text-align:center;max-width:90%;width:400px;box-shadow:0 10px 25px #0003}.url-box{background:#f0f0f0;padding:1rem;border-radius:6px;margin:1rem 0;word-break:break-all}.close-modal{background:#333;color:#fff;border:none;padding:.5rem 1.5rem;border-radius:4px;cursor:pointer}.nav-button{position:fixed;top:50%;transform:translateY(-50%);background:#fffc;border:1px solid #ddd;width:50px;height:50px;border-radius:50%;font-size:2rem;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1000;transition:all .2s;color:#333;box-shadow:0 2px 10px #0000001a}.nav-button:hover{background:#fff;box-shadow:0 4px 15px #0003}.prev-button{left:20px}.next-button{right:20px}.header-actions{display:flex;gap:1rem;pointer-events:auto;margin-right:2rem}.publish-button{background:linear-gradient(135deg,#646cff,#9f44d3);color:#fff;padding:.8rem 1.5rem;border-radius:50px;cursor:pointer;border:none;font-weight:700;box-shadow:0 4px 10px #646cff66;transition:all .2s ease}.publish-button:hover{transform:translateY(-2px);box-shadow:0 6px 15px #646cff99}.reset-button{background:#333;color:#fff;padding:.8rem 1.5rem;border-radius:50px;cursor:pointer;border:none;font-weight:700;box-shadow:0 4px 10px #0003;transition:all .2s ease}.reset-button:hover{background:#444;transform:translateY(-2px);box-shadow:0 6px 15px #0000004d}.zoom-controls{display:flex;align-items:center;gap:.5rem;background:#ffffffe6;padding:4px;border-radius:50px;box-shadow:0 2px 8px #0000001a}.zoom-button{width:40px;height:40px;border-radius:50%;border:none;background:#fff;color:#333;font-size:1.5rem;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;box-shadow:0 2px 5px #0000001a}.zoom-button:hover:not(:disabled){background:#f0f0f0;transform:scale(1.1)}.zoom-button:disabled{opacity:.5;cursor:not-allowed}.zoom-level{font-size:.9rem;font-weight:600;color:#333;min-width:45px;text-align:center}.app-main{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.upload-wrapper{width:100%;height:100%;display:flex;justify-content:center;align-items:center;padding-top:0}.upload-container{width:100%;max-width:500px;padding:3rem;border:2px dashed #ccc;border-radius:20px;background:#f9f9f9;cursor:pointer;text-align:center}.upload-container:hover{border-color:#646cff;background:#f0f0ff}.upload-content{display:flex;flex-direction:column;align-items:center;text-align:center}.upload-icon{font-size:4rem;margin-bottom:1rem}.file-input{display:none}.upload-button{margin-top:1.5rem;padding:.8rem 2rem;background:#646cff;color:#fff;border-radius:50px;font-weight:600;cursor:pointer;display:inline-block;border:none}.upload-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #646cff99}.flipbook-container{display:flex;justify-content:center;align-items:center}.flip-book{box-shadow:none!important;background:#fff}.page{background-color:#fff;padding:0;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.page-content{width:100%;height:100%;margin:0;padding:0}.page-content img{width:100%;height:100%;object-fit:fill;display:block;margin:0;padding:0;border:none;background:#fff}.page-footer{display:none}.loading{display:flex;flex-direction:column;align-items:center;gap:1rem;color:#333}.spinner{width:50px;height:50px;border:3px solid #eee;border-radius:50%;border-top-color:#646cff;animation:spin 1s ease-in-out infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-message{margin-top:1rem;color:#f44;background:#ff44441a;padding:.5rem 1rem;border-radius:8px}@media(max-width:768px){.app-header{padding:.5rem;flex-direction:row;justify-content:center;background:linear-gradient(to bottom,#ffffffe6,#fff0);pointer-events:none}.app-header h1{font-size:1rem;padding:4px 8px;background:#fffc;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);pointer-events:auto}.header-actions{position:fixed;bottom:20px;left:0;right:0;margin-right:0;display:flex;justify-content:center;gap:1rem;z-index:1000;pointer-events:auto}.publish-button,.reset-button{padding:.6rem 1.2rem;font-size:.9rem;box-shadow:0 4px 12px #0003}.nav-button{width:40px;height:40px;font-size:1.5rem;background:#fffc;z-index:900}.prev-button{left:5px}.next-button{right:5px}.upload-container{padding:1.5rem;margin:1rem}.upload-icon{font-size:3rem}.flip-wrap{padding:0;align-items:flex-start;overflow:auto;height:100%;display:flex;flex-direction:row;justify-content:center}.flip-wrap:has(.flipbook-container[style*=height]){justify-content:safe center}}
