/* ===== Base ===== */
body { font-family: 'Segoe UI', sans-serif; margin: 0; background: #f5f7fa; }
header { background: #2c3e50; color: white; padding: 1rem; text-align: center; }
.drop-zone { border: 2px dashed #3498db; border-radius: 10px; padding: 2rem; text-align: center; margin: 2rem; background: white; cursor: pointer; }
.drop-zone.dragover { background: #ecf0f1; }
.file-list { margin: 1rem 2rem; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; margin: 2rem; }
.thumbnail { position: relative; border: 1px solid #ddd; border-radius: 5px; padding: 0.5rem; background: white; }
.thumbnail canvas { width: 100%; height: auto; }
.thumbnail .controls { display: flex; justify-content: space-between; margin-top: 0.5rem; }
.rotate-btn, .delete-btn { cursor: pointer; background: none; border: none; font-size: 1.2rem; }
.merge-btn { display: block; width: 200px; margin: 2rem auto; padding: 1rem; background: #27ae60; color: white; border: none; border-radius: 5px; font-size: 1.1rem; cursor: pointer; }
.merge-btn:disabled { background: #95a5a6; cursor: not-allowed; }
.progress-bar { height: 20px; background: #3498db; text-align: center; color: white; transition: width 0.3s; }
*{
box-sizing:border-box;
}
body{
font-family:Arial;
background:#f4f6f9;
margin:0;
}

.tool-container{
max-width:900px;
margin:auto;
padding:30px;
}

.tool-title{
text-align:center;
}

.drop-zone{
border:2px dashed #ccc;
padding:40px;
text-align:center;
cursor:pointer;
background:#fff;
}

.drop-zone.dragover{
border-color:#4e73df;
}

.pages-grid{
display:grid;
grid-template-columns:repeat(auto-fill,120px);
gap:10px;
margin-top:20px;
}

.page-thumb{
background:#fff;
padding:5px;
border-radius:5px;
box-shadow:0 2px 5px rgba(0,0,0,0.1);
position:relative;
}

.page-actions{
position:absolute;
top:2px;
right:2px;
display:flex;
gap:3px;
}

.page-actions button{
border:none;
background:#eee;
cursor:pointer;
}

.progress-container{
height:6px;
background:#eee;
margin-top:20px;
}

.progress-fill{
height:100%;
width:0;
background:#4e73df;
transition:width .3s;
}

.btn-primary{
background:#4e73df;
color:#fff;
padding:10px 20px;
border:none;
}

.btn-secondary{
background:#999;
color:#fff;
padding:10px 20px;
border:none;
}
body{
margin:0;
font-family:Arial, Helvetica, sans-serif;
background:#f4f6f9;
color:#333;
}

/* ===== Header ===== */

.main-header{
background:#1f2937;
padding:12px 0;
}

.header-container{
max-width:1100px;
margin:auto;
display:flex;
justify-content:space-between;
align-items:center;
}

.logo img{
height:40px;
}

.main-nav a{
color:#fff;
margin-left:20px;
text-decoration:none;
font-size:14px;
}

.main-nav a:hover{
opacity:0.8;
}

/* ===== Layout ===== */

.container{
max-width:1100px;
margin:auto;
padding:20px;
}

/* ===== Tool Page ===== */

.tool-interface{
max-width:900px;
margin:auto;
}

.tool-header{
text-align:center;
margin-bottom:25px;
}

.tool-header h1{
margin-bottom:8px;
}

.tool-description{
color:#666;
}

/* ===== Card ===== */

.card{
background:#fff;
border-radius:10px;
padding:25px;
border:1px solid #e5e7eb;
box-shadow:0 3px 10px rgba(0,0,0,0.05);
}

/* ===== Drop Zone ===== */

.drop-zone{
border:2px dashed #d1d5db;
padding:50px;
text-align:center;
border-radius:10px;
background:#f9fafb;
transition:0.2s;
}

.drop-zone:hover{
border-color:#4e73df;
}

.drop-zone.dragover{
border-color:#4e73df;
background:#eef2ff;
}

/* ===== Buttons ===== */

.btn{
display:inline-block;
padding:10px 18px;
border-radius:6px;
border:none;
cursor:pointer;
font-size:14px;
}

.btn-primary{
background:#4e73df;
color:#fff;
}

.btn-primary:hover{
background:#2e59d9;
}

.btn-success{
background:#1cc88a;
color:#fff;
}

.btn-secondary{
background:#858796;
color:#fff;
}

/* ===== File List ===== */

.file-list{
margin-top:20px;
}

.file-item{
background:#f1f5f9;
padding:10px;
border-radius:5px;
margin-bottom:10px;
}

/* ===== Progress ===== */

.progress{
width:100%;
background:#e5e7eb;
height:10px;
border-radius:5px;
margin-top:20px;
overflow:hidden;
}

.progress-bar{
height:100%;
width:0;
background:#4e73df;
transition:0.3s;
}

/* ===== Instructions ===== */

.instructions{
margin-top:40px;
background:#fff;
padding:20px;
border-radius:8px;
}

/* ===== Footer ===== */

.main-footer{
background:#1f2937;
color:#fff;
text-align:center;
padding:15px;
margin-top:50px;
}

/* ===== Upgrade Modal ===== */

.upgrade-modal{
display:none;
position:fixed;
inset:0;
background:rgba(0,0,0,0.7);
z-index:9999;
justify-content:center;
align-items:center;
}

.upgrade-content{
background:#fff;
padding:30px;
width:420px;
border-radius:10px;
text-align:center;
}

.upgrade-content ul{
text-align:left;
}

/* ===== Responsive ===== */

@media(max-width:768px){

.header-container{
flex-direction:column;
gap:10px;
}

.main-nav a{
margin:0 10px;
}

.drop-zone{
padding:30px;
}

}
/* ===== TOOL INTERFACE ===== */

.tool-interface{
max-width:900px;
margin:auto;
padding:20px;
}

.tool-header{
text-align:center;
margin-bottom:30px;
}

.tool-description{
color:#666;
}


/* ===== UPLOAD SECTION ===== */

.upload-section{
background:#fff;
padding:25px;
border-radius:10px;
box-shadow:0 3px 10px rgba(0,0,0,0.08);
}


/* ===== DROP ZONE ===== */

.drop-zone{
border:2px dashed #cbd5e1;
padding:40px;
border-radius:10px;
text-align:center;
transition:0.2s;
background:#f9fafb;
}

.drop-zone.dragover{
background:#eef2ff;
border-color:#4e73df;
}


/* ===== BUTTON GROUP ===== */

.action-buttons{
margin-top:20px;
display:flex;
gap:10px;
justify-content:center;
flex-wrap:wrap;
}


/* ===== PROGRESS BAR ===== */

.progress-container{
margin-top:20px;
display:none;
}

.progress{
height:10px;
background:#e5e7eb;
border-radius:5px;
overflow:hidden;
}

.progress-bar{
height:100%;
width:0%;
background:#4e73df;
transition:width 0.3s;
}


/* ===== FILE LIST ===== */

.file-list{
margin-top:15px;
}

.file-item{
background:#f1f5f9;
padding:10px;
border-radius:5px;
margin-bottom:10px;
}


/* ===== RESULTS ===== */

.results{
margin-top:20px;
padding:15px;
background:#f8fafc;
border-radius:8px;
}


/* ===== RESPONSIVE ===== */

@media(max-width:768px){

.drop-zone{
padding:30px;
}

.action-buttons{
flex-direction:column;
}

}
.main-nav a.active{
font-weight:bold;
border-bottom:2px solid #4e73df;
}
.main-footer{
background:#1f2937;
color:#fff;
padding:40px 0;
margin-top:50px;
}

.footer-container{
max-width:1100px;
margin:auto;
padding:0 20px;
}

.footer-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:30px;
}

.footer-links ul{
list-style:none;
padding:0;
margin:0;
}

.footer-links li{
margin-bottom:8px;
}

.footer-links a{
color:#d1d5db;
text-decoration:none;
}

.footer-links a:hover{
color:#fff;
}

.footer-copy{
text-align:center;
margin-top:20px;
color:#9ca3af;
font-size:14px;
}
.tools-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
gap:20px;
margin-top:25px;
}

.tool-card{
background:#fff;
padding:22px;
border-radius:10px;
text-align:center;
box-shadow:0 4px 12px rgba(0,0,0,0.08);
transition:all 0.25s ease;
text-decoration:none;
color:#333;
}

.tool-card:hover{
transform:translateY(-5px);
box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.tool-card i{
font-size:26px;
color:#4e73df;
margin-bottom:10px;
}

.tool-card h3{
font-size:16px;
margin-bottom:8px;
}

.tool-card p{
font-size:13px;
color:#666;
}
.main-footer{
background:#1f2937;
color:#fff;
padding:40px 0;
margin-top:50px;
}

.footer-container{
max-width:1100px;
margin:auto;
padding:0 20px;
}

.footer-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:30px;
}

.footer-links ul{
list-style:none;
padding:0;
}

.footer-links a{
color:#d1d5db;
text-decoration:none;
}

.footer-links a:hover{
color:#fff;
}

.footer-copy{
text-align:center;
margin-top:20px;
font-size:14px;
color:#9ca3af;
}
.drop-zone{
border:2px dashed #cbd5e1;
border-radius:10px;
padding:45px 20px;
text-align:center;
background:#f9fafb;
max-width:700px;
margin:auto;
transition:0.2s;
}

.drop-zone:hover{
border-color:#4e73df;
background:#eef2ff;
}
.action-buttons{
display:flex;
gap:10px;
justify-content:center;
margin-top:15px;
flex-wrap:wrap;
}
.container{
max-width:1000px;
margin:auto;
padding:20px;
}
body{
margin:0;
min-height:100vh;
display:flex;
flex-direction:column;
}

main{
flex:1;
}
.breadcrumb{
font-size:14px;
color:#666;
margin-bottom:15px;
}

.breadcrumb a{
text-decoration:none;
color:#4e73df;
}
.file-list{
display:flex;
flex-wrap:wrap;
gap:12px;
margin-top:20px;
}

.file-item{
background:#fff;
border-radius:8px;
padding:10px;
box-shadow:0 3px 8px rgba(0,0,0,0.1);
width:120px;
text-align:center;
cursor:grab;
}

.file-item canvas{
width:100%;
border-radius:5px;
}

.file-item span{
display:block;
font-size:12px;
margin-top:5px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}