/* Modern Alert & Confirm Modal Dialogues — ZestBox */
.ma-backdrop {
	position: fixed;
	inset: 0;
	z-index: 2147483647 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.76);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none !important;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

.ma-backdrop.is-open {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.ma-card {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: #0f172a;
	color: #f8fafc;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
	padding: 26px 24px 22px;
	text-align: center;
	transform: scale(0.92) translateY(12px);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
	opacity: 0;
}

.ma-close-btn {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer !important;
	pointer-events: auto !important;
	transition: all 0.18s ease;
	padding: 0;
}

.ma-close-btn:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

.ma-close-btn svg {
	width: 15px;
	height: 15px;
}

.ma-backdrop.is-open .ma-card {
	transform: scale(1) translateY(0);
	opacity: 1;
}

.ma-icon-wrap {
	width: 52px;
	height: 52px;
	margin: 0 auto 16px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ma-icon-wrap.is-warning,
.ma-icon-wrap.is-danger {
	background: rgba(239, 68, 68, 0.16);
	color: #f87171;
	border: 1px solid rgba(239, 68, 68, 0.3);
}

.ma-icon-wrap.is-success {
	background: rgba(34, 197, 94, 0.16);
	color: #4ade80;
	border: 1px solid rgba(34, 197, 94, 0.3);
}

.ma-icon-wrap.is-info {
	background: rgba(6, 182, 212, 0.16);
	color: #22d3ee;
	border: 1px solid rgba(6, 182, 212, 0.3);
}

.ma-icon-wrap svg {
	width: 26px;
	height: 26px;
}

.ma-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 8px;
	letter-spacing: -0.01em;
}

.ma-message {
	font-size: 0.875rem;
	line-height: 1.5;
	color: #94a3b8;
	margin-bottom: 22px;
}

.ma-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.ma-btn {
	flex: 1;
	padding: 10px 18px;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.18s ease;
	border: none;
	outline: none;
}

.ma-btn-cancel {
	background: rgba(255, 255, 255, 0.08);
	color: #cbd5e1;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.ma-btn-cancel:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
}

.ma-btn-confirm {
	background: #0ea5e9;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.ma-btn-confirm:hover {
	background: #0284c7;
}

.ma-btn-danger {
	background: #dc2626;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.ma-btn-danger:hover {
	background: #b91c1c;
}

/* Floating Toasts */
.ma-toast-container {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}

.ma-toast {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	border-radius: 14px;
	background: rgba(15, 23, 42, 0.94);
	color: #f8fafc;
	font-size: 0.85rem;
	font-weight: 500;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	transform: translateY(16px);
	opacity: 0;
	transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.ma-toast.is-show {
	transform: translateY(0);
	opacity: 1;
}

.ma-toast.is-success .ma-toast-icon { color: #4ade80; }
.ma-toast.is-error .ma-toast-icon { color: #f87171; }
.ma-toast.is-info .ma-toast-icon { color: #38bdf8; }

.ma-toast-icon svg {
	width: 18px;
	height: 18px;
}
