/**
 * Event Validator Styles
 */

/* Field Error States */
.mlet-field-error {
	border-color: #dc3545 !important;
	background-color: #fff5f5 !important;
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.mlet-field-warning {
	border-color: #ffc107 !important;
	background-color: #fffbf0 !important;
	box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1) !important;
}

/* Error Messages */
.mlet-error-message {
	display: block;
	margin-top: 5px;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.4;
	animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mlet-error-message.mlet-error {
	background: #fff5f5;
	border-left: 4px solid #dc3545;
	color: #721c24;
}

.mlet-error-message.mlet-warning {
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	color: #856404;
}

.mlet-error-message.mlet-info {
	background: #d1ecf1;
	border-left: 4px solid #17a2b8;
	color: #0c5460;
}

/* Validation Summary */
.mlet-validation-summary {
	position: fixed;
	top: 100px;
	right: 20px;
	max-width: 350px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	padding: 20px;
	z-index: 999997;
	display: none;
	animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.mlet-validation-summary.active {
	display: block;
}

.mlet-validation-summary-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f0f0f0;
}

.mlet-validation-summary-title {
	font-size: 16px;
	font-weight: 700;
	color: #333;
}

.mlet-validation-summary-close {
	background: none;
	border: none;
	font-size: 24px;
	color: #999;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 24px;
	height: 24px;
}

.mlet-validation-summary-close:hover {
	color: #333;
}

.mlet-validation-item {
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.5;
}

.mlet-validation-item.error {
	background: #fff5f5;
	border-left: 4px solid #dc3545;
	color: #721c24;
}

.mlet-validation-item.warning {
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	color: #856404;
}

.mlet-validation-item strong {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

/* Auto-fix Button */
.mlet-autofix-btn {
	background: #28a745;
	color: white;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 8px;
	transition: background 0.3s;
}

.mlet-autofix-btn:hover {
	background: #218838;
}

/* Field Help Tooltip */
.mlet-field-help {
	position: relative;
	display: inline-block;
	margin-left: 5px;
}

.mlet-field-help-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #17a2b8;
	color: white;
	font-size: 12px;
	font-weight: 700;
	cursor: help;
}

.mlet-field-help-tooltip {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 10px;
	padding: 10px 15px;
	background: #333;
	color: white;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
	z-index: 1000;
}

.mlet-field-help:hover .mlet-field-help-tooltip {
	opacity: 1;
}

.mlet-field-help-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: #333;
}

/* Responsive */
@media (max-width: 768px) {
	.mlet-validation-summary {
		right: 10px;
		left: 10px;
		max-width: none;
	}
	
	.mlet-error-message {
		font-size: 12px;
	}
}

