/**
 * Opttab Admin Styles
 *
 * @package Opttab
 */

/* ===== Connection Page ===== */
.opttab-connect-page {
	max-width: 1000px;
	margin: 40px auto;
}

.opttab-connect-container {
	background: #fff;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	text-align: center;
}

.opttab-connect-card {
	max-width: 800px;
	margin: 0 auto;
}

.opttab-logo {
	margin-bottom: 30px;
}

.opttab-logo img {
	max-width: 200px;
	height: auto;
}

.opttab-connect-container h2 {
	font-size: 28px;
	margin-bottom: 15px;
	color: #1e1e1e;
}

.opttab-description {
	font-size: 16px;
	color: #666;
	margin-bottom: 40px;
	line-height: 1.6;
}

.opttab-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
	margin: 40px 0;
	text-align: left;
}

.opttab-feature {
	padding: 20px;
	background: #f9f9f9;
	border-radius: 6px;
}

.opttab-feature .dashicons {
	font-size: 36px;
	width: 36px;
	height: 36px;
	color: #7c3aed;
	margin-bottom: 15px;
}

.opttab-feature h3 {
	font-size: 18px;
	margin: 0 0 10px;
	color: #1e1e1e;
}

.opttab-feature p {
	font-size: 14px;
	color: #666;
	margin: 0;
	line-height: 1.5;
}

.opttab-connect-buttons {
	margin-top: 40px;
}

.opttab-or {
	margin: 20px 0;
	color: #999;
	font-size: 14px;
	text-transform: uppercase;
}

.opttab-advanced {
	margin-top: 30px;
}

.opttab-advanced a {
	font-size: 14px;
	color: #666;
	text-decoration: none;
}

.opttab-advanced a:hover {
	color: #7c3aed;
}

.opttab-api-key-form {
	margin-top: 30px;
	padding: 30px;
	background: #f9f9f9;
	border-radius: 6px;
	text-align: left;
}

/* ===== Dashboard Page ===== */
.opttab-dashboard {
	max-width: 1200px;
}

.opttab-user-info {
	background: #f9f9f9;
	padding: 15px 20px;
	border-radius: 6px;
	margin-bottom: 30px;
}

.opttab-plan-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	margin-left: 10px;
}

.opttab-plan-free {
	background: #e5e7eb;
	color: #6b7280;
}

.opttab-plan-pro,
.opttab-plan-premium {
	background: #dbeafe;
	color: #1e40af;
}

.opttab-plan-enterprise {
	background: #e0e7ff;
	color: #4338ca;
}

.opttab-stats-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.opttab-stat-card {
	background: #fff;
	padding: 24px;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	gap: 20px;
}

.opttab-stat-icon {
	flex-shrink: 0;
}

.opttab-stat-icon .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	color: #7c3aed;
}

.opttab-stat-content {
	flex-grow: 1;
}

.opttab-stat-value {
	font-size: 32px;
	font-weight: 700;
	color: #1e1e1e;
	line-height: 1;
	margin-bottom: 8px;
}

.opttab-stat-label {
	font-size: 14px;
	color: #666;
}

.opttab-stat-locked {
	opacity: 0.6;
}

.opttab-stat-locked .opttab-stat-value a {
	color: #7c3aed;
	text-decoration: none;
	font-size: 16px;
}

.opttab-quick-actions {
	margin-bottom: 40px;
}

.opttab-actions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
}

.opttab-action-button {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	text-decoration: none;
	color: #1e1e1e;
	transition: all 0.2s;
	position: relative;
}

.opttab-action-button:hover {
	border-color: #7c3aed;
	box-shadow: 0 2px 8px rgba(124,58,237,0.1);
}

.opttab-action-button .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #7c3aed;
}

.opttab-action-locked {
	opacity: 0.5;
	pointer-events: none;
}

.opttab-badge-premium {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #fbbf24;
	color: #78350f;
	font-size: 10px;
	padding: 2px 8px;
	border-radius: 10px;
	font-weight: 600;
}

.opttab-empty-state {
	text-align: center;
	padding: 60px 20px;
	background: #f9f9f9;
	border-radius: 8px;
}

.opttab-empty-state .dashicons {
	font-size: 80px;
	width: 80px;
	height: 80px;
	color: #d1d5db;
	margin-bottom: 20px;
}

.opttab-empty-state p {
	font-size: 16px;
	color: #666;
	margin-bottom: 20px;
}

.opttab-type-badge,
.opttab-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.opttab-type-post,
.opttab-type-page {
	background: #dbeafe;
	color: #1e40af;
}

.opttab-type-attachment {
	background: #d1fae5;
	color: #065f46;
}

.opttab-type-product {
	background: #fce7f3;
	color: #9f1239;
}

.opttab-status-active {
	background: #d1fae5;
	color: #065f46;
}

.opttab-status-paused {
	background: #fef3c7;
	color: #92400e;
}

.opttab-status-error {
	background: #fee2e2;
	color: #991b1b;
}

.opttab-view-all {
	text-align: center;
	margin-top: 20px;
}

/* ===== Discover Page ===== */
.opttab-discover-page {
	max-width: 1200px;
}

.opttab-discover-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	border-bottom: 2px solid #e5e7eb;
}

.opttab-tab-button {
	background: transparent;
	border: none;
	padding: 12px 20px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: #666;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s;
}

.opttab-tab-button:hover {
	color: #1e1e1e;
}

.opttab-tab-button.active {
	color: #7c3aed;
	border-bottom-color: #7c3aed;
}

.opttab-tab-content {
	display: none;
	padding: 20px 0;
}

