.pdf-container {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 25px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Área de Upload / Dropzone */
.dropzone {
	border: 2px dashed #cbd5e1;
	border-radius: 8px;
	background: #fff;
	padding: 35px 20px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.dropzone:hover,
.dropzone.dragover {
	border-color: #2563eb;
	background: #eff6ff;
}

.dropzone-icon {
	font-size: 2.5rem;
}

.dropzone-text {
	font-size: 1rem;
	font-weight: 600;
	color: #1e293b;
}

.dropzone-subtext {
	font-size: 0.85rem;
	color: #64748b;
}

#fileInput,
#addFileInput {
	display: none;
}

/* Seção de Organização de Páginas */
.order-config-section {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 20px;
	display: none;
	flex-direction: column;
	gap: 15px;
}

.section-title {
	font-size: 1.05rem;
	font-weight: 600;
	color: #1e293b;
	border-bottom: 2px solid #f1f5f9;
	padding-bottom: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.file-info-badge {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 12px 15px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #334155;
	flex-wrap: wrap;
	gap: 10px;
}

.pages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
	max-height: 380px;
	overflow-y: auto;
	padding: 5px;
}

.page-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 10px;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #334155;
}

.page-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85rem;
	color: #475569;
}

.page-actions {
	display: flex;
	gap: 4px;
	justify-content: center;
}

.icon-btn {
	background: #fff;
	border: 1px solid #cbd5e1;
	cursor: pointer;
	font-size: 0.85rem;
	padding: 4px 8px;
	border-radius: 4px;
	transition: background 0.2s;
	font-weight: 600;
	color: #334155;
}

.icon-btn:hover {
	background: #e2e8f0;
}

.icon-btn.delete {
	color: #dc2626;
	border-color: #fecaca;
}

.icon-btn.delete:hover {
	background: #fee2e2;
}

/* Ações Principais */
.order-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 5px;
	flex-wrap: wrap;
}

.btn-primary {
	background-color: #2ecc71;
	color: white;
}

.btn-primary:hover {
	background-color: #27ae60;
}

.btn-secondary {
	background-color: #0ea5e9;
	color: white;
}

.btn-secondary:hover {
	background-color: #0284c7;
}

.btn-danger {
	background-color: #ef4444;
	color: white;
}

.btn-danger:hover {
	background-color: #dc2626;
}

/* Status de Carregamento */
#loadingStatus {
	display: none;
	text-align: center;
	font-weight: 600;
	color: #2563eb;
	font-size: 0.95rem;
}


.page-card {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 8px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	cursor: grab;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.page-card:active {
	cursor: grabbing;
}

.page-card.dragging {
	opacity: 0.4;
	background: #f1f5f9;
}

.page-card-header {
	display: flex;
	justify-content: space-between;
	font-size: 0.75rem;
	color: #64748b;
	margin-bottom: 4px;
}

.pages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
	gap: 12px;
	margin-top: 15px;
	max-height: 480px;
	overflow-y: auto;
	padding: 5px;
}

.order-config-section {
	display: none;
	flex-direction: column;
}

.canvas-container {
	width: 100%;
	height: 120px;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 6px;
}

.canvas-container canvas {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease;
}

.page-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2px;
	width: 100%;
}

.page-actions button {
	flex: 1;
	padding: 4px 0;
	font-size: 0.8rem;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.1s;
}

.page-actions button:hover:not(:disabled) {
	background: #e2e8f0;
}

.page-actions button:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}