/**
 * Toast Notifications Styles
 *
 * Reusable toast notification styles for Lemax Toolkit
 *
 * @package LemaxToolkit
 */

/* Toast Container */
.lemaxtoolkit-toast-container {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999999;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 400px;
}

/* Toast Notification */
.lemaxtoolkit-toast {
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	padding: 16px 20px;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-width: 300px;
	max-width: 400px;
	opacity: 0;
	transform: translateX(100%);
	transition: opacity 0.3s ease, transform 0.3s ease;
	position: relative;
	border-left: 6px solid;
}

.lemaxtoolkit-toast.lemaxtoolkit-toast-visible {
	opacity: 1;
	transform: translateX(0);
}

/* Toast Type Variants */
.lemaxtoolkit-toast.lemaxtoolkit-toast-success {
	border-left-color: #28a745;
	background: #ffffff;
}

.lemaxtoolkit-toast.lemaxtoolkit-toast-error {
	border-left-color: #dc3545;
	background: #ffffff;
}

.lemaxtoolkit-toast.lemaxtoolkit-toast-info {
	border-left-color: #17a2b8;
	background: #ffffff;
}

.lemaxtoolkit-toast.lemaxtoolkit-toast-warning {
	border-left-color: #ffc107;
	background: #ffffff;
}

/* Toast Icon */
.lemaxtoolkit-toast-icon {
	flex-shrink: 0;
	font-size: 22px;
	line-height: 1;
	margin-top: 1px;
	font-weight: bold;
}

.lemaxtoolkit-toast.lemaxtoolkit-toast-success .lemaxtoolkit-toast-icon {
	color: #28a745;
}

.lemaxtoolkit-toast.lemaxtoolkit-toast-error .lemaxtoolkit-toast-icon {
	color: #dc3545;
}

.lemaxtoolkit-toast.lemaxtoolkit-toast-info .lemaxtoolkit-toast-icon {
	color: #17a2b8;
}

.lemaxtoolkit-toast.lemaxtoolkit-toast-warning .lemaxtoolkit-toast-icon {
	color: #ffc107;
}

/* Toast Content */
.lemaxtoolkit-toast-content {
	flex: 1;
	font-size: 15px;
	line-height: 1.6;
	color: #2c3e50;
	font-weight: 400;
}

.lemaxtoolkit-toast-content a {
	color: #2c3e50;
	text-decoration: underline;
	font-weight: 600;
}

.lemaxtoolkit-toast-content a:hover {
	opacity: 0.8;
}

/* Toast Close Button */
.lemaxtoolkit-toast-close {
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 0;
	margin: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: color 0.2s;
	opacity: 0.7;
}

.lemaxtoolkit-toast-close:hover {
	color: #333;
	opacity: 1;
}

.lemaxtoolkit-toast-close::before {
	content: '×';
	font-size: 24px;
	line-height: 1;
}

/* Slide Out Animation */
.lemaxtoolkit-toast.lemaxtoolkit-toast-removing {
	opacity: 0;
	transform: translateX(100%);
}

/* Responsive Styles */
@media (max-width: 768px) {
	.lemaxtoolkit-toast-container {
		right: 10px;
		bottom: 10px;
		left: 10px;
		max-width: none;
	}
	
	.lemaxtoolkit-toast {
		min-width: auto;
		max-width: none;
	}
}

