/* Energia Alerts - matches site design (dark theme + theme colors) */


:root {
	--energia-alert-bg: #080809;
	--energia-alert-surface: #111318;
	--energia-alert-text: #ffffff;
	--energia-alert-muted: #B5B5B5;
	--energia-alert-accent: #FF9500;
	--energia-alert-success: #1e9b4d;
	--energia-alert-error: #c62828;
	--energia-alert-info: #2250c9;
	--energia-alert-warning: #FF9500;
	--energia-theme: var(--theme-color, #FF9500);
	--energia-toast-shadow: rgba(0,0,0,0.22);
}

[data-theme="light"] {
	--energia-alert-bg: #ffffff;
	--energia-alert-surface: #ffffff;
	--energia-alert-text: #111318;
	--energia-alert-muted: #3d3f44;
	--energia-toast-shadow: rgba(25,25,30,0.16);
}

[data-theme="dark"],
body.dark-theme {
	--energia-alert-bg: #080809;
	--energia-alert-surface: #111318;
	--energia-alert-text: #ffffff;
	--energia-alert-muted: #B5B5B5;
	--energia-toast-shadow: rgba(0,0,0,0.28);
}



.energia-alert-container {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99999;
	padding: 15px;
}
.energia-alert-container.is-visible { display: flex; }

.energia-alert {
	background: var(--energia-alert-surface);
	color: var(--energia-alert-text);
	border-radius: 14px;
	width: min(520px, 100%);
	box-shadow: 0 18px 60px rgba(0,0,0,0.35);
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.06);
}

.energia-alert__bar {
	height: 4px;
	background: var(--energia-theme);
}
.energia-alert__bar--success { background: var(--energia-alert-success); }
.energia-alert__bar--error { background: var(--energia-alert-error); }
.energia-alert__bar--info { background: var(--energia-alert-info); }
.energia-alert__bar--warning { background: var(--energia-alert-warning); }

.energia-alert__body {
	padding: 22px 22px 18px;
}

.energia-alert__title {
	font-family: var(--title-font, "League Spartan", sans-serif);
	font-weight: 700;
	font-size: 22px;
	margin: 0 0 8px;
	color: #fff;
}
.energia-alert__message {
	color: var(--energia-alert-muted);
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
}

.energia-alert__actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	padding: 18px 22px 22px;
}

.energia-btn {
	appearance: none;
	border: 0;
	border-radius: 10px;
	padding: 10px 16px;
	font-weight: 600;
	cursor: pointer;
	transition: transform .05s ease, opacity .15s ease;
}
.energia-btn:active { transform: translateY(1px); }
.energia-btn--primary {
	background: var(--energia-theme);
	color: #080809;
}
.energia-btn--ghost {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255,255,255,0.12);
}

/* Toasts */
.energia-toast-stack {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	z-index: 100000;
	pointer-events: none;
	width: min(360px, calc(100vw - 24px));
}
.energia-toast {
	background: #ffffff;
	color: #111318;
	border-radius: 999px;
	padding: 10px 16px;
	min-width: 220px;
	max-width: 100%;
	box-shadow: 0 12px 28px var(--energia-toast-shadow);
	border: 2px solid var(--energia-alert-warning);
	display: flex;
	flex-direction: row;
	align-items: center;
	text-align: center;
	gap: 10px;
	opacity: 0;
	transform: translateY(-20px) scale(0.98);
	animation: energia-toast-in 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
	pointer-events: auto;
	position: relative;
}
.energia-toast__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	width: 32px;
	border-radius: 50%;
	background: rgba(0,0,0,0.12);
	color: #080809;
}
[data-theme="light"] .energia-toast__icon {
	color: #111318;
	background: rgba(255,255,255,0.4);
}
.energia-toast__body {
	display: flex;
	flex-direction: row;
	align-items: center;
	text-align: left;
	gap: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}
.energia-toast__title {
	font-weight: 700;
	margin: 0;
	font-size: 14px;
	color: currentColor;
	display: inline;
	white-space: nowrap;
}
.energia-toast__message {
	margin: 0;
	font-size: 13px;
	color: rgba(17, 19, 24, 0.85);
	display: inline;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
[data-theme=\"dark\"], body.dark-theme .energia-toast {
	background: #ffffff; /* keep light background in dark theme as requested */
}

/* Per-type border color */
.energia-toast--success { border-color: #1e9b4d; }
.energia-toast--error { border-color: #c62828; }
.energia-toast--warning { border-color: #FF9500; }
.energia-toast--info { border-color: #2250c9; }

/* Icon tints per type */
.energia-toast--success .energia-toast__icon { background: rgba(30, 155, 77, 0.14); color: #1e9b4d; }
.energia-toast--error .energia-toast__icon { background: rgba(198, 40, 40, 0.14); color: #c62828; }
.energia-toast--warning .energia-toast__icon { background: rgba(255, 149, 0, 0.14); color: #C66A00; }
.energia-toast--info .energia-toast__icon { background: rgba(34, 80, 201, 0.14); color: #2250c9; }
[data-theme="light"] .energia-toast--success .energia-toast__icon { color: #1e9b4d; background: rgba(30,155,77,0.15); }
[data-theme="light"] .energia-toast--error .energia-toast__icon { color: #c62828; background: rgba(198,40,40,0.15); }
[data-theme="light"] .energia-toast--warning .energia-toast__icon { color: #c66a00; background: rgba(255,140,0,0.15); }
[data-theme="light"] .energia-toast--info .energia-toast__icon { color: #2250c9; background: rgba(34,80,201,0.15); }

@keyframes energia-toast-in {
	0% {
		opacity: 0;
		transform: translateY(-18px) scale(0.96);
	}
	60% {
		opacity: 1;
		transform: translateY(4px) scale(1.02);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}


