/**
 * Analytics page styles.
 *
 * @package    Prime_SEO
 * @subpackage Prime_SEO/admin/css
 * @since      1.7.0
 */

/* Module Toggle Card */
.an-module-toggle {
	background: #fff;
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	border: 1px solid #e2e8f0;
}

.an-module-toggle-text h4 {
	font-size: 15px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 4px;
}

.an-module-toggle-text p {
	font-size: 13px;
	color: #64748b;
	margin: 0;
}

/* Module Toggle Switch */
.an-module-switch {
	position: relative;
	width: 52px;
	height: 28px;
}

.an-module-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.an-module-switch-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #cbd5e1;
	border-radius: 28px;
	transition: 0.3s;
}

.an-module-switch-slider:before {
	position: absolute;
	content: "";
	height: 22px;
	width: 22px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: 0.3s;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.an-module-switch input:checked + .an-module-switch-slider {
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.an-module-switch input:checked + .an-module-switch-slider:before {
	transform: translateX(24px);
}

/* Disabled State */
.an-module-disabled {
	opacity: 0.5;
	pointer-events: none;
}

/* Cards */
.an-card {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	border: 1px solid #e2e8f0;
}

.an-card h3 {
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.an-card h3 .dashicons {
	color: #6366f1;
}

/* Form Fields */
.an-field {
	margin-bottom: 20px;
}

.an-field:last-child {
	margin-bottom: 0;
}

.an-field label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #334155;
	margin-bottom: 8px;
}

.an-field input[type="text"] {
	width: 100%;
	max-width: 400px;
	padding: 12px 14px;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	font-size: 14px;
	font-family: 'SF Mono', Monaco, Consolas, monospace;
	transition: border-color 0.2s;
}

.an-field input[type="text"]:focus {
	outline: none;
	border-color: #6366f1;
}

.an-field input[type="text"].invalid {
	border-color: #f59e0b;
}

.an-field input[type="text"].valid {
	border-color: #10b981;
}

.an-field textarea {
	width: 100%;
	min-height: 150px;
	padding: 12px 14px;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	font-size: 13px;
	font-family: 'SF Mono', Monaco, Consolas, monospace;
	line-height: 1.5;
	resize: vertical;
}

.an-field textarea:focus {
	outline: none;
	border-color: #6366f1;
}

.an-field-help {
	font-size: 12px;
	color: #64748b;
	margin-top: 6px;
}

/* Roles Grid */
.an-roles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
}

.an-role-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	transition: all 0.15s;
}

.an-role-item:hover {
	border-color: #c7d2fe;
	background: #f5f3ff;
}

.an-role-item input[type="checkbox"] {
	accent-color: #6366f1;
	width: 16px;
	height: 16px;
}

.an-role-item label {
	font-size: 13px;
	color: #334155;
	cursor: pointer;
	flex: 1;
}

/* Button */
.an-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	transition: all 0.2s;
}

.an-btn:hover {
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
	transform: translateY(-1px);
}

.an-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Warning Box */
.an-warning {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	background: #fef3c7;
	border: 1px solid #fde68a;
	border-radius: 8px;
	margin-bottom: 20px;
}

.an-warning .dashicons {
	color: #d97706;
	flex-shrink: 0;
	margin-top: 2px;
}

.an-warning p {
	font-size: 13px;
	color: #92400e;
	margin: 0;
	line-height: 1.5;
}

/* Info Box */
.an-info {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	margin-bottom: 20px;
}

.an-info .dashicons {
	color: #3b82f6;
	flex-shrink: 0;
	margin-top: 2px;
}

.an-info p {
	font-size: 13px;
	color: #1e40af;
	margin: 0;
	line-height: 1.5;
}