.opttab-tab-content.active {
	display: block;
}

.opttab-bulk-actions {
	margin-bottom: 15px;
}

.opttab-bulk-actions .button {
	margin-right: 10px;
}

.opttab-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.opttab-badge-synced {
	background: #d1fae5;
	color: #065f46;
}

.opttab-badge-not-synced {
	background: #fee2e2;
	color: #991b1b;
}

.opttab-media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 15px;
}

.opttab-media-item {
	position: relative;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	overflow: hidden;
	transition: all 0.2s;
}

.opttab-media-item:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.opttab-media-item img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
}

.opttab-media-checkbox {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 10;
}

.opttab-media-info {
	padding: 10px;
}

.opttab-media-title {
	font-size: 12px;
	margin-bottom: 5px;
	color: #1e1e1e;
}

.opttab-submit-section {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
	text-align: center;
}

.opttab-empty {
	text-align: center;
	padding: 40px;
	color: #999;
}

/* ===== Settings Page ===== */
.opttab-settings-page {
	max-width: 1000px;
}

.opttab-connection-status {
	margin: 30px 0;
}

.opttab-status-card {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 24px;
	border-radius: 8px;
}

.opttab-status-connected {
	background: #d1fae5;
	border: 2px solid #10b981;
}

.opttab-status-card .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #065f46;
}

.opttab-status-content h3 {
	margin: 0 0 8px;
	color: #065f46;
	font-size: 18px;
}

.opttab-status-content p {
	margin: 0;
	color: #047857;
}

.opttab-tab-panel {
	padding: 20px 0;
}

/* ===== Page Header ===== */
.opttab-wrap {
	max-width: 1200px;
	margin: 20px 20px 0 0;
	padding: 0;
}

/* Ensure proper spacing and layout */
body.wp-admin .opttab-wrap {
	margin-left: 0;
	margin-right: 20px;
}

.opttab-header {
	margin-bottom: 30px;
}

.opttab-header h1 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 28px;
	margin-bottom: 8px;
}

.opttab-header h1 .dashicons {
	color: #7c3aed;
}

.opttab-subtitle {
	color: #666;
	font-size: 15px;
	margin: 0;
}

/* ===== Upgrade Notice ===== */
.opttab-upgrade-notice {
	background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
	border-radius: 12px;
	padding: 40px;
	text-align: center;
	color: #fff;
}

.opttab-upgrade-icon .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	margin-bottom: 20px;
}

.opttab-upgrade-content h3 {
	font-size: 24px;
	margin: 0 0 15px;
}

.opttab-upgrade-content p {
	font-size: 16px;
	margin: 0 0 20px;
	opacity: 0.9;
}

.opttab-upgrade-content .button {
	background: #fff;
	color: #7c3aed;
	border: none;
	font-size: 16px;
	padding: 12px 30px;
	height: auto;
}

/* ===== Setup Card ===== */
.opttab-setup-card {
	background: #fff;
	border-radius: 12px;
	padding: 60px 40px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.opttab-setup-icon .dashicons {
	font-size: 64px;
	width: 64px;
	height: 64px;
	color: #7c3aed;
	margin-bottom: 20px;
}

.opttab-setup-card h2 {
	font-size: 24px;
	margin: 0 0 15px;
}

.opttab-setup-card p {
	color: #666;
	font-size: 16px;
	margin: 0 0 25px;
}

/* ===== Period Selector ===== */
.opttab-period-selector {
	display: flex;
	gap: 8px;
	margin-bottom: 25px;
}

.opttab-period-btn {
	padding: 8px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s;
}

.opttab-period-btn:hover {
	border-color: #7c3aed;
}

.opttab-period-btn.active {
	background: #7c3aed;
	border-color: #7c3aed;
	color: #fff;
}

/* ===== Stats Grid ===== */
.opttab-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 30px;
}

.opttab-stats-3 {
	grid-template-columns: repeat(3, 1fr);
}

.opttab-stat-primary {
	background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
	color: #fff;
}

.opttab-stat-primary .opttab-stat-icon .dashicons {
	color: rgba(255,255,255,0.8);
}

.opttab-stat-primary .opttab-stat-value {
	color: #fff;
}

.opttab-stat-primary .opttab-stat-label {
	color: rgba(255,255,255,0.8);
}

.opttab-stat-change {
	font-size: 13px;
	margin-top: 5px;
}

.opttab-stat-change.positive {
	color: #10b981;
}

.opttab-stat-change.negative {
	color: #ef4444;
}

.opttab-stat-warning {
	border: 2px solid #f59e0b;
}

/* ===== Cards ===== */
.opttab-card {
	background: #fff;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	margin-bottom: 25px;
}

.opttab-card-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	margin: 0 0 20px;
}

.opttab-card-title .dashicons {
	color: #7c3aed;
}

.opttab-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

/* ===== Platforms Grid ===== */
.opttab-platforms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.opttab-platform-card {
	background: #f9fafb;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
}

.opttab-platform-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 15px;
}

.opttab-platform-logo {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.opttab-platform-name {
	font-weight: 600;
}

.opttab-platform-score {
	font-size: 32px;
	font-weight: 700;
	color: #7c3aed;
	margin-bottom: 10px;
}

.opttab-platform-bar {
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 10px;
}

.opttab-platform-bar-fill {
	height: 100%;
	background: #7c3aed;
	border-radius: 4px;
	transition: width 0.3s;
}

.opttab-platform-responses {
	font-size: 12px;
	color: #666;
}

/* ===== Company Info ===== */
.opttab-company-info {
	margin-bottom: 20px;
}

.opttab-company-info p {
	margin: 8px 0;
}

/* ===== Modal ===== */
.opttab-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.opttab-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
}

