/**
 * Bearmor Security Dashboard - Modern Design
 * Professional white base with purple accents
 */

/* ===========================
   Dashboard Container
   =========================== */

.bearmor-dashboard {
	width: calc(100% - 20px);
}

.bearmor-ai-response {
	font-size: 12px !important;
	line-height: 130% !important;
	max-height: 180px;
	overflow-y: auto;
}

/* ===========================
   Top Row Layout
   =========================== */

.bearmor-top-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 24px;
}

@media (max-width: 960px) {
	.bearmor-top-row {
		grid-template-columns: 1fr;
	}
}

/* Dashboard title + plan badge */
.bearmor-dashboard-title {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bearmor-plan-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: #fff;
	cursor: help;
	line-height: 1.4;
}

.bearmor-plan-pro {
	background: linear-gradient(135deg, #8269FF 0%, #6B52E8 100%);
	box-shadow: 0 2px 6px rgba(130, 105, 255, 0.35);
}

.bearmor-plan-free {
	background: #9ca3af;
}

/* ===========================
   Security State Card
   (replaces the legacy numeric score circle)
   =========================== */

.bearmor-state-card {
	border-radius: 12px;
	padding: 16px 16px 10px 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: all 0.3s ease;
}

.bearmor-state-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Per-state gradient backgrounds */
.bearmor-state-good {
	background: linear-gradient(135deg, #16a34a 0%, #4ade80 100%);
}

.bearmor-state-needs_attention {
	background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
	color: rgba(0, 0, 0, 0.8);
}

/* Yellow background → use dark text everywhere for legibility. */
.bearmor-state-needs_attention .bearmor-state-tagline,
.bearmor-state-needs_attention .bearmor-state-row,
.bearmor-state-needs_attention a.bearmor-state-row,
.bearmor-state-needs_attention a.bearmor-state-row:hover,
.bearmor-state-needs_attention .bearmor-state-row-detail,
.bearmor-state-needs_attention .bearmor-state-row-arrow,
.bearmor-state-needs_attention a.bearmor-state-row:hover .bearmor-state-row-arrow {
	color: rgba(0, 0, 0, 0.8);
}

.bearmor-state-critical {
	background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.bearmor-state-excellent {
	background: linear-gradient(135deg, #7267EF 0%, #9D8FFF 100%);
}

/* Header — badge + tagline */
.bearmor-state-header {
	text-align: center;
	padding: 4px 0 6px 0;
}

.bearmor-state-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.35);
	padding: 6px 14px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.bearmor-state-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
	animation: bearmor-pulse 2s infinite ease-out;
}

.bearmor-state-critical .bearmor-state-dot {
	animation: bearmor-pulse-fast 1.2s infinite ease-out;
}

@keyframes bearmor-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
	70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes bearmor-pulse-fast {
	0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
	70%  { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.bearmor-state-tagline {
	margin-top: 8px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.92);
	font-weight: 500;
}

/* Checklist — two columns */
.bearmor-state-checklist-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 10px;
}

@media (max-width: 780px) {
	.bearmor-state-checklist-grid {
		grid-template-columns: 1fr;
	}
}

.bearmor-state-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bearmor-state-checklist li {
	margin: 0;
	padding: 0;
}

.bearmor-state-row {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 6px 10px;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
	min-height: 32px;
}

a.bearmor-state-row:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateX(2px);
	color: #fff;
	text-decoration: none;
}

.bearmor-state-row-icon {
	flex: 0 0 18px;
	height: 18px;
	width: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.3);
	line-height: 1;
}

.bearmor-state-row-warn .bearmor-state-row-icon {
	background: rgba(255, 255, 255, 0.95);
	color: #b45309;
	border-color: rgba(255, 255, 255, 1);
}

.bearmor-state-row-fail .bearmor-state-row-icon {
	background: #fff;
	color: #b91c1c;
	border-color: #fff;
}

