/* App notifications — light theme (matches admin content shell) */
:root {
	--notify-bg: #ffffff;
	--notify-text: #0f172a;
	--notify-muted: #64748b;
	--notify-border: #e2e8f0;
	--notify-radius: 12px;
	--notify-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
	--notify-success: #84ba3f;
	--notify-error: #e11d48;
	--notify-warning: #d97706;
	--notify-info: #0c96da;
}

@keyframes notify-in {
	from {
		opacity: 0;
		transform: translateX(14px) translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateX(0) translateY(0);
	}
}

#toast-container {
	z-index: 1000000;
	pointer-events: none;
	width: auto !important;
}

#toast-container.toast-top-right {
	top: 18px;
	right: 18px;
	left: auto;
}

#toast-container.toast-top-center {
	top: 18px;
	right: 0;
	width: 100% !important;
	padding: 0 16px;
	box-sizing: border-box;
}

#toast-container > div {
	pointer-events: auto;
	position: relative;
	width: 340px;
	max-width: calc(100vw - 36px);
	margin: 0 0 10px;
	padding: 13px 40px 13px 52px;
	border-radius: var(--notify-radius);
	border: 1px solid var(--notify-border);
	border-left-width: 4px;
	background: var(--notify-bg) !important;
	background-image: none !important;
	box-shadow: var(--notify-shadow);
	color: var(--notify-text) !important;
	opacity: 1 !important;
	font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	overflow: hidden;
	animation: notify-in 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

#toast-container.toast-top-center > div {
	margin-left: auto;
	margin-right: auto;
}

#toast-container > div::before {
	content: '';
	position: absolute;
	left: 14px;
	top: 50%;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	border-radius: 8px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 14px;
}

#toast-container > div:hover {
	opacity: 1 !important;
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
	cursor: default;
}

#toast-container .toast-title {
	margin: 0 0 2px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--notify-muted);
}

#toast-container .toast-message {
	color: #334155;
	font-weight: 500;
}

#toast-container .toast-close-button {
	position: absolute;
	top: 50%;
	right: 10px;
	float: none;
	transform: translateY(-50%);
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border-radius: 7px;
	font-size: 16px;
	font-weight: 400;
	line-height: 26px;
	text-align: center;
	text-shadow: none;
	color: var(--notify-muted) !important;
	opacity: 0.7;
	transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
	opacity: 1;
	color: var(--notify-text) !important;
	background: #f1f5f9;
	text-decoration: none;
}

#toast-container .toast-progress {
	height: 2px;
	opacity: 0.9;
}

/* Success — brand green */
#toast-container > .toast-success,
.toast-success {
	background: #ffffff !important;
	border-color: #d9ecc0;
	border-left-color: var(--notify-success) !important;
}

#toast-container > .toast-success::before {
	background-color: #f0f8e4;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2384ba3f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

#toast-container > .toast-success .toast-progress {
	background: var(--notify-success);
}

/* Error */
#toast-container > .toast-error,
.toast-error {
	background: #ffffff !important;
	border-color: #fecdd3;
	border-left-color: var(--notify-error) !important;
}

#toast-container > .toast-error::before {
	background-color: #fff1f2;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

#toast-container > .toast-error .toast-progress {
	background: var(--notify-error);
}

/* Warning */
#toast-container > .toast-warning,
.toast-warning {
	background: #ffffff !important;
	border-color: #fde68a;
	border-left-color: var(--notify-warning) !important;
}

#toast-container > .toast-warning::before {
	background-color: #fffbeb;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}

#toast-container > .toast-warning .toast-progress {
	background: var(--notify-warning);
}

/* Info — brand blue */
#toast-container > .toast-info,
.toast-info {
	background: #ffffff !important;
	border-color: #bae6fd;
	border-left-color: var(--notify-info) !important;
}

#toast-container > .toast-info::before {
	background-color: #e0f2fe;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c96da' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}

#toast-container > .toast-info .toast-progress {
	background: var(--notify-info);
}

@media (max-width: 480px) {
	#toast-container.toast-top-right {
		top: 12px;
		right: 10px;
		left: 10px;
	}

	#toast-container > div {
		width: 100%;
		max-width: none;
	}
}
