/**
 * Field Help System Styles
 * 
 * Styles for the admin field help icons and modals
 *
 * @format
 */

/* Help Icon Styles */
.field-help-icon {
	color: #337ab7;
	cursor: pointer;
	font-size: 0.9em;
	margin-left: 5px;
	transition: all 0.2s ease;
	display: inline-block;
	vertical-align: middle;
}

.field-help-icon:hover {
	color: #23527c;
	transform: scale(1.15);
}

.field-help-icon:active {
	transform: scale(1.05);
}

/* Label adjustments to accommodate help icon */
label {
	position: relative;
	display: inline-block;
}

/* Help Modal Styles */
.field-help-modal .modal-header {
	background-color: #f5f5f5;
	border-bottom: 2px solid #337ab7;
	padding: 15px 20px;
}

.field-help-modal .modal-title {
	color: #333;
	font-size: 18px;
	font-weight: 600;
}

.field-help-modal .modal-title .fa {
	color: #337ab7;
	margin-right: 8px;
}

.field-help-modal .modal-body {
	padding: 20px;
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}

.field-help-modal .modal-body p {
	margin-bottom: 10px;
}

.field-help-modal .modal-body ul,
.field-help-modal .modal-body ol {
	margin-left: 20px;
	margin-bottom: 10px;
}

.field-help-modal .modal-body li {
	margin-bottom: 5px;
}

.field-help-modal .modal-body code {
	background-color: #f4f4f4;
	padding: 2px 6px;
	border-radius: 3px;
	font-family: "Courier New", monospace;
	color: #c7254e;
}

.field-help-modal .modal-body strong,
.field-help-modal .modal-body b {
	color: #333;
	font-weight: 600;
}

.field-help-modal .modal-body em {
	font-style: italic;
	color: #666;
}

.field-help-modal .modal-footer {
	padding: 15px 20px;
	background-color: #f9f9f9;
}

/* Close button styling */
.field-help-modal .close {
	font-size: 28px;
	font-weight: 300;
	color: #999;
	opacity: 0.6;
	text-shadow: none;
	transition: all 0.2s ease;
}

.field-help-modal .close:hover {
	opacity: 1;
	color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.field-help-modal .modal-dialog {
		margin: 10px;
	}

	.field-help-icon {
		font-size: 1em;
	}
}

/* Make help content more readable */
.field-help-modal .modal-body h4,
.field-help-modal .modal-body h5 {
	margin-top: 15px;
	margin-bottom: 10px;
	color: #337ab7;
	font-weight: 600;
}

.field-help-modal .modal-body h4:first-child,
.field-help-modal .modal-body h5:first-child {
	margin-top: 0;
}

/* Example/note boxes in help content */
.field-help-modal .modal-body .help-example {
	background-color: #f0f7ff;
	border-left: 4px solid #337ab7;
	padding: 10px 15px;
	margin: 10px 0;
	border-radius: 3px;
}

.field-help-modal .modal-body .help-note {
	background-color: #fffbf0;
	border-left: 4px solid #f0ad4e;
	padding: 10px 15px;
	margin: 10px 0;
	border-radius: 3px;
}

.field-help-modal .modal-body .help-warning {
	background-color: #fff5f5;
	border-left: 4px solid #d9534f;
	padding: 10px 15px;
	margin: 10px 0;
	border-radius: 3px;
}

/* Animation for modal appearance */
.field-help-modal.fade .modal-dialog {
	transform: scale(0.95);
	opacity: 0;
	transition: all 0.2s ease-out;
}

.field-help-modal.fade.in .modal-dialog {
	transform: scale(1);
	opacity: 1;
}

/* Ensure modals appear above other elements */
.field-help-modal {
	z-index: 1050;
}

.field-help-modal .modal-backdrop {
	z-index: 1040;
}