.opttab-modal-content {
	position: relative;
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 500px;
	max-height: 90vh;
	overflow: auto;
	box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.opttab-modal-large .opttab-modal-content {
	max-width: 800px;
}

.opttab-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid #e5e7eb;
}

.opttab-modal-header h2 {
	margin: 0;
	font-size: 20px;
}

.opttab-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	padding: 0;
	line-height: 1;
}

.opttab-modal-body {
	padding: 24px;
}

.opttab-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 24px;
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
	border-radius: 0 0 12px 12px;
}

/* ===== Forms ===== */
.opttab-form-row {
	margin-bottom: 20px;
}

.opttab-form-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.opttab-form-row label .required {
	color: #ef4444;
}

.opttab-form-row input[type="text"],
.opttab-form-row input[type="url"],
.opttab-form-row input[type="email"],
.opttab-form-row textarea,
.opttab-form-row select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
}

.opttab-form-row input:focus,
.opttab-form-row textarea:focus,
.opttab-form-row select:focus {
	border-color: #7c3aed;
	outline: none;
	box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.opttab-field-hint {
	font-size: 12px;
	color: #666;
	margin-top: 6px;
}

.opttab-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.opttab-checkbox-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
	background: #f9fafb;
	border-radius: 6px;
	cursor: pointer;
}

.opttab-checkbox-item:hover {
	background: #f3f4f6;
}

/* ===== Tables ===== */
.opttab-table {
	border-collapse: collapse;
	width: 100%;
}

.opttab-table th,
.opttab-table td {
	padding: 12px 15px;
	text-align: left;
}

/* GEO Table Column Alignment */
.opttab-col-score {
	text-align: center !important;
	vertical-align: middle;
}

.opttab-col-actions {
	text-align: center !important;
	vertical-align: middle;
}

.opttab-analyze-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.opttab-analyze-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
}

.opttab-prompt-text {
	font-weight: 500;
	margin-bottom: 5px;
}

.opttab-prompt-meta {
	font-size: 12px;
	color: #666;
}

.opttab-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.opttab-meta-item .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.opttab-model-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.opttab-model-badge {
	display: inline-block;
	padding: 3px 8px;
	background: #e5e7eb;
	border-radius: 4px;
	font-size: 11px;
}

.opttab-model-more {
	background: #7c3aed;
	color: #fff;
}

.opttab-score-badge {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.opttab-score-badge.good {
	background: #d1fae5;
	color: #065f46;
}

.opttab-score-badge.medium {
	background: #fef3c7;
	color: #92400e;
}

.opttab-score-badge.low {
	background: #fee2e2;
	color: #991b1b;
}

/* ===== Usage Section ===== */
.opttab-usage-section {
	background: #f9fafb;
	border-radius: 8px;
	padding: 15px 20px;
	margin-bottom: 25px;
}

.opttab-usage-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
	font-weight: 500;
}

.opttab-usage-bar {
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
}

.opttab-usage-bar-fill {
	height: 100%;
	background: #7c3aed;
	border-radius: 4px;
	transition: width 0.3s;
}

.opttab-usage-warning .opttab-usage-bar-fill {
	background: #f59e0b;
}

.opttab-usage-critical .opttab-usage-bar-fill {
	background: #ef4444;
}

/* ===== Actions Bar ===== */
.opttab-actions-bar {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 25px;
}

.opttab-limit-warning {
	color: #f59e0b;
	font-size: 13px;
}

.opttab-limit-warning a {
	color: #7c3aed;
}

/* ===== Loading State ===== */
.opttab-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
	color: #666;
}

.opttab-loading .spinner {
	float: none;
	margin: 0 0 10px;
}

/* ===== GEO Components ===== */
.opttab-legend-card {
	padding: 20px;
}

.opttab-legend-card h3 {
	margin: 0 0 15px;
	font-size: 14px;
	color: #666;
}

.opttab-legend-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.opttab-legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.opttab-legend-color {
	width: 12px;
	height: 12px;
	border-radius: 3px;
}

.opttab-legend-text {
	font-size: 12px;
	color: #666;
}

.opttab-geo-score-display {
	display: flex;
	justify-content: center;
}

.opttab-score-circle {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}

