/* === modals.css ===
   Styles for standard modals (Confirm/Prompt/Alert), image zoom overlay, and large articles (KB) */

/* === Backdrop / Overlay === */
.ui-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	width: 100dvw;
	height: 100dvh;
	background-color: var(--background-modifier-overlay);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: var(--z-overlay);
	padding: var(--size-4-4);
}

/* === Standard Modal Box === */
.ui-modal {
	background-color: var(--background-secondary);
	border: var(--divider-width) solid var(--background-modifier-border);
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-m);
	width: 100%;
	max-width: 22rem;
	padding: var(--size-4-6);
	text-align: center;
	/* No ADHD animations: minimalism and clarity */
}

.ui-modal-title {
	margin-top: 0;
	font-size: var(--font-content-large);
	font-weight: 700;
	margin-bottom: var(--size-4-4);
}

.ui-modal-body {
	margin-bottom: var(--size-4-6);
	color: var(--text-muted);
	line-height: var(--line-height-normal);
}

/* === Large Modal (Knowledge Base / Articles) === */
.ui-modal.ui-modal-large {
	max-width: 50rem;
	/* ~800px */
	text-align: left;
	max-height: 85vh;
	max-height: 85dvh;
	display: flex;
	flex-direction: column;
}

.ui-modal.ui-modal-large .ui-modal-body {
	overflow-y: auto;
	padding-right: var(--size-4-2);
	margin-bottom: var(--size-4-6);
	flex: 1;
	color: var(--text-normal);
}


.ui-modal.ui-modal-large .ui-modal-body strong {
	color: var(--text-bold);
}

/* === User Profile Modal === */
.user-profile-modal-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--size-4-4);
	text-align: center;
	margin-top: var(--size-4-4);
}

.user-profile-modal-content .profile-avatar-wrapper {
	margin-bottom: var(--size-4-4);
}

.user-profile-modal-content .profile-avatar-large {
	width: 120px;
	height: 120px;
	font-size: var(--font-content-xxlarge);
}

/* === User Profile Modal Parameters === */
.ui-modal-body .parameter-row span:last-child {
	color: var(--text-normal);
}

/* === Modal Close Button (Cross in corner) === */
.modal-close-btn {
	position: absolute;
	top: var(--size-4-4);
	right: var(--size-4-4);
	width: var(--size-4-8);
	height: var(--size-4-8);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-m);
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--text-muted);
	transition: var(--transition-base);
	padding: 0;
	z-index: 10;
}

.modal-close-btn:hover {
	background-color: var(--background-modifier-hover);
	color: var(--text-normal);
}

.modal-close-btn .btn-icon {
	width: var(--icon-m);
	height: var(--icon-m);
}