.bearmor-state-row-ok .bearmor-state-row-icon {
	background: rgba(255, 255, 255, 0.95);
	color: #15803d;
	border-color: #fff;
}

.bearmor-state-row-locked .bearmor-state-row-icon {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.25);
	font-size: 10px;
}

.bearmor-state-row-locked {
	opacity: 0.65;
}

.bearmor-state-row-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: baseline;
	gap: 6px;
	overflow: hidden;
}

.bearmor-state-row-label {
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.25;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex: 0 0 auto;
}

.bearmor-state-pro-tag {
	font-size: 9px;
	font-weight: 700;
	padding: 1px 4px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.25);
	letter-spacing: 0.5px;
	border: 1px solid rgba(255, 255, 255, 0.4);
}

.bearmor-state-row-detail {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1 1 auto;
	min-width: 0;
}

/* Subtle separator between label and detail */
.bearmor-state-row-detail::before {
	content: "·";
	margin-right: 5px;
	opacity: 0.6;
}

/* Narrow widget — wrap detail under label gracefully.
   The state card is now half-width, so keep inline layout
   until the viewport is actually small. */
@media (max-width: 780px) {
	.bearmor-state-row-body {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}
	.bearmor-state-row-detail::before {
		display: none;
	}
}

.bearmor-state-row-arrow {
	flex: 0 0 auto;
	font-size: 18px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1;
}

a.bearmor-state-row:hover .bearmor-state-row-arrow {
	color: #fff;
}

/* Mobile — preserve readability */
@media (max-width: 782px) {
	.bearmor-state-card {
		min-height: 0;
	}
	.bearmor-state-row-detail {
		white-space: normal;
	}
}

/* ===========================
   Widgets Grid
   =========================== */

.bearmor-widgets-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 24px;
}

.bearmor-widgets-grid > :nth-last-child(2),
.bearmor-widgets-grid > :nth-last-child(1) {
	grid-column: span 2;
}

/* Uptime widget - 75% width (3 out of 4 columns) */
.bearmor-widget-uptime {
	grid-column: span 3 !important;
}

/* File Changes - 25% width (1 column) */
.bearmor-widget-file-changes {
	grid-column: span 1 !important;
}

/* ===========================
   Widget Cards - Modern Clean Design
   =========================== */

.bearmor-widget {
	background: #ffffff;
	border-radius: 12px;
	padding: 3px 20px 20px 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	position: relative;
	overflow: visible;
	border: 1px solid #f3f4f6;

}

/* Dashboard widgets need bottom padding for buttons */
.bearmor-dashboard .bearmor-widget {
	padding-bottom: 60px;
}



/* ===========================
   Widget Header - Title Left, Icon Right
   =========================== */

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

.bearmor-widget-title-section {
	flex: 1;
}

.bearmor-widget-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.3s ease;
	margin-top: -2px; /* Align with title baseline */
}

.bearmor-widget-icon .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #7267EF;
	transition: all 0.3s ease;
}

.bearmor-widget:hover .bearmor-widget-icon .dashicons {
	color: #9D8FFF;
}

/* Status-specific icon colors - keep purple for all */
.bearmor-widget.status-critical .bearmor-widget-icon .dashicons,
.bearmor-widget.status-warning .bearmor-widget-icon .dashicons,
.bearmor-widget.status-good .bearmor-widget-icon .dashicons {
	color: #7267EF;
}

/* ===========================
   Widget Content
   =========================== */

.bearmor-widget-content h3 {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin: 0 0 4px 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1;
}

.bearmor-widget-subtitle {
	font-size: 11px;
	color: #9ca3af;
	margin: 0;
	line-height: 1.4;
}

/* Widget Info Icon - Bottom Right Corner */
.bearmor-widget-info {
	position: absolute;
	bottom: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	cursor: help;
	color: #d1d5db;
	border: 1px solid #d1d5db;
	border-radius: 50%;
	background: transparent;
	transition: all 0.2s;
	z-index: 100;
}

