.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 {
	display: none;
}

/* Seção de Configuração de Rotação */
.rotate-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: 10px 12px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #334155;
	gap: 10px;
	overflow: hidden;
}

.options-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 5px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #475569;
}

.form-group select {
	padding: 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 1rem;
	background: #f8fafc;
	color: #1e293b;
	outline: none;
	font-weight: 600;
}

.form-group select:focus {
	border-color: #2563eb;
	background: #fff;
}

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

.btn-primary {
	background-color: #2563eb;
	color: white;
}

.btn-primary:hover {
	background-color: #1d4ed8;
}

.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;
	transition: box-shadow 0.15s ease;
}

.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;
}

.rotate-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: center;
	width: 100%;
}

.page-actions button {
	width: 100%;
	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 {
	background: #e2e8f0;
}