﻿/* --- Toast notifications --- */
#toastContainer {
	position: fixed;
	bottom: 20px;
	right: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 2000;
}

.toast {
	min-width: 240px;
	max-width: 360px;
	padding: 12px 16px;
	border-radius: 6px;
	color: white;
	font-size: 14px;
	font-family: "Segoe UI", sans-serif;
	box-shadow: 0 4px 12px rgba(0,0,0,0.25);
	opacity: 0;
	transform: translateY(20px);
	animation: toast-in 0.25s forwards;
	position: relative;
	padding-right: 30px; /* místo pro křížek */
}

.toast-close {
	position: absolute;
	top: 5px;
	right: 8px;
	cursor: pointer;
	font-weight: bold;
	opacity: 0;
	transition: opacity 0.2s;
}

.toast:hover .toast-close {
	opacity: 1;
}

.toast-success {
	background: #067d46;
}

.toast-error {
	background: #f54251;
}

.toast-info {
	background: #4287f5;
}

@keyframes toast-in {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes toast-out {
	to {
		opacity: 0;
		transform: translateY(20px);
	}
}