.bearmor-widget-info:hover {
	background: #7267EF;
	color: #fff;
	border-color: #7267EF;
}

.bearmor-widget-info .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

/* Info Tooltip */
.bearmor-widget-info-tooltip {
	display: none;
	position: absolute;
	bottom: calc(100% + 10px);
	right: -10px;
	padding: 8px 12px;
	background: #1f2937;
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	border-radius: 6px;
	white-space: nowrap;
	z-index: 99999;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	pointer-events: none;
}

.bearmor-widget-info-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	right: 15px;
	border: 5px solid transparent;
	border-top-color: #1f2937;
}

.bearmor-widget-info:hover .bearmor-widget-info-tooltip {
	display: block;
}

/* Uptime Bar Tooltip */
.bearmor-uptime-bar-tooltip {
	display: none;
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	padding: 6px 10px;
	background: #1f2937;
	color: #fff;
	font-size: 11px;
	border-radius: 4px;
	white-space: nowrap;
	z-index: 99999;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	pointer-events: none;
}

.bearmor-uptime-bar-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 4px solid transparent;
	border-top-color: #1f2937;
}

.bearmor-uptime-bar:hover .bearmor-uptime-bar-tooltip {
	display: block;
}

.bearmor-widget-value {
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
	margin: 8px 0;
	color: #1f2937;
}

.bearmor-widget-label {
	font-size: 12px;
	color: #6b7280;
	margin: 4px 0 12px 0;
}

/* Value + Label on same line */
.bearmor-widget-stats {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	margin: 12px 0;
}

.bearmor-widget-stats .bearmor-widget-value {
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	margin: 0;
	color: #1f2937;
}

.bearmor-widget-stats .bearmor-widget-label {
	font-size: 13px;
	color: #6b7280;
	margin: 0;
	padding-bottom: 4px;
	line-height: 1;
}

/* Status colors for values */
.bearmor-value-critical {
	background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.bearmor-value-warning {
	background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.bearmor-value-good {
	background: linear-gradient(135deg, #059669 0%, #10b981 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ===========================
   Widget Details & Meta
   =========================== */

.bearmor-widget-meta {
	font-size: 12px;
	color: #6b7280;
	margin: 8px 0;
	display: flex;
	align-items: center;
	gap: 6px;
	line-height: 1;
}

.bearmor-widget-meta .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	line-height: 1;
}

.bearmor-widget-details {
	font-size: 12px;
	color: #4b5563;
	margin: 12px 0;
	padding: 12px;
	background: #f9fafb;
	border-radius: 12px;
	border-left: 2px solid #7267EF;
}

.bearmor-widget-details div:first-child
{
	font-size: 10px !important;
	margin-bottom: 0 !important;
}

.bearmor-widget-details-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3px 0;
	border-bottom: 1px solid #e5e7eb;
}

.bearmor-widget-details-item:last-child {
	border-bottom: none;
}

.bearmor-widget-details-label {
	color: #6b7280;
	font-size: 11px;
}

.bearmor-widget-details-value {
	font-weight: 600;
	color: #374151;
	font-size: 11px !important;;
}

/* ===========================
   Threat Badges
   =========================== */

.bearmor-threat-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	margin: 4px 4px 4px 0;
}

.bearmor-threat-badge.high {
	background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
	color: #dc2626;
}

.bearmor-threat-badge.medium {
	background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
	color: #ea580c;
}

.bearmor-threat-badge.low {
	background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
	color: #059669;
}

/* ===========================
   Empty State
   =========================== */

.bearmor-empty-state {
	text-align: center;
	padding: 20px 0;
}

.bearmor-empty-state-icon {
	font-size: 48px;
	margin-bottom: 12px;
	opacity: 0.3;
	color: #7267EF;
}

.bearmor-empty-state-icon .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
}

.bearmor-empty-state-text {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 8px;
}

.bearmor-empty-state-subtext {
	font-size: 12px;
	color: #9ca3af;
}

