/* Toast Container */
#toast-container {
	z-index: 9999;
	pointer-events: none;
}

#toast-container .toast {
	pointer-events: auto;
	min-width: 300px;
	max-width: 400px;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Toast Header Styles */
.toast-header {
	border-bottom: none;
	font-weight: 600;
}

.toast-header.bg-success {
	background-color: #28a745 !important;
}

.toast-header.bg-info {
	background-color: #17a2b8 !important;
}

.toast-header.bg-warning {
	background-color: #ffc107 !important;
	color: #212529 !important;
}

.toast-header.bg-warning .btn-close-white {
	filter: invert(1);
}

.toast-header.bg-danger {
	background-color: #dc3545 !important;
}

/* Toast Body */
.toast-body {
	padding: 1rem;
	word-wrap: break-word;
}

/* Animation */
.toast {
	animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.toast.hide {
	animation: slideOutRight 0.3s ease-out;
}

@keyframes slideOutRight {
	from {
		transform: translateX(0);
		opacity: 1;
	}
	to {
		transform: translateX(100%);
		opacity: 0;
	}
}

/* Mobile Responsive */
@media (max-width: 576px) {
	#toast-container {
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
		padding: 0.75rem !important;
		width: calc(100% - 1.5rem);
	}

	#toast-container .toast {
		min-width: 100%;
		max-width: 100%;
	}
}
