#popup_container {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	min-width: 320px; /* Dialog will be no smaller than this */
	max-width: 500px; /* Dialog will wrap after this width */
	background: #ffffff;
	border: none;
	color: #1f2937;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	backdrop-filter: blur(10px);
}

#popup_title {
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	line-height: 1.5;
	color: #ffffff;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	border: none;
	cursor: default;
	padding: 20px 24px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

#popup_content {
	background: #ffffff;
	padding: 24px;
	margin: 0;
	position: relative;
}

#popup_content.alert {
	background: #ffffff;
}

#popup_content.alert::before {
	content: "ℹ️";
	position: absolute;
	top: 24px;
	left: 24px;
	font-size: 24px;
}

#popup_content.confirm {
	background: #ffffff;
}

#popup_content.confirm::before {
	content: "⚠️";
	position: absolute;
	top: 24px;
	left: 24px;
	font-size: 24px;
}

#popup_content.prompt {
	background: #ffffff;
}

#popup_content.prompt::before {
	content: "❓";
	position: absolute;
	top: 24px;
	left: 24px;
	font-size: 24px;
}

#popup_message {
	padding-left: 48px;
	font-size: 14px;
	line-height: 1.6;
	color: #374151;
	margin-bottom: 0;
}

#popup_panel {
	text-align: center;
	margin: 24px 0 0 0;
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

#popup_prompt {
	margin: 16px 0;
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	transition: all 0.2s ease;
	background: #ffffff;
}

#popup_prompt:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
	transform: translateY(-1px);
}

/* Modern button styles for popups */
#popup_ok, #popup_cancel {
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-family: 'Inter', sans-serif;
	transition: all 0.2s ease;
	min-width: 100px;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

#popup_ok {
	background: #10b981;
	color: #ffffff;
}

#popup_ok:hover {
	background: #059669;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px 0 rgba(16, 185, 129, 0.4);
}

#popup_cancel {
	background: #6b7280;
	color: #ffffff;
}

#popup_cancel:hover {
	background: #4b5563;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px 0 rgba(107, 114, 128, 0.4);
}

#popup_ok:active, #popup_cancel:active {
	transform: translateY(0);
}

/* Overlay improvements */
#popup_overlay {
	backdrop-filter: blur(4px);
	background: rgba(0, 0, 0, 0.4) !important;
	transition: opacity 0.2s ease;
}

/* Animation for popup appearance */
@keyframes popupFadeIn {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(-20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

#popup_container {
	animation: popupFadeIn 0.2s ease-out;
}

/* Responsive design */
@media (max-width: 480px) {
	#popup_container {
		min-width: 280px;
		max-width: calc(100vw - 32px);
		margin: 16px;
	}
	
	#popup_content {
		padding: 20px;
	}
	
	#popup_title {
		padding: 16px 20px;
		font-size: 16px;
	}
	
	#popup_panel {
		flex-direction: column;
		gap: 8px;
	}
	
	#popup_ok, #popup_cancel {
		width: 100%;
	}
}