.opttab-score-circle.good { background: #10b981; }
.opttab-score-circle.medium { background: #f59e0b; }
.opttab-score-circle.low { background: #ef4444; }

.opttab-not-analyzed {
	color: #9ca3af;
	font-style: italic;
	font-size: 12px;
}

.opttab-content-title {
	color: #1e1e1e;
	text-decoration: none;
	font-weight: 500;
}

.opttab-content-title:hover {
	color: #7c3aed;
}

.opttab-content-meta {
	margin-top: 5px;
}

.opttab-edit-link {
	font-size: 12px;
	color: #7c3aed;
	text-decoration: none;
}

.opttab-geo-overall {
	text-align: center;
	margin-bottom: 30px;
}

.opttab-geo-score-large {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 15px;
	transition: background 0.3s ease;
}

.opttab-geo-score-large.good {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.opttab-geo-score-large.medium {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.opttab-geo-score-large.low {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.opttab-geo-score-large span {
	font-size: 48px;
	font-weight: 700;
	color: #fff;
}

.opttab-geo-overall-label {
	color: #666;
	font-size: 14px;
}

.opttab-geo-breakdown-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 15px;
	margin-bottom: 30px;
}

.opttab-breakdown-item-enhanced {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 12px 15px;
}

.breakdown-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.breakdown-label {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.breakdown-score {
	font-size: 13px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
}

.breakdown-score.good {
	background: #d1fae5;
	color: #065f46;
}

.breakdown-score.medium {
	background: #fef3c7;
	color: #92400e;
}

.breakdown-score.low {
	background: #fee2e2;
	color: #991b1b;
}

.breakdown-progress-bar {
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
}

.breakdown-progress-fill {
	height: 100%;
	border-radius: 4px;
	transition: width 0.3s ease;
}

.breakdown-progress-fill.good {
	background: #10b981;
}

.breakdown-progress-fill.medium {
	background: #f59e0b;
}

.breakdown-progress-fill.low {
	background: #ef4444;
}

.opttab-geo-recommendations h3 {
	font-size: 16px;
	margin: 0 0 15px;
	font-weight: 600;
	color: #1e1e1e;
}

.opttab-geo-recommendations ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.opttab-recommendation-item {
	display: flex;
	gap: 12px;
	padding: 15px;
	margin-bottom: 12px;
	border-radius: 8px;
	border-left: 4px solid;
	background: #f9fafb;
}

.opttab-recommendation-item .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 2px;
}

.opttab-recommendation-item.opttab-recommendation-high {
	border-left-color: #ef4444;
	background: #fef2f2;
}

.opttab-recommendation-item.opttab-recommendation-high .dashicons {
	color: #ef4444;
}

.opttab-recommendation-item.opttab-recommendation-medium {
	border-left-color: #f59e0b;
	background: #fffbeb;
}

.opttab-recommendation-item.opttab-recommendation-medium .dashicons {
	color: #f59e0b;
}

.opttab-recommendation-item.opttab-recommendation-low {
	border-left-color: #3b82f6;
	background: #eff6ff;
}

.opttab-recommendation-item.opttab-recommendation-low .dashicons {
	color: #3b82f6;
}

.opttab-recommendation-item.opttab-recommendation-success {
	border-left-color: #10b981;
	background: #f0fdf4;
}

.opttab-recommendation-item.opttab-recommendation-success .dashicons {
	color: #10b981;
}

.recommendation-content {
	flex: 1;
}

.recommendation-content strong {
	display: block;
	font-size: 14px;
	margin-bottom: 6px;
	color: #1e1e1e;
}

.recommendation-content p {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.6;
	color: #4b5563;
}

.recommendation-howto {
	margin-top: 10px;
	padding: 10px;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 4px;
	font-size: 12px;
	line-height: 1.6;
	color: #374151;
	white-space: pre-line;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
	.opttab-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.opttab-checkbox-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.opttab-stats-grid {
		grid-template-columns: 1fr;
	}

	.opttab-features {
		grid-template-columns: 1fr;
	}

	.opttab-actions-grid {
		grid-template-columns: 1fr;
	}

	.opttab-discover-tabs {
		flex-wrap: wrap;
	}
	
	.opttab-checkbox-grid {
		grid-template-columns: 1fr;
	}
	
	.opttab-platforms-grid {
		grid-template-columns: 1fr;
	}
	
	.opttab-modal-content {
		margin: 20px;
	}
}

/* ===== TXT Generator ===== */
.opttab-txt-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 10px;
}

.opttab-tab-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: none;
	background: #f0f0f1;
	border-radius: 6px 6px 0 0;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s;
}

.opttab-tab-btn:hover {
	background: #e0e0e0;
}

.opttab-tab-btn.active {
	background: #7c3aed;
	color: #fff;
}

.opttab-tab-content {
	display: none;
}

.opttab-tab-content.active {
	display: block;
}

.opttab-txt-editor {
	width: 100%;
	font-family: monospace;
	font-size: 13px;
	line-height: 1.5;
	padding: 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	resize: vertical;
	background: #fafafa;
}

.opttab-templates {
	margin-bottom: 15px;
	padding: 15px;
	background: #f8f8f8;
	border-radius: 6px;
}

.opttab-templates h4 {
	margin: 0 0 10px;
	font-size: 14px;
}

.opttab-templates .button {
	margin-right: 8px;
	margin-bottom: 5px;
}

.opttab-bot-reference {
	width: 100%;
	border-collapse: collapse;
	margin-top: 15px;
}

.opttab-bot-reference th,
.opttab-bot-reference td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.opttab-bot-reference th {
	background: #f5f5f5;
	font-weight: 600;
}

/* ===== Studio ===== */
.opttab-documents-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 20px;
}

.opttab-document-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 20px;
	transition: box-shadow 0.2s;
}

.opttab-document-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.opttab-document-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.opttab-document-type {
	font-size: 12px;
	color: #7c3aed;
	background: #f3e8ff;
	padding: 3px 8px;
	border-radius: 4px;
	font-weight: 500;
}

.opttab-document-date {
	font-size: 12px;
	color: #6b7280;
}

.opttab-document-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 10px;
	color: #1f2937;
}

.opttab-document-excerpt {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 15px;
	line-height: 1.5;
}

.opttab-document-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.opttab-document-actions .button {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* ===== Web Analytics & Bot Analytics ===== */
.opttab-stats-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.opttab-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 30px;
}

@media (max-width: 900px) {
	.opttab-grid-2 {
		grid-template-columns: 1fr;
	}
}

.opttab-platform-list,
.opttab-bot-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.opttab-platform-item,
.opttab-bot-item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 15px;
	align-items: center;
	padding: 12px;
	background: #f9fafb;
	border-radius: 8px;
}

.opttab-platform-info,
.opttab-bot-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.opttab-platform-icon,
.opttab-platform-icon-small {
	width: 24px;
	height: 24px;
	border-radius: 4px;
}

