/* ============================================================
   Aspired Chatbot — Admin Styles
   ============================================================ */

/* ----------------------------------------------------------
   Page header banner
   ---------------------------------------------------------- */
.aspich-page-header {
	display: flex;
	align-items: center;
	gap: 18px;
	background: linear-gradient( 135deg, #1e3a5f 0%, #1d4ed8 100% );
	color: #fff;
	padding: 22px 28px;
	border-radius: 8px;
	margin: 16px 0 24px;
	box-shadow: 0 2px 12px rgba( 30, 58, 95, 0.25 );
}

.aspich-page-header-icon {
	font-size: 38px;
	line-height: 1;
	flex-shrink: 0;
}

.aspich-page-header-content h2 {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 4px;
	padding: 0;
	border: 0;
}

.aspich-page-header-content p {
	margin: 0;
	color: rgba( 255, 255, 255, 0.78 );
	font-size: 13px;
	line-height: 1.5;
}

/* ----------------------------------------------------------
   Section headings
   ---------------------------------------------------------- */
.aspich-section-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #1d2327;
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 10px;
	margin: 28px 0 16px;
}

.aspich-section-heading .dashicons {
	color: #1d4ed8;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* ----------------------------------------------------------
   Analytics stat cards
   ---------------------------------------------------------- */
.aspich-analytics-cards {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
	gap: 16px;
	margin: 0 0 28px;
}

.aspich-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-top: 3px solid #1d4ed8;
	border-radius: 6px;
	padding: 20px 22px;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.06 );
}

.aspich-card:nth-child(1) { border-top-color: #3b82f6; }
.aspich-card:nth-child(2) { border-top-color: #10b981; }
.aspich-card:nth-child(3) { border-top-color: #f59e0b; }
.aspich-card:nth-child(4) { border-top-color: #8b5cf6; }

.aspich-card h2 {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #64748b;
}

.aspich-card p {
	margin: 0;
	font-size: 34px;
	font-weight: 700;
	color: #1d2327;
	line-height: 1;
}

/* ----------------------------------------------------------
   Form / content box
   ---------------------------------------------------------- */
.aspich-box {
	background: #fff;
	border: 1px solid #e2e8f0 !important;
	border-radius: 6px;
	padding: 24px 28px;
	margin: 0 0 24px;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.05 );
}

.aspich-box > h2,
.aspich-box .hndle {
	margin-top: 0;
	padding-top: 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 12px;
	margin-bottom: 16px;
	cursor: default;
}

/* ----------------------------------------------------------
   Filter bar
   ---------------------------------------------------------- */
.aspich-inline-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 12px 16px;
}

.aspich-inline-filters input[type="search"],
.aspich-inline-filters select {
	border-radius: 4px;
	border-color: #d1d5db;
	height: 32px;
	font-size: 13px;
}

/* ----------------------------------------------------------
   Scan-type toggle group
   ---------------------------------------------------------- */
.aspich-scan-toggles {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0 0 20px;
}

.aspich-scan-toggles .button {
	border-radius: 0;
	border-right-width: 0;
	height: 34px;
	line-height: 32px;
}

.aspich-scan-toggles .button:first-child {
	border-radius: 4px 0 0 4px;
}

.aspich-scan-toggles .button:last-child {
	border-radius: 0 4px 4px 0;
	border-right-width: 1px;
}

/* ----------------------------------------------------------
   Bulk toolbar
   ---------------------------------------------------------- */
.aspich-bulk-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	margin-bottom: 12px;
}

.aspich-select-all-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
}

.aspich-col-check {
	width: 32px;
}

/* ----------------------------------------------------------
   Table improvements
   ---------------------------------------------------------- */
.aspich-table-spaced {
	margin-bottom: 28px;
}

.widefat thead th {
	background: #f1f5f9;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #475569;
	font-weight: 700;
	padding: 10px 12px;
}

/* ----------------------------------------------------------
   Status / type badges
   ---------------------------------------------------------- */
.aspich-badge {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: capitalize;
	letter-spacing: 0.2px;
	white-space: nowrap;
}

.aspich-badge-approved {
	background: #dcfce7;
	color: #166534;
}

.aspich-badge-removed {
	background: #fee2e2;
	color: #991b1b;
}

.aspich-badge-pending {
	background: #fef9c3;
	color: #854d0e;
}

.aspich-badge-neutral {
	background: #f1f5f9;
	color: #475569;
}

/* ----------------------------------------------------------
   Conversation transcript — chat bubble style
   ---------------------------------------------------------- */
.aspich-transcript {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 20px 24px;
	margin-bottom: 28px;
}

.aspich-transcript-row {
	padding: 14px 0;
	border-bottom: 1px solid #e2e8f0;
}

.aspich-transcript-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.aspich-transcript-meta {
	font-size: 11px;
	color: #94a3b8;
	text-align: center;
	margin: 0 0 10px;
}