/* ===========================
   Widget Actions
   ===========================/* Widget Actions - Bottom Left Corner */
.bearmor-widget-action {
	position: absolute;
	bottom: 20px;
	left: 20px;
	display: inline-block;
	padding: 8px 16px;
	background: transparent;
	color: #7267EF;
	text-decoration: none;
	border: 1px solid #7267EF;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.2s ease;
	z-index: 10;
}

.bearmor-widget-action:hover {
	background: #7267EF;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(114, 103, 239, 0.3);
}

/* ===========================
   Quick Actions
   =========================== */

.bearmor-quick-actions {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	border: 1px solid #e5e7eb;
}


.bearmor-actions-grid {
	display: grid;
	gap: 12px;
}

.bearmor-action-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	text-decoration: none;
	color: #374151;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.bearmor-action-card:hover {
	background: #7267EF;
	color: #fff;
	border-color: #7267EF;
	transform: translateX(2px);
}

.bearmor-action-card .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* ===========================
   AI Summary Card
   =========================== */

.bearmor-ai-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	border: 1px solid #f3f4f6;
	position: relative;
	overflow: hidden;
}

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

.bearmor-ai-title {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #374151;
}

.bearmor-ai-title .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.bearmor-ai-content {
	font-size: 13px;
	line-height: 1.6;
	color: #6b7280;
	text-align: left;
	margin-bottom: -50px;
}

/* Color-based styling for AI Summary */
.bearmor-ai-summary-excellent .bearmor-ai-title .dashicons,
.bearmor-ai-summary-excellent .bearmor-ai-title {
	color: #059669;
}

.bearmor-ai-summary-good .bearmor-ai-title .dashicons,
.bearmor-ai-summary-good .bearmor-ai-title {
	color: #0891b2;
}

.bearmor-ai-summary-warning .bearmor-ai-title .dashicons,
.bearmor-ai-summary-warning .bearmor-ai-title {
	color: #f59e0b;
}

.bearmor-ai-summary-critical .bearmor-ai-title .dashicons,
.bearmor-ai-summary-critical .bearmor-ai-title {
	color: #dc2626;
}

/* ===========================
   Pro Badge
   =========================== */

.bearmor-widget-pro {
	opacity: 0.7;
}

.bearmor-pro-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: linear-gradient(135deg, #7267EF 0%, #9D8FFF 100%);
	color: #fff;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(114, 103, 239, 0.3);
}

/* ===========================
   Table Styles - Modern Design
   =========================== */

.wp-list-table {
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	background: #ffffff;
}

.wp-list-table thead th {
	background: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
	font-weight: 600;
	font-size: 13px;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 14px 12px;
}

.wp-list-table tbody td {
	border-bottom: 1px solid #f3f4f6;
	padding: 14px 12px;
	vertical-align: middle;
	font-size: 14px;
	color: #374151;
}

.wp-list-table tbody tr:hover {
	background: #f9fafb;
}

.wp-list-table tbody tr:last-child td {
	border-bottom: none;
}

/* Status badges */
.bearmor-status-success {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
	color: #059669;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bearmor-status-success::before {
	content: '';
	width: 6px;
	height: 6px;
	background: #059669;
	border-radius: 50%;
}

.bearmor-status-failed {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
	color: #dc2626;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bearmor-status-failed::before {
	content: '';
	width: 6px;
	height: 6px;
	background: #dc2626;
	border-radius: 50%;
}

/* Code styling in tables */
.wp-list-table code {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	padding: 2px 6px;
	font-size: 12px;
	color: #6b7280;
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Empty state styling */
.wp-list-table tbody td[colspan] {

	padding: 40px 20px !important;
	color: #9ca3af !important;
	font-size: 14px !important;
	background: #f9fafb !important;
}

/* Anomaly/* Action badges */
.bearmor-action-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	padding: 4px 8px;
	background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
	color: #4f46e5;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
}

