﻿.floating-nav {
	position: sticky;
	top: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 8px 12px;
	border-bottom: 1px solid #e0e0e0;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #47474f;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	margin: 0 0 6px 0;
}

.crop-actions {
	/*margin: 20px 0;*/
	text-align: right;
}

.btn-process {
	border: none;
	border-radius: 6px;
	cursor: pointer;
	padding: 10px 60px !important;
}

	.btn-process:hover {
		background: var(--purple);
	}

.reset-btn {
	background: var(--purple);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: block !important;
	font-size: 22px;
	font-weight: 500;
}



#page-spinner {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

	#page-spinner #htmlloader {
		display: block;
		width: 80px;
		height: 80px;
	}

	#page-spinner #loader {
		border: 16px solid #f3f3f3;
		border-top: 16px solid #449d44;
		border-radius: 50%;
		width: 120px;
		height: 120px;
		animation: spin 2s linear infinite;
		margin-top: 20px;
	}



.pdf-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px;
	padding: 20px;
}

.page-container {
	position: relative;
	background: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s;
}

	.page-container:hover {
		transform: scale(1.03);
	}

	.page-container canvas {
		width: 100%;
		height: auto;
		display: block;
	}

.page-controls {
	position: absolute;
	top: 8px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-around;
	opacity: 0;
	transition: opacity 0.3s;
}

.page-container:hover .page-controls {
	opacity: 1;
}

.page-controls button {
	background: var(--purple);
	color: white;
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	cursor: pointer;
}

	.page-controls button:hover {
		background: #47474f;
	}

.zoom-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	display: none;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	z-index: 1000;
}

	.zoom-modal.active {
		display: flex;
	}

	.zoom-modal canvas {
		max-width: 90%;
		max-height: 80vh;
	}

.zoom-controls {
	margin-top: 10px;
	display: flex;
	gap: 10px;
}

	.zoom-controls button {
		background: var(--purple);
		color: white;
		border: none;
		padding: 8px 12px;
		border-radius: 6px;
		cursor: pointer;
	}

		.zoom-controls button:hover {
			background: #47474f;
		}

.page-number-display {
	color: white;
	font-weight: bold;
	margin: 0 10px;
	min-width: 80px;
	text-align: center;
}

.page-num-label {
	position: absolute;
	bottom: 5px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--purple);
	color: white;
	font-size: 13px;
	padding: 3px 8px;
	border-radius: 10px;
	font-weight: bold;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.rotate-buttons {
	display: flex;
	flex-direction: row;
	gap: 10px;
	/*  width: 200px; */
}

.rotate-btn {
	display: flex;
	align-items: center;
	border: none;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	background-color: #47474f;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}


	.reset-btn:hover,
	.btn-process:hover,
	.rotate-btn:hover,
	{
		transform: translateY(-2px);
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	}

.icon-area {
	background-color: var(--purple);
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 50px;
	font-size: 20px;
}

.label {
	flex: 1;
	text-align: center;
	font-weight: 600;
	color: var(--purple);
	background-color: #f4f4f9;
	height: 50px;
	line-height: 50px;
	font-family: 'Segoe UI', sans-serif;
	letter-spacing: 0.5px;
	padding: 0 5px 0 5px;
}