.aspich-transcript-bubbles {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.aspich-msg-user {
	align-self: flex-end;
	background: #1d4ed8;
	color: #fff;
	padding: 9px 15px;
	border-radius: 18px 18px 4px 18px;
	max-width: 75%;
	font-size: 13px;
	line-height: 1.5;
	word-break: break-word;
}

.aspich-msg-bot {
	align-self: flex-start;
	background: #fff;
	border: 1px solid #e2e8f0;
	color: #1d2327;
	padding: 9px 15px;
	border-radius: 18px 18px 18px 4px;
	max-width: 75%;
	font-size: 13px;
	line-height: 1.5;
	word-break: break-word;
	box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.06 );
}

.aspich-transcript-page {
	font-size: 11px;
	color: #94a3b8;
	text-align: center;
	margin-top: 10px;
}

/* ----------------------------------------------------------
   Description / note text
   ---------------------------------------------------------- */
.aspich-description-note {
	margin-top: 12px;
	color: #64748b;
	font-size: 12px;
	font-style: italic;
}

/* ----------------------------------------------------------
   Form helpers
   ---------------------------------------------------------- */
.aspich-form-inline {
	display: inline-block;
}

.aspich-form-inline-gap {
	display: inline-block;
	margin-right: 10px;
}

.aspich-remove-form {
	display: inline-block;
	margin-left: 6px;
}

/* ----------------------------------------------------------
   Pro feature callout
   ---------------------------------------------------------- */
.aspich-pro-callout {
	background: linear-gradient( 135deg, #f0fdf4, #dcfce7 );
	border: 1px solid #86efac;
	border-left: 4px solid #16a34a;
	border-radius: 6px;
	padding: 20px 24px;
	margin-top: 8px;
	margin-bottom: 24px;
	max-width: 720px;
}

.aspich-openai-disclosure {
	margin-top: 16px;
	color: #64748b;
	max-width: 720px;
	font-style: italic;
}

.aspich-pro-callout-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.aspich-pro-badge {
	background: #16a34a;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.aspich-pro-callout-header strong {
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.aspich-pro-callout p {
	margin: 0 0 12px;
	color: #2c3338;
	font-size: 13px;
}

.aspich-pro-callout-list {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.aspich-pro-callout-list li {
	font-size: 13px;
	color: #2c3338;
	padding: 3px 0 3px 20px;
	position: relative;
}

.aspich-pro-callout-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #16a34a;
	font-weight: 700;
}

/* ----------------------------------------------------------
   Upgrade menu label
   ---------------------------------------------------------- */
#adminmenu .aspich-upgrade-menu-label {
	display: inline-block;
	background: #16a34a;
	color: #fff;
	padding: 1px 9px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
}

/* ----------------------------------------------------------
   Upgrade page
   ---------------------------------------------------------- */
.aspich-upgrade-wrap {
	max-width: 1100px;
}

.aspich-upgrade-hero {
	background: linear-gradient( 135deg, #1e3a5f 0%, #1d4ed8 100% );
	color: #fff;
	padding: 52px 40px;
	border-radius: 8px;
	margin: 16px 0 32px;
	text-align: center;
	box-shadow: 0 4px 20px rgba( 29, 78, 216, 0.3 );
}

.aspich-upgrade-hero h1 {
	color: #fff;
	font-size: 30px;
	margin: 0 0 12px;
	letter-spacing: -0.4px;
}

.aspich-upgrade-hero p {
	font-size: 16px;
	color: rgba( 255, 255, 255, 0.82 );
	margin: 0 0 28px;
}

.aspich-upgrade-cta {
	background: #f59e0b !important;
	border-color: #d97706 !important;
	color: #1c1917 !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	padding: 10px 30px !important;
	height: auto !important;
	border-radius: 6px !important;
	text-decoration: none !important;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.2 ) !important;
}

.aspich-upgrade-cta:hover {
	background: #d97706 !important;
	border-color: #b45309 !important;
	color: #1c1917 !important;
}

.aspich-upgrade-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 300px, 1fr ) );
	gap: 20px;
	margin-bottom: 32px;
}

.aspich-upgrade-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 28px;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.06 );
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.aspich-upgrade-card:hover {
	box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.1 );
	transform: translateY( -2px );
}

.aspich-upgrade-card-icon {
	font-size: 32px;
	margin-bottom: 14px;
	line-height: 1;
}

.aspich-upgrade-card h2 {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 10px;
	color: #1e3a5f;
}

.aspich-upgrade-card p {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 16px;
	line-height: 1.65;
}

.aspich-upgrade-card ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid #f1f5f9;
	padding-top: 14px;
}

.aspich-upgrade-card ul li {
	font-size: 12px;
	color: #374151;
	padding: 3px 0 3px 20px;
	position: relative;
}

.aspich-upgrade-card ul li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #16a34a;
	font-weight: 700;
}

.aspich-upgrade-footer {
	text-align: center;
	padding: 8px 0 40px;
}
