/* Agentivo Chatbots Admin Styles */

:root {
	--agentivo-primary: #585BA8;
	--agentivo-primary-hover: #4a4d95;
	--agentivo-primary-light: #f0f4ff;
	--agentivo-bg-light: #f8f9fa;
	--agentivo-border: #e5e7eb;
	--agentivo-text-main: #1a1a1a;
	--agentivo-text-muted: #6b7280;
	--agentivo-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	--agentivo-radius: 12px;
}

.agentivo-chatbots-admin {
	max-width: 1000px;
	margin: 20px 20px 20px 0;
}

.agentivo-header {
	margin-bottom: 30px;
	padding: 30px;
	background: #fff;
	border-radius: var(--agentivo-radius);
	box-shadow: var(--agentivo-shadow);
	border: 1px solid var(--agentivo-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.agentivo-logo img {
	max-width: 180px;
	height: auto;
	display: block;
}

.agentivo-header .description {
	margin: 10px 0 0 0;
	font-size: 15px;
	color: var(--agentivo-text-muted);
}

.agentivo-chatbots-admin form {
	background: #fff;
	padding: 30px;
	border-radius: var(--agentivo-radius);
	box-shadow: var(--agentivo-shadow);
	border: 1px solid var(--agentivo-border);
	margin-bottom: 30px;
}

.agentivo-chatbots-admin .form-table th {
	width: 220px;
	padding: 20px 0;
	font-weight: 600;
	color: #374151;
}

.agentivo-chat-type-options {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.agentivo-chat-type-option {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	padding: 16px;
	background: var(--agentivo-bg-light);
	border: 2px solid var(--agentivo-border);
	border-radius: 8px;
	transition: all 0.2s ease;
	flex: 1;
	min-width: 240px;
}

.agentivo-chat-type-option:hover {
	border-color: var(--agentivo-primary);
}

.agentivo-chat-type-option.active {
	background: var(--agentivo-primary-light);
	border-color: var(--agentivo-primary);
}

.agentivo-chat-type-option input[type="checkbox"] {
	margin: 3px 12px 0 0;
}

.agentivo-chat-type-content strong {
	display: block;
	font-size: 15px;
	color: var(--agentivo-text-main);
}

.agentivo-chat-type-content .description {
	font-size: 13px;
	color: var(--agentivo-text-muted);
}

.agentivo-dimensions-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
}

.agentivo-dimensions-wrapper .sep {
	color: var(--agentivo-text-muted);
	font-weight: bold;
}

.agentivo-shortcode-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
}

.agentivo-shortcode {
	padding: 10px 14px;
	background: #f3f4f6;
	border-radius: 6px;
	font-family: monospace;
	font-size: 14px;
	color: var(--agentivo-text-main);
}

.agentivo-copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.agentivo-info-box {
	padding: 25px;
	background: #fff;
	border-radius: var(--agentivo-radius);
	box-shadow: var(--agentivo-shadow);
	border: 1px solid var(--agentivo-border);
	border-left: 4px solid var(--agentivo-primary);
}

.agentivo-info-box h3 {
	margin-top: 0;
}

.agentivo-footer {
	margin-top: 40px;
	text-align: center;
	padding: 20px 0;
	border-top: 1px solid var(--agentivo-border);
}

.agentivo-footer p {
	margin: 0;
	font-size: 13px;
	color: var(--agentivo-text-muted);
}

.agentivo-footer a {
	color: var(--agentivo-primary);
	text-decoration: none;
	font-weight: 600;
}

.agentivo-footer a:hover {
	text-decoration: underline;
}

.agentivo-chatbots-admin .button-primary {
	background: var(--agentivo-primary);
	border: none;
	padding: 0 24px;
	height: 40px;
	line-height: 40px;
	border-radius: 6px;
	font-weight: 600;
}

.agentivo-chatbots-admin .button-primary:hover {
	background: var(--agentivo-primary-hover);
}

.agentivo-info-box h3 {
	margin-top: 0;
	margin-bottom: 18px;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	display: flex;
	align-items: center;
	gap: 10px;
}

.agentivo-info-box h3::before {
	content: "ℹ️";
	font-size: 20px;
}

.agentivo-info-box ul {
	margin: 0;
	padding-left: 24px;
}

.agentivo-info-box li {
	margin-bottom: 14px;
	line-height: 1.7;
	color: #4b5563;
	font-size: 14px;
}

.agentivo-info-box li:last-child {
	margin-bottom: 0;
}

.agentivo-info-box li strong {
	color: #585BA8;
	font-weight: 600;
}

/* Notice styling */
.agentivo-chatbots-admin .notice {
	margin: 20px 0;
	border-radius: 8px;
	border-left-width: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.agentivo-chatbots-admin .notice.notice-success {
	border-left-color: #10b981;
	background: #f0fdf4;
}

.agentivo-footer {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #e5e7eb;
	text-align: center;
}

.agentivo-powered-by {
	margin: 0;
	font-size: 13px;
	color: #6b7280;
	line-height: 1.6;
}

.agentivo-powered-by a {
	color: #585BA8;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s ease;
}

.agentivo-powered-by a:hover {
	color: #4a4d95;
	text-decoration: underline;
}

/* Mobile styles */
@media screen and (max-width: 782px) {
	.agentivo-chatbots-admin {
		margin: 10px 0;
	}

	.agentivo-header {
		padding: 20px;
		margin-bottom: 30px;
	}

	.agentivo-chatbots-admin form {
		padding: 20px;
	}

	.agentivo-chatbots-admin .form-table th,
	.agentivo-chatbots-admin .form-table td {
		display: block;
		width: 100%;
		padding: 15px 0;
	}
	
	.agentivo-chatbots-admin .form-table th {
		padding-bottom: 8px;
		font-size: 15px;
	}

	.agentivo-chatbots-admin .form-table td input.regular-text {
		max-width: 100%;
	}

	.agentivo-chat-type-options {
		flex-direction: column;
	}

	.agentivo-chat-type-option {
		min-width: 100%;
	}

	.agentivo-shortcode-wrapper {
		flex-direction: column;
		align-items: stretch;
	}

	.agentivo-shortcode {
		min-width: 100%;
		text-align: center;
	}

	.agentivo-copy-btn {
		width: 100%;
		justify-content: center;
	}

	.agentivo-info-box {
		padding: 20px;
	}

	.agentivo-footer {
		margin-top: 30px;
		padding-top: 20px;
	}
}

/* Block Editor Styles */
.agentivo-block-preview {
	background: #f8f9fa;
	border: 2px dashed #d1d5db;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	color: #374151;
}

.agentivo-block-header {
	font-weight: 600;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.agentivo-block-header .dashicons {
	color: #2563eb;
}

.agentivo-block-info {
	font-size: 12px;
	color: #6b7280;
}

