.modal-foto-scope .demo-button {
	background: #4CAF50;
	color: white;
	border: none;
	padding: 15px 30px;
	font-size: 16px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.modal-foto-scope .demo-button:hover {
	background: #45a049;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Modal Overlay */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	padding: 20px;
}

.modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Modal Container */
.modal-container {
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	max-width: 950px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	transform: scale(0.8) translateY(50px);
	transition: all 0.3s ease;
	position: relative;
}

.modal-overlay.active .modal-container {
	transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 12px 12px;
	border-radius: 20px 20px 0 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-title {
	font-size: 24px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
}

.close-button {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	font-size: 18px;
}

.close-button:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
	padding: 12px;
}

.photo-capture-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-bottom: 20px;
}

.camera-section, .preview-section {
	background: #f8f9fa;
	border-radius: 15px;
	padding: 20px;
	text-align: center;
	border: 2px dashed #dee2e6;
	transition: all 0.3s ease;
}

.camera-section:hover, .preview-section:hover {
	border-color: #667eea;
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.section-title {
	font-size: 20px;
	font-weight: 600;
	color: #333;
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

#my_camera {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
	background: #000;
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#results {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	background: #fff;
	border: 2px dashed #dee2e6;
	min-height: 240px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6c757d;
	font-style: italic;
}

#results img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 8px;
}

.capture-button {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 15px 30px;
	border-radius: 30px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 auto;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.capture-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.capture-button:active {
	transform: translateY(0);
}

/* Modal Footer */
.modal-footer {
	padding: 12px 12px;
	border-top: 1px solid #dee2e6;
	display: flex;
	justify-content: center;
	gap: 20px;
}

.submit-button {
	background: #28a745;
	color: white;
	border: none;
	padding: 15px 30px;
	border-radius: 30px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.submit-button:hover {
	background: #218838;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.cancel-button {
	background: #6c757d;
	color: white;
	border: none;
	padding: 15px 30px;
	border-radius: 30px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.cancel-button:hover {
	background: #5a6268;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
	.modal-container {
		margin: 10px;
		max-height: 95vh;
	}

	.modal-header {
		padding: 12px;
	}

	.modal-title {
		font-size: 12px;
	}

	.modal-body {
		padding: 12px;
	}

	.photo-capture-container {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.camera-section, .preview-section {
		padding: 20px;
	}

	.modal-footer {
		padding: 20px;
		flex-direction: column;
	}

	.submit-button, .cancel-button {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.modal-header {
		padding: 12px;
	}

	.modal-title {
		font-size: 18px;
	}

	.modal-body {
		padding: 15px;
	}

	.camera-section, .preview-section {
		padding: 15px;
	}

	.section-title {
		font-size: 18px;
	}

	#my_camera, #results {
		min-height: 150px;
	}

	.modal-footer {
		padding: 15px;
	}
}

/* Loading Animation */
.loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Success Animation */
.success-message {
	background: #d4edda;
	color: #155724;
	padding: 15px;
	border-radius: 10px;
	margin-top: 20px;
	display: none;
	align-items: center;
	gap: 10px;
	border: 1px solid #c3e6cb;
}

.success-message.show {
	display: flex;
}