/* Container & Positioning */
.toast-container {
	position: fixed;
	z-index: 9999;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	max-width: 450px;
	pointer-events: none;
}
[data-position="tr"] {
	top: 0;
	right: 0;
	align-items: flex-end;
}
[data-position="tc"] {
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	align-items: center;
}
[data-position="tl"] {
	top: 0;
	left: 0;
	align-items: flex-start;
}
[data-position="br"] {
	bottom: 0;
	right: 0;
	align-items: flex-end;
	flex-direction: column-reverse;
}
[data-position="bc"] {
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	align-items: center;
	flex-direction: column-reverse;
}
[data-position="bl"] {
	bottom: 0;
	left: 0;
	align-items: flex-start;
	flex-direction: column-reverse;
}

.toast {
	position: relative;
	overflow: hidden;
	display: flex;
	gap: 12px;
	min-width: 320px;
	padding: 16px;
	border-radius: 12px;
	box-shadow: var(--box-shadow);
	pointer-events: auto;
}

.toast.toast-normal {
	--toast-accent-color: var(--gray-700);
	background: var(--gray-700) !important;
	color: var(--color-body) !important;
}

.toast.toast-success {
	--toast-accent-color: var(--success);
	background: var(--success) !important;
	color: var(--black) !important;
}
.toast.toast-error {
	--toast-accent-color: var(--danger);
	background: var(--danger) !important;
	color: var(--white) !important;
}
.toast.toast-warning {
	--toast-accent-color: var(--warning);
	background: var(--warning) !important;
	color: var(--black) !important;
}
.toast.toast-info {
	--toast-accent-color: var(--info);
	background: var(--info) !important;
	color: var(--black) !important;
}

.toast-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.style-accent .toast-icon,
.style-bordered .toast-icon,
.style-minimal .toast-icon {
	color: var(--toast-accent-color);
}

.toast-close {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	font-size: 1.4rem;
	opacity: 0.4;
	line-height: 1;
	padding: 0;
	margin-left: auto;
	transition: opacity 0.2s;
	align-self: flex-start;
}
.toast-close:hover {
	opacity: 1;
}

.style-accent {
	border: 1px solid var(--toast-accent-color);
	border-left: 6px solid var(--toast-accent-color);
}
.style-bordered {
	border: 2px solid var(--toast-accent-color);
}

/* Animations */
@keyframes slideInRight {
	from {
		transform: translateX(120%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}
@keyframes slideOutRight {
	to {
		transform: translateX(120%);
		opacity: 0;
	}
}
@keyframes slideInLeft {
	from {
		transform: translateX(-120%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}
@keyframes slideOutLeft {
	to {
		transform: translateX(-120%);
		opacity: 0;
	}
}
@keyframes slideInDown {
	from {
		transform: translateY(-100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}
@keyframes slideOutUp {
	to {
		transform: translateY(-100%);
		opacity: 0;
	}
}
@keyframes slideInUp {
	from {
		transform: translateY(100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}
@keyframes slideOutDown {
	to {
		transform: translateY(100%);
		opacity: 0;
	}
}
@keyframes shake {
	0%,
	100% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-8px);
	}
	75% {
		transform: translateX(8px);
	}
}
@keyframes zoomIn {
	from {
		transform: scale(0.8);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}
