/* =========================
   NOTIFY OVERLAY WRAPPER
   ========================= */
.notify-wrapper {
	position: fixed;
	top: calc(64px + 20px); /* Topbar + Abstand */
	right: 20px;
	z-index: 99999;

	display: flex;
	flex-direction: column;
	gap: 12px;

	pointer-events: none;

	max-width: calc(100vw - 40px);
}

/* =========================
   NOTIFY CARD
   ========================= */
.notify {
	position: relative;

	display: flex;
	align-items: center;
	gap: 12px;

	min-width: 300px;
	max-width: 420px;

	padding: 14px 44px 14px 16px;

	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-left: 4px solid var(--color-primary);

	border-radius: var(--radius);
	box-shadow: var(--shadow-md);

	color: var(--color-text);
	font-size: 0.9rem;
	font-weight: 500;

	overflow: hidden;

	pointer-events: auto;

	animation: notifyIn .18s ease-out;
}

/* =========================
   ICON
   ========================= */
.notify i {
	font-size: 1rem;
	color: var(--color-primary);
	width: 18px;
	text-align: center;
}

/* =========================
   TYPES
   ========================= */
.notify.success {
	border-left-color: var(--color-green);
}
.notify.success i {
	color: var(--color-green);
}

.notify.error {
	border-left-color: var(--color-red);
}
.notify.error i {
	color: var(--color-red);
}

.notify.info {
	border-left-color: var(--color-blue);
}
.notify.info i {
	color: var(--color-blue);
}

.notify.warning {
	border-left-color: var(--color-yellow);
}
.notify.warning i {
	color: var(--color-yellow);
}

/* =========================
   TEXT
   ========================= */
.notify span {
	flex: 1;
	color: var(--color-text);
}

/* =========================
   CLOSE BUTTON
   ========================= */
.notify .close-btn {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);

	width: 32px;
	height: 32px;

	border: 1px solid var(--color-border);
	background: var(--color-surface);
	color: var(--color-text-muted);

	border-radius: var(--radius);

	cursor: pointer;

	display: flex;
	align-items: center;
	justify-content: center;

	transition: all 0.15s ease;

	font-size: 0.95rem;
}

.notify .close-btn i {
	font-size: 0.9rem;
}

.notify .close-btn:hover {
	background: var(--color-bg);
	color: var(--color-text);
	border-color: var(--color-text-muted);
}

/* =========================
   PROGRESS BAR
   ========================= */
.notify::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;

	height: 2px;
	width: 100%;

	background: var(--color-border);

	transform-origin: left;
	animation: notifyProgress var(--duration, 5s) linear forwards;
}

.notify::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;

	height: 2px;
	width: 100%;

	background: var(--color-primary);
	opacity: 0.6;

	transform-origin: left;
	animation: notifyProgress var(--duration, 5s) linear forwards;
}

/* =========================
   ANIMATIONS
   ========================= */
@keyframes notifyIn {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes notifyOut {
	to {
		opacity: 0;
		transform: translateY(-8px);
	}
}

@keyframes notifyProgress {
	from { transform: scaleX(1); }
	to { transform: scaleX(0); }
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {
	.notify-wrapper {
		top: calc(56px + 12px); /* mobile topbar */
		left: 12px;
		right: 12px;

		width: auto;
		max-width: none;
	}

	.notify {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}
}