/* Anomaly score badges */
.bearmor-score-high {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	padding: 4px 8px;
	background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
	color: #dc2626;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
}

.bearmor-score-medium {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	padding: 4px 8px;
	background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
	color: #ea580c;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
}

.bearmor-score-low {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	padding: 4px 8px;
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
	color: #6b7280;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
}

/* Severity badges */
.bearmor-severity-critical {
	display: inline-block;
	padding: 4px 10px;
	background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
	color: #991b1b;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bearmor-severity-high {
	display: inline-block;
	padding: 4px 10px;
	background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
	color: #dc2626;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bearmor-severity-medium {
	display: inline-block;
	padding: 4px 10px;
	background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
	color: #ea580c;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bearmor-severity-low {
	display: inline-block;
	padding: 4px 10px;
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
	color: #6b7280;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Stat Cards */
.bearmor-stat-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	border: 1px solid #e5e7eb;
	transition: all 0.3s ease;
}


.bearmor-stat-card h3 {
	margin: 0;
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
}

.bearmor-stat-card p {
	margin: 8px 0 0 0;
	color: #6b7280;
	font-size: 14px;
	font-weight: 500;
}

.bearmor-stat-critical h3 {
	color: #991b1b;
}

.bearmor-stat-high h3 {
	color: #dc2626;
}

.bearmor-stat-medium h3 {
	color: #ea580c;
}

.bearmor-stat-low h3 {
	color: #16a34a;
}

/* Generic badges */
.bearmor-badge-secondary {
	display: inline-block;
	padding: 4px 10px;
	background: #f3f4f6;
	color: #6b7280;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
}

.bearmor-badge-danger {
	display: inline-block;
	padding: 4px 10px;
	background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
	color: #991b1b;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
}

/* Threat count badge */
.bearmor-threat-count-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #374151;
}

.bearmor-threat-count-badge .count {
	font-size: 12px;
	font-weight: 700;
	color: #dc2626;
}

/* ===========================
   Help/Info Section - Modern Design
   =========================== */

.bearmor-help-section {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
	margin: 20px 0;
}

.bearmor-help-section h3 {
	margin: 0 0 16px 0;
	font-size: 16px;
	font-weight: 600;
	color: #374151;
	display: flex;
	align-items: center;
	gap: 8px;
}

.bearmor-help-section h3 .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #7267EF;
}

