/**
 * Leads page styles for MiniCRM Connect.
 *
 * @package MiniCRM_Bridge
 */

/* MiniCRM Messages Styling */
.minicrm-messages {
	margin: 15px 0;
}

.minicrm-message {
	padding: 10px 15px;
	margin: 8px 0;
	border-radius: 4px;
	border-left: 4px solid;
}

.minicrm-message-info {
	background-color: #e7f3ff;
	border-left-color: #00a0d2;
	color: #0073aa;
}

.minicrm-message-warning {
	background-color: #fff8e1;
	border-left-color: #ffb900;
	color: #b8860b;
}

.minicrm-message-error {
	background-color: #ffeaea;
	border-left-color: #d63638;
	color: #d63638;
}

.minicrm-message strong {
	display: inline-block;
	margin-right: 8px;
	text-transform: uppercase;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

/* Improve spacing between sections */
.lead-details h3 {
	margin-top: 20px;
	margin-bottom: 10px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 5px;
}

.lead-details h3:first-child {
	margin-top: 0;
}

/* Technical Details Styling */
.technical-details-section {
	margin-top: 20px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fafafa;
}

.technical-details-toggle {
	margin: 0 !important;
	padding: 12px 15px;
	border-bottom: none !important;
	background-color: #f7f7f7;
	border-radius: 4px 4px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #555;
	transition: background-color 0.2s ease;
	cursor: pointer;
	user-select: none;
}

.technical-details-toggle:hover {
	background-color: #ebebeb;
}

.technical-details-content {
	padding: 15px;
	background-color: #fff;
	border-radius: 0 0 4px 4px;
}

.technical-details-content h4 {
	margin-top: 15px;
	margin-bottom: 10px;
	color: #666;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 1px solid #eee;
	padding-bottom: 5px;
}

.technical-toggle-icon {
	transition: transform 0.2s ease;
	font-size: 12px !important;
	width: 12px !important;
	height: 12px !important;
	margin-right: 5px;
}

/* Captured Data Styling */
.captured-data-container h5 {
	margin: 15px 0 8px 0;
	font-size: 12px;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 1px solid #eee;
	padding-bottom: 3px;
}

.captured-data-container h5:first-child {
	margin-top: 0;
}

.captured-data-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 15px;
}

.captured-data-table td {
	padding: 6px 8px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: top;
}

.captured-data-table td:first-child {
	width: 30%;
	font-weight: 500;
	color: #555;
}

.captured-data-table em {
	color: #888;
	font-size: 11px;
}

.captured-data-table pre {
	background-color: #f8f8f8;
	border: 1px solid #eee;
	padding: 8px;
	border-radius: 3px;
	font-size: 11px;
	max-height: 200px;
	overflow-y: auto;
	margin: 0;
}

/* Loading Spinner */
.loading-spinner {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	color: #666;
}

.loading-spinner .dashicons {
	animation: spin 1s linear infinite;
	margin-right: 8px;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}