/* Стили для тостов */
.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: hidden;
    max-width: 350px;
    width: 100%;
}

.toast-header {
    padding: 0.75rem 1rem;
    border-bottom: none;
    border-radius: 8px 8px 0 0 !important;
}

.toast-body {
    padding: 1rem;
    background-color: white;
    color: #212529;
}

.toast-progress {
    opacity: 0.2;
}

/* Цвета для разных типов сообщений */
.toast-success .toast-header {
    background-color: #28a745 !important;
}

.toast-error .toast-header {
    background-color: #dc3545 !important;
}

.toast-warning .toast-header {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.toast-info .toast-header {
    background-color: #17a2b8 !important;
}

/* Анимация */
@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.show {
    animation: toastIn 0.3s ease-out;
}

.toast.hiding {
    animation: toastOut 0.3s ease-in;
}