/**
 * Toast Notification Styles
 * Minimal, flat notification system for success and error messages
 */

/* Base toast notification */
.toast-notification {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 99999;
	min-width: 280px;
	max-width: 450px;
	background: #fff;
	color: #1f2937;
	padding: 14px 18px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	font-size: 14px;
	line-height: 1.4;
	display: flex;
	align-items: center;
	gap: 12px;
	animation: slideUp 0.3s ease, fadeIn 0.3s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Error toast - red accent */
.toast-error {
	border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
	color: #ef4444;
	font-size: 18px;
	flex-shrink: 0;
}

/* Success toast - green accent */
.toast-success {
	border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
	color: #10b981;
	font-size: 18px;
	flex-shrink: 0;
}

/* Toast message */
.toast-message {
	flex: 1;
}

/* Close button */
.toast-close {
	background: none;
	border: none;
	color: #6b7280;
	cursor: pointer;
	padding: 0;
	margin-left: 8px;
	font-size: 18px;
	line-height: 1;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.toast-close:hover {
	opacity: 1;
}

/* Animations */
@keyframes slideUp {
	from {
		transform: translate(-50%, 20px);
		opacity: 0;
	}
	to {
		transform: translate(-50%, 0);
		opacity: 1;
	}
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
	20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Inline error styling for form fields */
.inline-error {
	margin-top: 8px;
	padding: 10px 12px;
	font-size: 13px;
	border-radius: 6px;
	animation: shake 0.4s ease, fadeIn 0.3s ease !important;
}

