.app-dialog-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	z-index: 10000;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.app-dialog-overlay.show {
	opacity: 1;
}

.app-dialog-box {
	width: min(420px, 100%);
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
	transform: translateY(12px) scale(0.98);
	transition: transform 0.2s ease;
	overflow: hidden;
}

.app-dialog-overlay.show .app-dialog-box {
	transform: translateY(0) scale(1);
}

.app-dialog-body {
	padding: 1.5rem 1.5rem 1rem;
	text-align: center;
}

.app-dialog-icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 0.9rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 700;
}

.app-dialog-icon.info {
	background: #eef1ff;
	color: #667eea;
}

.app-dialog-icon.success {
	background: #ecfdf3;
	color: #16a34a;
}

.app-dialog-icon.warning {
	background: #fff7ed;
	color: #ea580c;
}

.app-dialog-icon.error {
	background: #fef2f2;
	color: #dc2626;
}

.app-dialog-title {
	font-size: 1.05rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 0.55rem;
}

.app-dialog-message {
	font-size: 0.95rem;
	color: #4b5563;
	line-height: 1.6;
	white-space: pre-wrap;
	word-break: break-word;
}

.app-dialog-actions {
	display: flex;
	gap: 0.75rem;
	padding: 0 1.5rem 1.5rem;
}

.app-dialog-actions.single {
	justify-content: center;
}

.app-dialog-actions.double {
	justify-content: center;
}

.app-dialog-btn {
	min-width: 96px;
	padding: 0.55rem 1.1rem;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	font-size: 0.92rem;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.app-dialog-btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
}

.app-dialog-btn-primary:hover {
	opacity: 0.92;
}

.app-dialog-btn-secondary {
	background: #f3f4f6;
	color: #374151;
}

.app-dialog-btn-secondary:hover {
	background: #e5e7eb;
}
