body{margin:0;min-width:320px;min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{width:100%;min-height:100vh}*{margin:0;padding:0;box-sizing:border-box}.app{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:flex-start;justify-content:center;padding:20px}.container{background:#fff;border-radius:20px;padding:40px;box-shadow:0 20px 60px #0000004d;max-width:1200px;width:100%}h1{color:#333;font-size:2.5em;margin-bottom:10px;text-align:center}.description{color:#666;text-align:center;margin-bottom:30px;font-size:1.1em}.upload-section{margin-bottom:25px}.file-input{display:none}.file-label{display:block;padding:20px;border:3px dashed #667eea;border-radius:10px;text-align:center;cursor:pointer;color:#667eea;font-size:1.1em;transition:all .3s ease;background:#f8f9ff}.file-label:hover{background:#667eea;color:#fff;border-color:#764ba2}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;background:#f8f9ff;border-radius:10px;margin-bottom:20px}.loading-spinner{width:50px;height:50px;border:4px solid #e0e0e0;border-top:4px solid #667eea;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:20px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-text{color:#666;font-size:1.1em;margin-bottom:15px;font-weight:500}.loading-progress-bar{width:100%;max-width:400px;height:10px;background:#e0e0e0;border-radius:5px;overflow:hidden}.loading-progress-fill{height:100%;background:linear-gradient(90deg,#667eea,#764ba2);transition:width .3s ease;border-radius:5px}.select-controls{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding:15px;background:#f8f9ff;border-radius:10px;flex-wrap:wrap;gap:15px}.select-left{display:flex;align-items:center;gap:15px}.select-all-button{padding:10px 20px;background:#667eea;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:1em;transition:all .3s ease}.select-all-button:hover{background:#764ba2;transform:translateY(-2px)}.selected-count{color:#666;font-size:1em;font-weight:500}.pages-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:20px;margin-bottom:30px;max-height:600px;overflow-y:auto;padding:10px}.page-item{border:3px solid #e0e0e0;border-radius:10px;padding:10px;cursor:pointer;transition:all .3s ease;background:#fff;position:relative}.page-item:hover{border-color:#667eea;transform:translateY(-3px);box-shadow:0 5px 15px #0000001a}.page-item.selected{border-color:#667eea;background:#f8f9ff;box-shadow:0 5px 15px #667eea33}.page-checkbox{margin-bottom:10px}.page-checkbox input[type=checkbox]{width:20px;height:20px;cursor:pointer;accent-color:#667eea}.page-preview{display:flex;justify-content:center;align-items:center;margin-bottom:10px;background:#f5f5f5;border-radius:5px;padding:5px;position:relative}.page-preview img{max-width:100%;height:auto;display:block}.zoom-button{position:absolute;top:10px;right:10px;width:20px;height:20px;padding:2px;background:#667eeae6;color:#fff;border:none;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s ease;z-index:20}.zoom-button:hover{background:#764ba2f2;transform:scale(1.1)}.zoom-button:active{transform:scale(.95)}.zoom-button svg{width:16px;height:16px}.split-line{position:absolute;cursor:ew-resize;transition:background .3s ease;z-index:10}.split-line:before{content:"";position:absolute;z-index:-1}.split-line.horizontal{width:100%;height:2px;border-top:2px dashed #667eea;cursor:ns-resize;left:0;transform:translateY(-50%)}.split-line.horizontal:before{width:100%;height:6px;top:-3px;left:0}.split-line.vertical{width:2px;height:100%;border-left:2px dashed #667eea;cursor:ew-resize;top:0;transform:translate(-50%)}.split-line.vertical:before{width:6px;height:100%;top:0;left:-3px}.split-line.dragging,.split-line:hover{border-color:#764ba2}.page-info{display:flex;flex-direction:column;gap:5px;text-align:center}.page-number{font-weight:700;color:#333;font-size:1em}.page-size{color:#999;font-size:.85em}.split-direction-controls{display:flex;gap:10px;justify-content:center}.direction-button{padding:10px 20px;background:#667eea;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:.95em;transition:all .3s ease}.direction-button:hover{background:#764ba2;transform:translateY(-2px)}.direction-button:active{transform:translateY(0)}.zoom-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:#000c;display:flex;justify-content:center;align-items:center;z-index:1000}.zoom-modal-content{position:relative;background:#fff;padding:20px;border-radius:10px;max-width:90vw;max-height:90vh;overflow:auto}.zoom-close{position:absolute;top:10px;right:15px;font-size:30px;background:none;border:none;cursor:pointer;color:#666;transition:color .3s ease}.zoom-close:hover{color:#333}.zoom-preview{position:relative;display:flex;justify-content:center;align-items:center;min-width:600px;min-height:400px}.zoom-preview img{max-width:100%;height:auto;display:block}.split-button{width:100%;padding:15px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:10px;font-size:1.2em;font-weight:700;cursor:pointer;transition:all .3s ease;margin-bottom:20px}.split-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 20px #667eea66}.split-button:disabled{opacity:.5;cursor:not-allowed}.split-button.processing{background:#ccc;cursor:wait}.message{padding:15px;border-radius:10px;margin-bottom:20px;text-align:center;font-weight:700}.message.success{background:#d4edda;color:#155724;border:2px solid #c3e6cb}.message.error{background:#f8d7da;color:#721c24;border:2px solid #f5c6cb}.info{background:#f8f9ff;padding:20px;border-radius:10px;border-left:4px solid #667eea}.info h3{color:#333;margin-bottom:15px;font-size:1.2em}.info ul{list-style-position:inside;color:#555;line-height:1.8}.info li{margin-bottom:8px}@media(max-width:768px){.container{padding:30px 20px}h1{font-size:2em}.description{font-size:1em}.pages-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:15px}}.pages-grid::-webkit-scrollbar{width:8px}.pages-grid::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.pages-grid::-webkit-scrollbar-thumb{background:#667eea;border-radius:4px}.pages-grid::-webkit-scrollbar-thumb:hover{background:#764ba2}
