/**
 * ContentCortex – Outdated Content Alerts - Admin Styles
 */

/* Badges */
.ocap-badge,
.sct-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}

.ocap-badge-amber,
.sct-badge-amber {
	background-color: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
}

.ocap-badge-red,
.sct-badge-red {
	background-color: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.ocap-badge-green,
.sct-badge-green {
	background-color: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.ocap-post-type-badge,
.sct-post-type-badge {
	display: inline-block;
	padding: 2px 7px;
	background-color: #f1f5f9;
	color: #475569;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	border: 1px solid #e2e8f0;
}

/* Summary Strip on Report Page */
.ocap-summary-strip,
.sct-summary-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	margin: 16px 0 20px 0;
	padding: 14px 20px;
	background: #ffffff;
	border: 1px solid #c3c4c7;
	border-left: 4px solid #2563eb;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	border-radius: 4px;
}

.ocap-summary-card,
.sct-summary-card {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding-right: 18px;
	border-right: 1px solid #e2e8f0;
}

.ocap-summary-num,
.sct-summary-num {
	font-size: 26px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1;
}

.ocap-summary-label,
.sct-summary-label {
	font-size: 13px;
	color: #64748b;
	font-weight: 500;
}

.ocap-summary-types,
.sct-summary-types {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.ocap-summary-types-title,
.sct-summary-types-title {
	font-size: 13px;
	font-weight: 600;
	color: #475569;
}

.ocap-type-tags,
.sct-type-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ocap-type-tag,
.sct-type-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 12px;
	color: #334155;
}

.ocap-tag-limit,
.sct-tag-limit {
	color: #94a3b8;
}

/* Row Actions */
.ocap-action-review,
.sct-action-review {
	color: #15803d !important;
	font-weight: 500;
}

.ocap-action-exclude,
.sct-action-exclude {
	color: #b91c1c !important;
}

.ocap-action-include,
.sct-action-include {
	color: #2563eb !important;
	font-weight: 500;
}

.ocap-filter-actions .ocap-export-btn,
.sct-filter-actions .sct-export-btn {
	margin-left: 8px;
}

/* Settings Page */
.ocap-post-types-table td,
.sct-post-types-table td {
	vertical-align: middle;
}

.ocap-presets-group,
.sct-presets-group {
	display: flex;
	gap: 4px;
}

.ocap-preset-btn,
.sct-preset-btn {
	font-size: 11px !important;
	padding: 0 6px !important;
	height: 24px !important;
	line-height: 22px !important;
}

/* Email Settings Grid */
.ocap-email-settings-grid,
.sct-email-settings-grid {
	display: grid;
	grid-template-columns: minmax(400px, 1.2fr) minmax(380px, 1fr);
	gap: 24px;
	align-items: start;
	margin-top: 15px;
}

@media (max-width: 1200px) {
	.ocap-email-settings-grid,
	.sct-email-settings-grid {
		grid-template-columns: 1fr;
	}
}

.ocap-schedule-box,
.sct-schedule-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 12px 16px;
	border-radius: 4px;
	max-width: 500px;
}

.ocap-schedule-box p,
.sct-schedule-box p {
	margin: 4px 0;
}

.ocap-next-send,
.sct-next-send {
	color: #1d4ed8;
	font-weight: 600;
}

.ocap-placeholders-table,
.sct-placeholders-table {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.8;
	max-width: 500px;
}

.ocap-placeholders-table code,
.sct-placeholders-table code {
	background: #e2e8f0;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	color: #0f172a;
}

/* Email Live Preview Column */
.ocap-email-preview-col,
.sct-email-preview-col {
	background: #ffffff;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	padding: 16px 20px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	position: sticky;
	top: 45px;
}

.ocap-preview-header,
.sct-preview-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
}

.ocap-preview-header h3,
.sct-preview-header h3 {
	margin: 0;
}

.ocap-iframe-wrapper,
.sct-iframe-wrapper {
	width: 100%;
	height: 580px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	overflow: hidden;
	background: #f1f5f9;
}

.ocap-iframe-wrapper iframe,
.sct-iframe-wrapper iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* Dashboard Widget */
.ocap-dashboard-widget .ocap-widget-count-line,
.sct-dashboard-widget .sct-widget-count-line {
	font-size: 14px;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ocap-dashboard-widget .ocap-count-badge,
.sct-dashboard-widget .sct-count-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 14px;
}

.ocap-dashboard-widget .ocap-widget-list,
.sct-dashboard-widget .sct-widget-list {
	margin: 0 0 16px 0;
	padding: 0;
	list-style: none;
}

.ocap-dashboard-widget .ocap-widget-list li,
.sct-dashboard-widget .sct-widget-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 7px 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: 13px;
}

.ocap-dashboard-widget .ocap-widget-list li:last-child,
.sct-dashboard-widget .sct-widget-list li:last-child {
	border-bottom: none;
}

.ocap-widget-item-title,
.sct-widget-item-title {
	max-width: 75%;
}

.ocap-widget-type,
.sct-widget-type {
	color: #64748b;
	font-size: 11px;
	margin-left: 4px;
}