.opttab-platform-icon-small {
	width: 18px;
	height: 18px;
}

.opttab-bot-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
}

.opttab-bot-icon.opttab-bot-ai {
	background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
	color: #fff;
}

.opttab-bot-details {
	display: flex;
	flex-direction: column;
}

.opttab-bot-name {
	font-weight: 600;
	color: #1f2937;
}

.opttab-bot-company {
	font-size: 12px;
	color: #6b7280;
}

.opttab-platform-stats,
.opttab-bot-stats {
	text-align: right;
}

.opttab-platform-count,
.opttab-bot-count {
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
}

.opttab-platform-label,
.opttab-bot-label {
	font-size: 12px;
	color: #6b7280;
}

.opttab-platform-bar,
.opttab-bot-bar {
	grid-column: 1 / -1;
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
}

.opttab-platform-bar-fill,
.opttab-bot-bar-fill {
	height: 100%;
	background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
	border-radius: 4px;
	transition: width 0.3s ease;
}

.opttab-bot-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	background: #f3f4f6;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
}

.opttab-bot-badge-ai {
	background: #f3e8ff;
	color: #7c3aed;
}

.opttab-status-badge {
	display: inline-flex;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
}

.opttab-status-success {
	background: #dcfce7;
	color: #16a34a;
}

.opttab-status-error {
	background: #fee2e2;
	color: #dc2626;
}

.opttab-bot-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 15px;
}

.opttab-legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.opttab-legend-badge {
	display: inline-flex;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
}

.opttab-legend-ai {
	background: #f3e8ff;
	color: #7c3aed;
}

.opttab-legend-search {
	background: #dbeafe;
	color: #2563eb;
}

.opttab-legend-social {
	background: #fce7f3;
	color: #db2777;
}

/* ===== Competitors ===== */
.opttab-competitors-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
}

.opttab-competitor-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 20px;
}

.opttab-competitor-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 15px;
}

.opttab-competitor-avatar {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.opttab-competitor-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
}

.opttab-competitor-avatar .dashicons {
	font-size: 24px;
	color: #9ca3af;
}

.opttab-competitor-info {
	flex: 1;
	min-width: 0;
}

.opttab-competitor-info h3 {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
}

.opttab-competitor-domain {
	font-size: 13px;
	color: #6b7280;
	text-decoration: none;
}

.opttab-competitor-domain:hover {
	color: #7c3aed;
}

.opttab-competitor-remove {
	background: none;
	border: none;
	padding: 5px;
	cursor: pointer;
	color: #9ca3af;
	transition: color 0.2s;
}

.opttab-competitor-remove:hover {
	color: #dc2626;
}

.opttab-competitor-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	padding: 15px;
	background: #f9fafb;
	border-radius: 6px;
	margin-bottom: 15px;
}

.opttab-competitor-stat {
	text-align: center;
}

.opttab-competitor-stat .opttab-stat-label {
	font-size: 11px;
	color: #6b7280;
	display: block;
	margin-bottom: 4px;
}

.opttab-competitor-stat .opttab-stat-value {
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
}

.opttab-sentiment-positive {
	color: #16a34a;
}

.opttab-sentiment-negative {
	color: #dc2626;
}

.opttab-sentiment-neutral {
	color: #6b7280;
}

