/* Custom Confirm/Alert Modal Dialog */
.simpbook-dialog-modal {
	display: none;
	position: fixed;
	z-index: 1000001;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	overflow-y: auto;
}

.simpbook-dialog-modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.simpbook-dialog-content {
	background: linear-gradient(179deg, #a73728 0%, #b16c6c 100%);
	margin: auto;
	padding: 0;
	border: 1px solid #e11810;
	width: 90%;
	max-width: 500px;
	border-radius: 15px;
	box-shadow: 0 4px 12px rgba(225, 24, 16, 0.3);
	position: relative;
	overflow: hidden;
	color: #fff;
	box-sizing: border-box;
	animation: simpbook-dialog-fade-in 0.3s ease-out;
}

/* Positive Aktionen - Grüner Stil für Bestätigungen */
.simpbook-dialog-content.positive {
	background: linear-gradient(179deg, #28a745 0%, #6cb16c 100%);
	border: 1px solid #10821e;
	box-shadow: 0 4px 12px rgba(16, 130, 30, 0.3);
}

/* Negative Aktionen - Roter Stil (Standard) */
.simpbook-dialog-content.negative {
	background: linear-gradient(179deg, #a73728 0%, #b16c6c 100%);
	border: 1px solid #e11810;
	box-shadow: 0 4px 12px rgba(225, 24, 16, 0.3);
}

@keyframes simpbook-dialog-fade-in {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.simpbook-dialog-content::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.simpbook-dialog-header {
	text-align: center;
	margin: 0;
	padding: 25px 20px;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	position: relative;
	z-index: 1;
	border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.simpbook-dialog-body {
	padding: 25px 20px;
	text-align: center;
	font-size: 16px;
	line-height: 1.6;
	color: #fff;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

.simpbook-dialog-footer {
	padding: 20px;
	text-align: center;
	border-top: 2px solid rgba(255, 255, 255, 0.2);
	position: relative;
	z-index: 1;
	display: flex;
	gap: 10px;
	justify-content: center;
}

.simpbook-dialog-button {
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	padding: 10px 25px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 100px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.simpbook-dialog-button:hover {
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.5);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.simpbook-dialog-button:active {
	transform: translateY(0);
}

.simpbook-dialog-button-primary {
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.5);
}

.simpbook-dialog-button-primary:hover {
	background: rgba(255, 255, 255, 0.4);
	border-color: rgba(255, 255, 255, 0.6);
}

.simpbook-dialog-button-cancel {
	background: rgba(220, 53, 69, 0.3);
	border-color: rgba(220, 53, 69, 0.5);
}

.simpbook-dialog-button-cancel:hover {
	background: rgba(220, 53, 69, 0.4);
	border-color: rgba(220, 53, 69, 0.6);
}

/* Secondary Button - Neutral/Abbrechen */
.simpbook-dialog-button-secondary {
	background: rgba(108, 117, 125, 0.3);
	border-color: rgba(108, 117, 125, 0.5);
}

.simpbook-dialog-button-secondary:hover {
	background: rgba(108, 117, 125, 0.4);
	border-color: rgba(108, 117, 125, 0.6);
}

/* Success Button - Grün für positive Aktionen (Bestätigen) */
.simpbook-dialog-button-success {
	background: rgba(40, 167, 69, 0.4);
	border-color: rgba(40, 167, 69, 0.6);
	font-weight: 700;
}

.simpbook-dialog-button-success:hover {
	background: rgba(40, 167, 69, 0.5);
	border-color: rgba(40, 167, 69, 0.7);
	box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Danger Button - Rot für negative Aktionen (Ablehnen/Löschen) */
.simpbook-dialog-button-danger {
	background: rgba(220, 53, 69, 0.4);
	border-color: rgba(220, 53, 69, 0.6);
	font-weight: 700;
}

.simpbook-dialog-button-danger:hover {
	background: rgba(220, 53, 69, 0.5);
	border-color: rgba(220, 53, 69, 0.7);
	box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.simpbook-dialog-icon {
	font-size: 48px;
	display: block;
	margin: 0;
	line-height: 1;
}

/* Responsive für Dialog */
@media (max-width: 782px) {
	.simpbook-dialog-content {
		width: 95%;
		max-width: 95%;
		margin: 20px auto;
	}
	
	.simpbook-dialog-footer {
		flex-direction: column;
	}
	
	.simpbook-dialog-button {
		width: 100%;
	}
}
