/* --- ZÁKLADNÍ NASTAVENÍ TOASTU --- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: 8px;
    font-family: sans-serif;
    font-size: 15px;
    background: #333;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Viditelný stav */
.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Typy toastů */
.toast.info {
    background: #2962ff;
}
.toast.success {
    background: #2e7d32;
}
.toast.warning {
    background: #f9a825;
    color: #000;
}
.toast.error {
    background: #c62828;
}

/* Zavírací tlačítko */
.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.toast-close:hover {
    opacity: 0.7;
}

/* Responsivita */
@media (max-width: 480px) {
    .toast {
        left: 50%;
        right: auto;
        transform: translate(-50%, 20px);
        width: calc(100% - 40px);
    }
    .toast.show {
        transform: translate(-50%, 0);
    }
}