.opttab-competitor-platforms {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.opttab-platforms-label {
	font-size: 12px;
	color: #6b7280;
}

.opttab-platforms-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.opttab-platform-tag {
	display: inline-flex;
	padding: 3px 8px;
	background: #f3f4f6;
	border-radius: 4px;
	font-size: 11px;
	color: #4b5563;
}

/* Comparison Chart */
.opttab-comparison-chart {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.opttab-comparison-bar {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.opttab-comparison-bar.opttab-comparison-self .opttab-comparison-fill {
	background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.opttab-comparison-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.opttab-comparison-name {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}

.opttab-comparison-score {
	font-weight: 600;
	color: #1f2937;
}

.opttab-comparison-track {
	height: 10px;
	background: #e5e7eb;
	border-radius: 5px;
	overflow: hidden;
}

.opttab-comparison-fill {
	height: 100%;
	background: #9ca3af;
	border-radius: 5px;
	transition: width 0.5s ease;
}

/* ===== Period Selector ===== */
.opttab-period-selector {
	display: flex;
	gap: 5px;
	margin-bottom: 20px;
}

.opttab-period-btn {
	padding: 8px 16px;
	border: 1px solid #e5e7eb;
	background: #fff;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.2s;
}

.opttab-period-btn:hover {
	border-color: #7c3aed;
	color: #7c3aed;
}

.opttab-period-btn.active {
	background: #7c3aed;
	border-color: #7c3aed;
	color: #fff;
}

/* ===== Info Box ===== */
.opttab-info-box {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 15px 20px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	margin-top: 20px;
}

.opttab-info-box .dashicons {
	color: #3b82f6;
	font-size: 20px;
}

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

/* ===== Limit Info ===== */
.opttab-limit-info {
	font-size: 13px;
	color: #6b7280;
	margin-left: 10px;
}

/* ===== NEW DASHBOARD STYLES (Matching opttab.com) ===== */

/* Reset WordPress admin overrides for Opttab pages */
.opttab-dashboard *,
.opttab-prompts-page *,
.opttab-wrap * {
	box-sizing: border-box !important;
}

.opttab-dashboard img,
.opttab-prompts-page img,
.opttab-wrap img {
	max-width: 100% !important;
	height: auto !important;
}

.opttab-dashboard svg,
.opttab-prompts-page svg,
.opttab-wrap svg {
	max-width: 100% !important;
	height: auto !important;
}

/* Period Filter Buttons */
.opttab-period-filters {
	display: flex !important;
	gap: 0.5rem !important;
	margin-bottom: 1.5rem !important;
	background: white !important;
	padding: 0.5rem !important;
	border-radius: 0.5rem !important;
	border: 1px solid #e5e5e5 !important;
	width: fit-content !important;
}

.opttab-period-filters .opttab-period-btn {
	padding: 0.5rem 1rem;
	border: none;
	background: transparent;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #525252;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
}

.opttab-period-filters .opttab-period-btn:hover {
	background: #f5f5f5;
	color: #171717;
}

.opttab-period-filters .opttab-period-btn.active {
	background: #7c3aed;
	color: white;
}

/* New Metrics Grid */
.opttab-metrics-grid {
	display: grid;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.opttab-metrics-4col {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
	.opttab-metrics-4col {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.opttab-metrics-4col {
		grid-template-columns: 1fr;
	}
}

/* New Metric Card */
.opttab-metric-card {
	padding: 1rem;
	border: 1px solid #e5e5e5;
	border-radius: 0.5rem;
	background: white;
	transition: all 0.2s ease;
	cursor: pointer;
}

.opttab-metric-card:hover {
	border-color: #7c3aed;
	box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
	transform: translateY(-2px);
}

.opttab-metric-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.opttab-metric-icon {
	width: 2rem;
	height: 2rem;
	border-radius: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.opttab-metric-icon .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: white;
}

.opttab-icon-violet {
	background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.opttab-icon-blue {
	background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.opttab-icon-green {
	background: linear-gradient(135deg, #10b981, #34d399);
}

.opttab-icon-yellow {
	background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.opttab-icon-purple {
	background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.opttab-metric-trend {
	padding: 0.125rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.75rem;
	font-weight: 500;
}

.opttab-metric-trend.positive {
	background: #dcfce7;
	color: #166534;
}

.opttab-metric-trend.negative {
	background: #fee2e2;
	color: #991b1b;
}

.opttab-metric-value {
	font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: #171717;
	margin-bottom: 0.25rem;
	line-height: 1.2;
}

.opttab-metric-label {
	font-size: 0.75rem;
	color: #525252;
}

.opttab-metric-subtitle {
	font-size: 0.75rem;
	color: #6b7280;
	margin-top: 0.25rem;
}

/* Charts Section */
.opttab-charts-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
	.opttab-charts-section {
		grid-template-columns: 1fr;
	}
}

.opttab-chart-card {
	border: 1px solid #e5e5e5;
	border-radius: 0.5rem;
	background: white;
	padding: 1rem;
}

.opttab-chart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.opttab-chart-title {
	font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	color: #171717;
}

.opttab-chart-subtitle {
	font-size: 0.75rem;
	color: #525252;
}

.opttab-chart-container {
	min-height: 150px !important;
	max-height: 200px !important;
	position: relative !important;
	overflow: hidden !important;
}

.opttab-chart-empty {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	height: 128px !important;
	color: #9ca3af !important;
}

.opttab-chart-empty .dashicons {
	font-size: 32px !important;
	width: 32px !important;
	height: 32px !important;
	margin-bottom: 8px !important;
}

/* Bar Chart */
.opttab-bar-chart {
	display: flex !important;
	align-items: flex-end !important;
	gap: 4px !important;
	height: 128px !important;
	max-height: 128px !important;
	width: 100% !important;
}

.opttab-bar-wrapper {
	flex: 1 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	height: 100% !important;
	max-height: 128px !important;
	cursor: pointer !important;
	position: relative !important;
}

.opttab-bar {
	width: 100% !important;
	max-width: 30px !important;
	background: linear-gradient(to top, #7c3aed, #a855f7) !important;
	border-radius: 4px 4px 0 0 !important;
	transition: all 0.3s ease !important;
	min-height: 2px !important;
}

.opttab-bar-wrapper:hover .opttab-bar {
	opacity: 0.8 !important;
}

.opttab-bar-label {
	font-size: 10px !important;
	color: #6b7280 !important;
	margin-top: 4px !important;
	display: none !important;
}

.opttab-bar-wrapper:hover .opttab-bar-label {
	display: block !important;
}

/* Pie Chart */
.opttab-pie-chart-container {
	display: flex !important;
	align-items: center !important;
	gap: 1.5rem !important;
}

.opttab-pie-chart {
	width: 128px !important;
	height: 128px !important;
	min-width: 128px !important;
	min-height: 128px !important;
	max-width: 128px !important;
	max-height: 128px !important;
	position: relative !important;
	flex-shrink: 0 !important;
}

.opttab-pie-chart svg {
	width: 128px !important;
	height: 128px !important;
	max-width: 128px !important;
	max-height: 128px !important;
	transform: rotate(-90deg) !important;
	display: block !important;
}

.opttab-pie-segment {
	stroke-width: 16 !important;
	stroke-linecap: round !important;
}

.opttab-pie-center {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	text-align: center !important;
}

.opttab-pie-value {
	font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	color: #171717 !important;
}

.opttab-pie-label {
	font-size: 0.75rem !important;
	color: #525252 !important;
}

.opttab-pie-legend {
	flex: 1 !important;
}

.opttab-pie-legend-item {
	display: flex !important;
	align-items: center !important;
	gap: 0.5rem !important;
	margin-bottom: 0.75rem !important;
}

.opttab-legend-color {
	width: 12px !important;
	height: 12px !important;
	min-width: 12px !important;
	min-height: 12px !important;
	border-radius: 50% !important;
	flex-shrink: 0 !important;
}

.opttab-legend-label {
	font-size: 0.875rem !important;
	color: #404040 !important;
	flex: 1 !important;
}

.opttab-legend-value {
	font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	color: #171717 !important;
}

/* Recent Responses Section */
.opttab-recent-responses {
	background: white;
	border: 1px solid #e5e5e5;
	border-radius: 0.5rem;
	padding: 1rem;
	margin-bottom: 1.5rem;
}

.opttab-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.opttab-section-title {
	font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	color: #171717;
	margin: 0;
}

.opttab-section-subtitle {
	font-size: 0.75rem;
	color: #525252;
	margin: 0.25rem 0 0 0;
}

.opttab-live-badge {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	background: #dcfce7;
	color: #166534;
	font-size: 0.75rem;
	font-weight: 500;
}

.opttab-live-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: #16a34a;
	animation: opttab-pulse 2s infinite;
}

@keyframes opttab-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

.opttab-responses-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.opttab-response-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem;
	border: 1px solid #e5e5e5;
	border-radius: 0.5rem;
	background: white;
	transition: all 0.2s ease;
}

.opttab-response-item:hover {
	border-color: #7c3aed;
	box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.opttab-response-status {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	flex-shrink: 0;
}

.opttab-response-status.success {
	background: #16a34a;
}

.opttab-response-status.neutral {
	background: #9ca3af;
}

.opttab-response-logo {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	min-height: 32px !important;
	max-width: 32px !important;
	max-height: 32px !important;
	flex-shrink: 0 !important;
	overflow: hidden !important;
}

.opttab-response-logo img {
	width: 32px !important;
	height: 32px !important;
	max-width: 32px !important;
	max-height: 32px !important;
	object-fit: contain !important;
	border-radius: 50% !important;
	display: block !important;
}

.opttab-response-content {
	flex: 1;
	min-width: 0;
}

.opttab-response-prompt {
	font-size: 0.875rem;
	font-weight: 500;
	color: #171717;
	margin-bottom: 0.25rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.opttab-response-preview {
	font-size: 0.75rem;
	color: #525252;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.opttab-response-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.25rem;
	flex-shrink: 0;
}

.opttab-response-model {
	font-size: 0.75rem;
	font-weight: 500;
	color: #7c3aed;
}

.opttab-response-time {
	font-size: 0.75rem;
	color: #737373;
}

/* Admin Plan Badge */
.opttab-plan-admin {
	background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
	color: white;
}

.opttab-plan-professional {
	background: #dbeafe;
	color: #1e40af;
}

.opttab-plan-agency {
	background: #e0e7ff;
	color: #4338ca;
}

/* ===== PROMPTS PAGE STYLES (Matching opttab.com) ===== */

.opttab-prompts-page .opttab-period-filters {
	margin-bottom: 1.5rem;
}

/* Charts Grid */
.opttab-prompts-charts {
	display: grid;
	grid-template-columns: 1fr 3fr;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
	.opttab-prompts-charts {
		grid-template-columns: 1fr;
	}
}

.opttab-chart-small,
.opttab-chart-large {
	background: white;
	border: 1px solid #e5e5e5;
	border-radius: 0.5rem;
	padding: 1rem;
}

/* Donut Chart */
.opttab-donut-chart-container {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 1rem !important;
}

.opttab-donut-chart {
	width: 150px !important;
	height: 150px !important;
	min-width: 150px !important;
	min-height: 150px !important;
	max-width: 150px !important;
	max-height: 150px !important;
	position: relative !important;
}

.opttab-donut-chart svg {
	width: 150px !important;
	height: 150px !important;
	max-width: 150px !important;
	max-height: 150px !important;
	transform: rotate(-90deg) !important;
	display: block !important;
}

.opttab-donut-segment {
	transition: all 0.3s ease !important;
}

.opttab-donut-center {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	text-align: center !important;
}

.opttab-donut-value {
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	color: #171717 !important;
}

.opttab-donut-label {
	font-size: 0.75rem !important;
	color: #525252 !important;
}

.opttab-donut-legend {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.5rem !important;
	width: 100% !important;
}

.opttab-prompts-page .opttab-legend-item {
	display: flex !important;
	align-items: center !important;
	gap: 0.5rem !important;
	font-size: 0.75rem !important;
}

.opttab-prompts-page .opttab-legend-color {
	width: 10px !important;
	height: 10px !important;
	min-width: 10px !important;
	min-height: 10px !important;
	border-radius: 50% !important;
	flex-shrink: 0 !important;
}

.opttab-prompts-page .opttab-legend-label {
	flex: 1 !important;
	color: #525252 !important;
}

.opttab-prompts-page .opttab-legend-value {
	font-weight: 600 !important;
	color: #171717 !important;
}

/* Line Chart */
.opttab-line-chart {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 150px;
	padding-bottom: 20px;
}

.opttab-chart-bar-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	position: relative;
}

.opttab-chart-bar {
	width: 100%;
	max-width: 30px;
	background: linear-gradient(to top, #7c3aed, #a855f7);
	border-radius: 4px 4px 0 0;
	transition: all 0.3s ease;
	min-height: 2px;
}

.opttab-chart-bar-wrapper:hover .opttab-chart-bar {
	opacity: 0.8;
}

.opttab-chart-date {
	position: absolute;
	bottom: -20px;
	font-size: 0.625rem;
	color: #9ca3af;
	white-space: nowrap;
	display: none;
}

.opttab-chart-bar-wrapper:nth-child(7n+1) .opttab-chart-date {
	display: block;
}

/* Actions Bar */
.opttab-actions-bar {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.opttab-actions-bar .button {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.opttab-actions-bar .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Prompts List */
.opttab-prompts-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.opttab-prompt-card {
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	padding: 1rem 1.25rem;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.opttab-prompt-card:hover {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	border-color: #d1d5db;
}

.opttab-prompt-card-header {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.opttab-prompt-icon {
	width: 2rem;
	height: 2rem;
	background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
	border-radius: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.opttab-prompt-icon .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	color: white;
}

.opttab-prompt-content {
	flex: 1;
	min-width: 0;
}

.opttab-prompt-text {
	font-size: 0.875rem;
	font-weight: 600;
	color: #111827;
	line-height: 1.4;
	margin-bottom: 0.5rem;
}

.opttab-prompt-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.opttab-prompt-models {
	display: flex !important;
	align-items: center !important;
	margin-left: 4px !important;
}

.opttab-model-logo {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	min-height: 20px !important;
	max-width: 20px !important;
	max-height: 20px !important;
	border-radius: 50% !important;
	background: white !important;
	border: 2px solid white !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
	margin-left: -8px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	overflow: hidden !important;
}

.opttab-model-logo:first-child {
	margin-left: 0 !important;
}

.opttab-model-logo img {
	width: 16px !important;
	height: 16px !important;
	max-width: 16px !important;
	max-height: 16px !important;
	object-fit: contain !important;
	display: block !important;
}

.opttab-model-more {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	min-height: 20px !important;
	border-radius: 50% !important;
	background: #f3f4f6 !important;
	border: 2px solid white !important;
	margin-left: -8px !important;
	font-size: 10px !important;
	font-weight: 600 !important;
	color: #6b7280 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.opttab-prompt-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.opttab-prompt-card:hover .opttab-prompt-actions {
	opacity: 1;
}

.opttab-prompt-actions button {
	padding: 0.25rem 0.5rem;
	border: none;
	background: #f3f4f6;
	border-radius: 0.25rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.opttab-prompt-actions button:hover {
	background: #e5e7eb;
}

.opttab-prompt-actions .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #6b7280;
}

.opttab-prompt-card-stats {
	display: flex;
	gap: 2rem;
	margin-bottom: 0.75rem;
	padding-left: 2.75rem;
}

.opttab-prompt-stat {
	display: flex;
	flex-direction: column;
}

.opttab-prompt-stat-value {
	font-size: 1rem;
	font-weight: 700;
	color: #171717;
}

.opttab-prompt-stat-label {
	font-size: 0.75rem;
	color: #6b7280;
}

.opttab-prompt-preview {
	padding-left: 2.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid #f3f4f6;
}

.opttab-preview-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.25rem;
}

.opttab-preview-model {
	font-size: 0.75rem;
	font-weight: 500;
	color: #7c3aed;
}

.opttab-preview-time {
	font-size: 0.75rem;
	color: #9ca3af;
}

.opttab-preview-text {
	font-size: 0.75rem;
	color: #525252;
	line-height: 1.5;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* AI Models Grid in Modal */
.opttab-ai-models-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0.75rem;
}

.opttab-ai-model-card {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem;
	border: 2px solid #e5e7eb;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
}

.opttab-ai-model-card:hover {
	border-color: #c4b5fd;
}

.opttab-ai-model-card input {
	display: none;
}

.opttab-ai-model-card input:checked + .opttab-ai-model-content + .opttab-ai-model-check {
	display: flex;
}

.opttab-ai-model-card input:checked ~ .opttab-ai-model-content,
.opttab-ai-model-card input:checked + .opttab-ai-model-content {
	color: #7c3aed;
}

.opttab-ai-model-card:has(input:checked) {
	border-color: #7c3aed;
	background: #f5f3ff;
}

.opttab-ai-model-content {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1;
}

.opttab-ai-model-logo {
	width: 24px !important;
	height: 24px !important;
	max-width: 24px !important;
	max-height: 24px !important;
	object-fit: contain !important;
	display: block !important;
}

.opttab-ai-model-name {
	font-size: 0.875rem;
	font-weight: 500;
	color: inherit;
}

.opttab-ai-model-check {
	display: none;
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 1rem;
	height: 1rem;
	background: #7c3aed;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
}

.opttab-ai-model-check .dashicons {
	font-size: 12px;
	width: 12px;
	height: 12px;
	color: white;
}

/* Modal sizes */
.opttab-modal-lg .opttab-modal-content {
	max-width: 600px;
}

.opttab-modal-xl .opttab-modal-content {
	max-width: 900px;
}

/* Responses Grid */
.opttab-responses-grid {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.opttab-response-card {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	padding: 1rem;
}

.opttab-response-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
}

.opttab-response-model {
	font-size: 0.875rem;
	font-weight: 600;
	color: #7c3aed;
}

.opttab-response-date {
	font-size: 0.75rem;
	color: #9ca3af;
}

.opttab-response-body {
	margin-bottom: 0.75rem;
}

.opttab-response-text {
	font-size: 0.875rem;
	color: #374151;
	line-height: 1.6;
	max-height: 150px;
	overflow-y: auto;
}

.opttab-response-footer {
	border-top: 1px solid #e5e7eb;
	padding-top: 0.75rem;
}

.opttab-visibility-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.75rem;
	font-weight: 500;
}

.opttab-visibility-badge.mentioned {
	background: #dcfce7;
	color: #166534;
}

.opttab-visibility-badge.not-mentioned {
	background: #f3f4f6;
	color: #6b7280;
}

.opttab-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 2rem;
	color: #6b7280;
}

.opttab-error {
	text-align: center;
	padding: 2rem;
	color: #dc2626;
}