.bearmor-help-section ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bearmor-help-section li {
	padding: 8px 0;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.bearmor-help-section li:last-child {
	border-bottom: none;
}

.bearmor-help-section .severity-indicator {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

.bearmor-help-section .severity-indicator.high {
	color: #dc2626;
}

.bearmor-help-section .severity-indicator.medium {
	color: #ea580c;
}

.bearmor-help-section .severity-indicator.low {
	color: #059669;
}

.bearmor-help-section .severity-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.bearmor-help-section .severity-dot.high {
	background: #dc2626;
}

.bearmor-help-section .severity-dot.medium {
	background: #ea580c;
}

.bearmor-help-section .severity-dot.low {
	background: #059669;
}

.bearmor-help-section .actions-list {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e5e7eb;
}

.bearmor-help-section .actions-list h4 {
	margin: 0 0 12px 0;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
}

.bearmor-help-section .action-item {
	padding: 8px 0;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.bearmor-help-section .action-item strong {
	color: #7267EF;
	font-weight: 600;
	min-width: 100px;
}

.bearmor-help-section .action-item span {
	color: #6b7280;
	font-size: 14px;
	line-height: 1.5;
}

/* ===========================
   Pagination - Modern Design
   =========================== */

.bearmor-pagination {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 20px 0;
	padding: 16px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.bearmor-pagination a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #ffffff;
	transition: all 0.2s ease;
}

.bearmor-pagination a:hover {
	background: #7267EF;
	color: #ffffff;
	border-color: #7267EF;
	transform: translateY(-1px);
}

.bearmor-pagination a.current {
	background: #7267EF;
	color: #ffffff;
	border-color: #7267EF;
	font-weight: 600;
}

/* WordPress default pagination override */
.tablenav-pages {
	margin: 20px 0;
}

.tablenav-pages .pagination-links {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tablenav-pages .pagination-links a,
.tablenav-pages .pagination-links span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #ffffff;
	transition: all 0.2s ease;
}

.tablenav-pages .pagination-links a:hover {
	background: #7267EF;
	color: #ffffff;
	border-color: #7267EF;
	transform: translateY(-1px);
}

.tablenav-pages .pagination-links span.current {
	background: #7267EF;
	color: #ffffff;
	border-color: #7267EF;
	font-weight: 600;
}

.tablenav-pages .pagination-links .paging-input {
	margin: 0 12px;
	color: #6b7280;
	font-size: 13px;
}

/* ===========================
   Dashicons - Ensure visibility
   =========================== */

.dashicons {
	display: inline-block;
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 1;
	vertical-align: middle;
}

/* ===========================
   Form Elements - Modern Design
   =========================== */

.bearmor-input {
	padding: 8px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 100px;
	font-size: 14px;
	color: #374151;
	background: #ffffff;
	transition: all 0.2s ease;
	min-width: 150px;
}

.bearmor-input:focus {
	outline: none;
	border-color: #7267EF;
	box-shadow: 0 0 0 3px rgba(114, 103, 239, 0.1);
}

.bearmor-select {
	padding: 8px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 100px;
	font-size: 14px;
	color: #374151;
	background: #ffffff;
	transition: all 0.2s ease;
	min-width: 150px;
	cursor: pointer;
}

.bearmor-select:focus {
	outline: none;
	border-color: #7267EF;
	box-shadow: 0 0 0 3px rgba(114, 103, 239, 0.1);
}

/* ===========================
   Tab Navigation - Modern Design
   =========================== */

.nav-tab-wrapper {
	border-bottom: none;
	margin: 20px 0 0 0;
	padding: 0;
	line-height: 1;
}

.nav-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	margin: 0;
	border: 1px solid transparent;

	background: transparent;
	color: #6b7280;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;

	transition: all 0.2s ease;
	border-radius: 6px !important;
}

.nav-tab:hover {
	background: #f9fafb;
	color: #374151;

}

.nav-tab.nav-tab-active {
	background: #ffffff;
	border: 1px solid #e5e7eb;

	margin-bottom: -1px;
	color: #7267EF;
	font-weight: 600;
}

.tab-content {
	background: #ffffff;
	padding: 20px !important;
	border-radius: 20px;
}

/* ===========================
   Button Styles - Modern Design
   =========================== */

/* Base button style */
.bearmor-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	border: 1px solid transparent;
	line-height: 1;
}

.bearmor-button .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* Primary button (filled purple) */
.bearmor-button-primary {
	background: #7267EF;
	color: #fff;
	border-color: #7267EF;
}

.bearmor-button-primary:hover {
	background: #5B4FD8;
	border-color: #5B4FD8;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(114, 103, 239, 0.3);
}

/* Secondary button (outline purple) */
.bearmor-button-secondary {
	background: transparent;
	color: #7267EF;
	border-color: #7267EF;
}

.bearmor-button-secondary:hover {
	background: #7267EF;
	border-color: #7267EF;
	color: #fff;
	transform: translateY(-1px);
}

/* Danger button (filled red) */
.bearmor-button-danger {
	background: #dc2626;
	color: #fff;
	border-color: #dc2626;
}

.bearmor-button-danger:hover {
	background: #b91c1c;
	border-color: #b91c1c;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Danger outline button */
.bearmor-button-danger-outline {
	background: transparent;
	color: #dc2626;
	border-color: #dc2626;
}

.bearmor-button-danger-outline:hover {
	background: #dc2626;
	border-color: #dc2626;
	color: #fff;
	transform: translateY(-1px);
}

/* Success button (filled green) */
.bearmor-button-success {
	background: #059669;
	color: #fff;
	border-color: #059669;
}

.bearmor-button-success:hover {
	background: #047857;
	border-color: #047857;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 1400px) {
	.bearmor-widgets-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.bearmor-widgets-grid > :nth-last-child(2),
	.bearmor-widgets-grid > :nth-last-child(1) {
		grid-column: span 1;
	}
}

@media (max-width: 782px) {
	.bearmor-top-row {
		grid-template-columns: 1fr;
	}
	
	.bearmor-top-row > * {
		grid-column: span 1 !important;
	}
	
	.bearmor-widgets-grid {
		grid-template-columns: 1fr;
	}
	
	.bearmor-widgets-grid > * {
		grid-column: span 1 !important;
	}
	
	/* Uptime widget - horizontal scroll for chart */
	.bearmor-widget-uptime {
		max-width: 100%;
		overflow: hidden;
	}
	
	.bearmor-uptime-hybrid-chart {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 10px;
	}
	
	.bearmor-uptime-hybrid-chart > div {
		min-width: max-content;
	}
	
	/* All widgets - prevent overflow */
	.bearmor-widget {
		max-width: 100%;
		overflow: hidden;
	}
	
	/* Login Security & Security Logs - Stack two-column layouts */
	.bearmor-two-column-grid {
		grid-template-columns: 1fr !important;
	}
	
	/* Settings tab navigation - wrap nicely */
	.nav-tab-wrapper {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}
	
	.nav-tab {
		flex: 0 0 auto;
		padding: 8px 12px;
		font-size: 13px;
	}
	
	/* Table action buttons - stack vertically */
	.wp-list-table td .bearmor-btn-quarantine,
	.wp-list-table td .bearmor-btn-safe,
	.wp-list-table td .bearmor-button {
		display: block;
		width: 100%;
		margin-bottom: 5px;
		text-align: center;
		white-space: nowrap;
	}
	
	/* File changes table - make actions column wider */
	.wp-list-table th:last-child,
	.wp-list-table td:last-child {
		min-width: 90px;
	}
	
	/* Severity badges - smaller on mobile */
	.bearmor-severity-critical,
	.bearmor-severity-high,
	.bearmor-severity-medium,
	.bearmor-severity-low {
		padding: 3px 6px;
		font-size: 10px;
	}
	
	/* Widget stats - smaller text */
	.bearmor-widget-stats .bearmor-widget-value {
		font-size: 28px;
	}
	
	/* Tables - horizontal scroll wrapper */
	.wp-list-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Extra small screens */
@media (max-width: 480px) {
	.nav-tab {
		padding: 6px 10px;
		font-size: 12px;
	}
	
	.nav-tab .dashicons {
		font-size: 16px;
		width: 16px;
		height: 16px;
	}
	
	/* Stack form elements */
	.bearmor-widget form[style*="display: flex"] {
		flex-direction: column !important;
		align-items: stretch !important;
	}
	
	.bearmor-widget form .bearmor-select,
	.bearmor-widget form .bearmor-input {
		width: 100%;
		min-width: unset;
	}
	
	/* Smaller widget padding */
	.bearmor-widget {
		padding: 12px;
	}
	
	.bearmor-dashboard .bearmor-widget {
		padding-bottom: 50px;
	}
}

.bearmor-ai-icon-btn span
{
	color: #d1d5db;
}

.bearmor-ai-icon-btn
{
	padding: 6px !important;
}


.bearmor-ai-icon-btn:hover
{
	background-color: #7267EF !important;
	border-radius: 100px !important;
}

.bearmor-ai-icon-btn:hover span{
	color: white;
}

.bearmor-security_page_bearmor-malware-alerts .bearmor-widget:first-child
{
	padding-top: 20px;
}

.bearmor-security_page_bearmor-malware-alerts  .bearmor-help-text
{
	margin-bottom: 0;;
}