/* Image Crop Modal Styles */
.crop-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
}

.crop-modal-content {
	background-color: white;
	margin: 2% auto;
	padding: 20px;
	border-radius: 8px;
	width: 90%;
	max-width: 800px;
	max-height: 90%;
	overflow: auto;
	position: relative;
}

.crop-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}

.crop-modal-header h3 {
	margin: 0;
	color: #333;
}

.crop-close {
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	color: #aaa;
	border: none;
	background: none;
}

.crop-close:hover {
	color: #000;
}

.crop-container {
	position: relative;
	margin: 20px 0;
	text-align: center;
}

.crop-canvas {
	border: 2px solid #ddd;
	cursor: grab;
	max-width: 100%;
	height: auto;
}

.crop-canvas:active {
	cursor: grabbing;
}

.crop-overlay {
	position: absolute;
	border: 2px solid #007bff;
	background: rgba(0, 123, 255, 0.1);
	cursor: move;
}

.crop-handle {
	position: absolute;
	width: 10px;
	height: 10px;
	background: #007bff;
	border: 2px solid white;
	cursor: nw-resize;
}

.crop-handle.nw {
	top: -5px;
	left: -5px;
	cursor: nw-resize;
}

.crop-handle.ne {
	top: -5px;
	right: -5px;
	cursor: ne-resize;
}

.crop-handle.sw {
	bottom: -5px;
	left: -5px;
	cursor: sw-resize;
}

.crop-handle.se {
	bottom: -5px;
	right: -5px;
	cursor: se-resize;
}

.crop-info {
	margin: 10px 0;
	font-size: 14px;
	color: #666;
}

.crop-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	justify-content: center;
	margin-top: 15px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 6px;
}

.control-group {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 120px;
}

.control-group label {
	font-weight: bold;
	font-size: 12px;
	color: #333;
	min-width: 50px;
}

.control-group input[type="range"] {
	flex: 1;
	min-width: 80px;
}

.control-group span {
	font-size: 12px;
	color: #666;
	min-width: 40px;
	text-align: center;
}

.increment-btn {
	background: #007cba;
	color: white;
	border: none;
	border-radius: 3px;
	width: 24px;
	height: 24px;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s;
}

.increment-btn:hover {
	background: #005a87;
}

.increment-btn:active {
	background: #004670;
	transform: translateY(1px);
}

.control-button {
	padding: 6px 12px;
	background: #6c757d;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 12px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.control-button:hover {
	background: #545b62;
}

.crop-buttons {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 20px;
}

.crop-button {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-weight: bold;
	cursor: pointer;
	transition: background-color 0.3s;
}

.crop-button.primary {
	background: #007bff;
	color: white;
}

.crop-button.primary:hover {
	background: #0056b3;
}

.crop-button.secondary {
	background: #6c757d;
	color: white;
}

.crop-button.secondary:hover {
	background: #545b62;
}

@media (max-width: 768px) {
	.crop-modal-content {
		width: 95%;
		margin: 5% auto;
		padding: 15px;
	}

	.crop-buttons {
		flex-direction: column;
	}
}