/* ==========================================================================
   Vision Image - Shared Styles
   ========================================================================== */

/* ==========================================================================
   Plugin 1: Creator
   ========================================================================== */

.vision-creator {
	position: relative;
	width: 100%;
}

/* Upload-Slots */
.vision-creator__upload-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Kreis-Vorschau */
.vision-creator__circle-preview {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background-color: #e9ecef;
	border: 2px dashed #adb5bd;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.vision-creator__circle-preview--filled {
	border: 2px solid #469ed5;
}

.vision-creator__circle-number {
	font-size: 1.5rem;
	font-weight: bold;
	color: #adb5bd;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Canvas */
.vision-creator__canvas-wrapper {
	position: relative;
	width: 100%;
}

.vision-creator__canvas {
	width: 100%;
	height: auto;
	display: block;
}

/* Cropper Modal */
.vision-creator__cropper-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.75);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vision-creator__cropper-inner {
	background: #fff;
	border-radius: 8px;
	padding: 1.5rem;
	max-width: 1200px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.vision-creator__cropper-inner img {
	max-width: 100%;
	max-height: 60vh;
	display: block;
}

.vision-creator__cropper-actions {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 30px;
}

/* Aktions-Buttons */
.vision-creator__actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

/* ==========================================================================
   Plugin 2: Display
   ========================================================================== */

.vision-display {
	position: relative;
	width: 100%;
}

.vision-display__wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
}

.vision-display__image {
	display: block;
	width: 100%;
	height: auto;
}

/* Overlay-Kreise */
.vision-display__overlay {
	position: absolute;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
}

/* Tooltip (Mouseover: nur Titel) */
.vision-display__tooltip {
	position: absolute;
	bottom: 110%;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(110, 34, 114, 0.8);
	color: #fff;
	padding: 0.4rem 0.75rem;
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: bold;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	z-index: 20;
}

.vision-display__tooltip--visible {
	opacity: 1;
}

/* Tooltip Pfeil */
.vision-display__tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: rgba(110, 34, 114, 0.8);
}

/* ==========================================================================
   BlockUI Modal
   ========================================================================== */

.vision-display__modal {
	background: #fff;
	border-radius: 8px;
	padding: 2rem;
	width: 100%;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	text-align: left;
}

.vision-display__modal-title {
	font-size: 1.4rem;
	font-weight: bold;
	margin-bottom: 1rem;
	color: #212529;
	border-bottom: 2px solid #469ed5;
	padding-bottom: 0.5rem;
}

.vision-display__modal-text {
	font-size: 1rem;
	line-height: 1.6;
	color: #495057;
}

.vision-display__modal .btn {
	display: block;
	width: 100%;
}

/* BlockUI Overlay z-index Anpassung */
.blockUI.blockOverlay {
	z-index: 1040 !important;
}

.blockUI.blockMsg {
	z-index: 1050 !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
	.vision-creator__circle-preview {
		width: 60px;
		height: 60px;
	}

	.vision-creator__circle-number {
		font-size: 1.2rem;
	}

	.vision-display__tooltip {
		font-size: 0.75rem;
		padding: 0.3rem 0.5rem;
		white-space: normal;
		max-width: 120px;
		text-align: center;
	}

	.vision-display__modal {
		padding: 1.25rem;
	}

	.vision-display__modal-title {
		font-size: 1.1rem;
	}
}

@media (max-width: 575px) {
	.vision-creator__uploads {
		justify-content: center;
	}
}

.vision-display__circle-content iframe {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	display: block;
	margin: 15px 0;
}

.vision-modal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #333;
	z-index: 9999;
	padding: 0;
}

.vision-modal__close:hover {
	color: #000;
}

.vision-modal__close:focus {
	outline: none;
}

img#visionDisplayImage,
canvas#visionCanvas {
	margin: 0 0 30px;
}

.vision-creator__uploads {
	display: none;
}
