/**
 * AtomicEdge Admin Styles
 *
 * @package AtomicEdge
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

.atomicedge-wrap {
	max-width: 1200px;
}

.atomicedge-wrap h1 {
	display: flex;
	align-items: center;
	gap: 10px;
}

.atomicedge-logo {
	height: 32px;
	width: auto;
	vertical-align: middle;
}

/* ==========================================================================
   Welcome / Not Connected State
   ========================================================================== */

.atomicedge-welcome {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 30px;
	margin-top: 20px;
}

.atomicedge-welcome-header {
	text-align: center;
	margin-bottom: 30px;
}

.atomicedge-welcome-header h2 {
	font-size: 24px;
	margin-bottom: 10px;
}

.atomicedge-connect-box {
	max-width: 600px;
	margin: 0 auto 40px;
	padding: 25px;
	background: #f6f7f7;
	border-radius: 4px;
}

.atomicedge-connect-box h3 {
	margin-top: 0;
}

/* Features Grid */
.atomicedge-features {
	margin-top: 40px;
}

.atomicedge-feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.atomicedge-feature {
	text-align: center;
	padding: 20px;
	background: #f6f7f7;
	border-radius: 4px;
}

.atomicedge-feature .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	color: #666AE5;
}

.atomicedge-feature h4 {
	margin: 15px 0 10px;
}

.atomicedge-feature p {
	margin: 0;
	color: #646970;
}

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

.atomicedge-status-bar {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 15px 20px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	margin: 20px 0;
}

.atomicedge-status {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.atomicedge-status-connected {
	color: #00a32a;
}

.atomicedge-status-connected .dashicons {
	color: #00a32a;
}

.atomicedge-domain,
.atomicedge-plan {
	color: #646970;
}

/* Dashboard Widgets */
.atomicedge-dashboard-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.atomicedge-widget {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
}

.atomicedge-widget h3 {
	margin: 0 0 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f1;
}

.atomicedge-widget-chart {
	min-height: 300px;
}

/* Quick Actions */
.atomicedge-quick-actions {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
	margin: 20px 0;
}

.atomicedge-quick-actions h3 {
	margin-top: 0;
}

.atomicedge-action-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.atomicedge-action-buttons .button {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* ==========================================================================
   Analytics
   ========================================================================== */

.atomicedge-period-selector {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 20px 0;
	padding: 15px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.atomicedge-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.atomicedge-stat-box {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 20px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.atomicedge-stat-icon {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: #666AE5;
}

.atomicedge-stat-value {
	display: block;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
}

.atomicedge-stat-label {
	display: block;
	color: #646970;
	font-size: 13px;
}

.atomicedge-charts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.atomicedge-chart-container {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
}

.atomicedge-chart-container h3 {
	margin-top: 0;
}

.atomicedge-chart-wrapper {
	position: relative;
	height: 300px;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.atomicedge-table-container {
	margin: 20px 0;
}

.atomicedge-loading-row td {
	text-align: center;
	padding: 30px !important;
}

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

/* ==========================================================================
   Access Control
   ========================================================================== */

.atomicedge-tabs {
	margin-bottom: 0;
}

.atomicedge-tab-content {
	display: none;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-top: none;
	padding: 20px;
}

.atomicedge-tab-active {
	display: block;
}

.atomicedge-section-header {
	margin-bottom: 20px;
}

.atomicedge-section-header h2 {
	margin-bottom: 5px;
}

.atomicedge-section-header p {
	margin: 0;
	color: #646970;
}

.atomicedge-ip-form {
	margin-bottom: 20px;
}

.atomicedge-form-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.atomicedge-form-row input[type="text"] {
	flex: 1;
	min-width: 200px;
}

.atomicedge-geo-form .atomicedge-form-section {
	margin-bottom: 20px;
}

.atomicedge-country-selector {
	margin-top: 15px;
}

.atomicedge-country-selector select {
	width: 100%;
	max-width: 400px;
}

/* ==========================================================================
   Scanner
   ========================================================================== */

.atomicedge-scanner-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin: 20px 0;
	padding: 20px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.atomicedge-scanner-actions {
	display: flex;
	gap: 10px;
}

.atomicedge-scan-controls-right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.atomicedge-scanner-actions .button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.atomicedge-scan-progress {
	padding: 30px;
	text-align: center;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	margin: 20px 0;
}

.atomicedge-progress-bar {
	height: 20px;
	background: #f0f0f1;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 15px;
}

.atomicedge-progress-fill {
	height: 100%;
	background: #666AE5;
	width: 0;
	transition: width 0.3s ease;
	animation: progress-pulse 1.5s ease-in-out infinite;
}

@keyframes progress-pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

.atomicedge-results-summary {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
	margin: 20px 0;
}

.atomicedge-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 15px;
}

.atomicedge-summary-item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 20px;
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	cursor: pointer;
}

.atomicedge-summary-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.atomicedge-summary-item:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.atomicedge-summary-item .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
}

.atomicedge-summary-count {
	font-size: 28px;
	font-weight: 600;
	line-height: 1;
}

.atomicedge-summary-label {
	display: block;
	color: #646970;
}

.atomicedge-ok {
	background: #edfaef;
}

.atomicedge-ok .dashicons {
	color: #00a32a;
}

.atomicedge-warning {
	background: #fcf9e8;
}

.atomicedge-warning .dashicons {
	color: #dba617;
}

.atomicedge-critical {
	background: #fcf0f1;
}

.atomicedge-critical .dashicons {
	color: #d63638;
}

.atomicedge-results-section {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
	margin: 20px 0;
}

.atomicedge-results-section h3 {
	margin-top: 0;
}

.atomicedge-results-section table {
	width: 100%;
	table-layout: fixed;
}

.atomicedge-results-section td {
	vertical-align: top;
	word-break: break-word;
}

.atomicedge-results-section td code {
	white-space: normal;
}

.atomicedge-results-count {
	font-weight: normal;
	color: #646970;
	font-size: 14px;
}

/* Pagination */
.atomicedge-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #c3c4c7;
}

.atomicedge-pagination:empty {
	display: none;
}

.atomicedge-pagination-info {
	color: #646970;
	font-size: 13px;
}

.atomicedge-pagination-buttons {
	display: flex;
	gap: 5px;
}

.atomicedge-pagination-buttons button {
	min-width: 36px;
}

.atomicedge-pagination-buttons button.current {
	background: #666AE5;
	border-color: #5558c8;
	color: #fff;
}

.atomicedge-paginated-table tbody tr.hidden-row {
	display: none;
}

.atomicedge-severity {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.atomicedge-severity-high {
	background: #fcf9e8;
	color: #996800;
}

.atomicedge-severity-critical {
	background: #fcf0f1;
	color: #8a1116;
}

.atomicedge-all-clear {
	text-align: center;
	padding: 40px;
	background: #edfaef;
	border-radius: 4px;
	margin: 20px 0;
}

.atomicedge-all-clear .dashicons {
	font-size: 60px;
	width: 60px;
	height: 60px;
	color: #00a32a;
}

.atomicedge-all-clear h3 {
	margin: 15px 0 10px;
	color: #00a32a;
}

.atomicedge-scanner-info-box {
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
	margin: 20px 0;
}

.atomicedge-scanner-info-box h3 {
	margin-top: 0;
}

.atomicedge-scanner-info-box ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.atomicedge-scanner-info-box li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
}

.atomicedge-scanner-info-box .dashicons {
	color: #00a32a;
}

/* ==========================================================================
   Settings
   ========================================================================== */

.atomicedge-settings-section {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
	margin: 20px 0;
}

.atomicedge-settings-section h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f1;
}

.atomicedge-connection-status {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	padding: 15px;
	border-radius: 4px;
}

.atomicedge-connected {
	background: #edfaef;
}

.atomicedge-connected .dashicons {
	color: #00a32a;
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.atomicedge-disconnected {
	background: #fcf9e8;
}

.atomicedge-disconnected .dashicons {
	color: #dba617;
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.atomicedge-connection-info {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.atomicedge-connection-domain,
.atomicedge-connection-key {
	color: #646970;
	font-size: 13px;
}

.atomicedge-info-table th {
	width: 200px;
}

/* ==========================================================================
   Common States
   ========================================================================== */

.atomicedge-loading {
	text-align: center;
	padding: 30px;
	color: #646970;
}

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

.atomicedge-error {
	text-align: center;
	padding: 30px;
	color: #d63638;
}

.atomicedge-error .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	display: block;
	margin: 0 auto 10px;
}

.atomicedge-no-results {
	text-align: center;
	padding: 40px;
	background: #f6f7f7;
	border-radius: 4px;
}

.atomicedge-no-results .dashicons {
	font-size: 50px;
	width: 50px;
	height: 50px;
	color: #c3c4c7;
}

.atomicedge-no-results h3 {
	margin: 15px 0 10px;
}

.atomicedge-no-results p {
	color: #646970;
	margin: 0;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.atomicedge-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin: 20px 0;
}

/* ==========================================================================
   Buttons - AtomicEdge Purple Theme
   ========================================================================== */

.atomicedge-wrap .button-primary,

.atomicedge-wrap .button-hero.button-primary {
	background: #666AE5;
	border-color: #5558c8;
	color: #fff;
}

/* Button with icon - use flexbox for proper alignment */
.atomicedge-wrap .button-hero {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.atomicedge-wrap .atomicedge-secondary-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.atomicedge-wrap .atomicedge-secondary-button.button-hero {
	min-height: 46px;
	padding: 0 14px;
}

.atomicedge-wrap .button-hero .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	line-height: 1;
}

.atomicedge-wrap .button-primary:hover,
.atomicedge-wrap .button-primary:focus,
.atomicedge-wrap .button-hero.button-primary:hover,
.atomicedge-wrap .button-hero.button-primary:focus {
	background: #5558c8;
	border-color: #4a4db0;
	color: #fff;
}

.atomicedge-wrap .button-primary:active,
.atomicedge-wrap .button-hero.button-primary:active {
	background: #4a4db0;
	border-color: #3f4298;
}

.atomicedge-wrap .nav-tab-active,
.atomicedge-wrap .nav-tab-active:hover,
.atomicedge-wrap .nav-tab-active:focus {
	border-bottom-color: #fff;
	background: #fff;
	color: #666AE5;
}

.atomicedge-wrap .nav-tab:hover,
.atomicedge-wrap .nav-tab:focus {
	color: #666AE5;
}

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

@media screen and (max-width: 782px) {
	.atomicedge-status-bar {
		flex-direction: column;
		align-items: flex-start;
	}

	.atomicedge-form-row {
		flex-direction: column;
	}

	.atomicedge-form-row input[type="text"] {
		width: 100%;
	}

	.atomicedge-scanner-controls {
		flex-direction: column;
		align-items: stretch;
	}

	.atomicedge-scanner-actions {
		flex-direction: column;
	}

	.atomicedge-charts {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Vulnerability Scanner
   ========================================================================== */

.atomicedge-vulnerability-scanner {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
	margin: 30px 0 20px;
}

.atomicedge-vulnerability-scanner h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f1;
}

.atomicedge-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 15px;
	background: #f0f6fc;
	border-left: 4px solid #72aee6;
	border-radius: 0 4px 4px 0;
}

.atomicedge-notice-info {
	background: #f0f6fc;
	border-left-color: #72aee6;
}

.atomicedge-notice .dashicons {
	flex-shrink: 0;
	color: #72aee6;
}

.atomicedge-notice p {
	margin: 0;
}

.atomicedge-vuln-item {
	padding: 15px;
	margin: 10px 0;
	background: #fcf9e8;
	border-left: 4px solid #dba617;
	border-radius: 0 4px 4px 0;
}

.atomicedge-vuln-item.atomicedge-severity-critical {
	background: #fcf0f1;
	border-left-color: #d63638;
}

.atomicedge-vuln-item.atomicedge-severity-high {
	background: #fcf0f1;
	border-left-color: #d63638;
}

.atomicedge-vuln-item.atomicedge-severity-medium {
	background: #fcf9e8;
	border-left-color: #dba617;
}

.atomicedge-vuln-item.atomicedge-severity-low {
	background: #f0f6fc;
	border-left-color: #72aee6;
}

.atomicedge-vuln-header {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.atomicedge-vuln-fix {
	margin: 8px 0 0;
	font-size: 13px;
	color: #50575e;
}

.atomicedge-vuln-refs {
	margin: 8px 0 0;
	font-size: 12px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

.atomicedge-vuln-refs a {
	text-decoration: none;
}

.atomicedge-vuln-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: #f0f0f1;
	border-radius: 3px;
	font-size: 12px;
	color: #2271b1;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.atomicedge-vuln-link:hover {
	background: #2271b1;
	color: #fff;
}

.atomicedge-vuln-link .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.atomicedge-cve-link {
	background: #fef7e8;
	color: #8a6d3b;
}

.atomicedge-cve-link:hover {
	background: #8a6d3b;
	color: #fff;
}

.atomicedge-vuln-plugin,
.atomicedge-vuln-theme {
	margin-bottom: 25px;
}

.atomicedge-vuln-plugin h4,
.atomicedge-vuln-theme h4 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f1;
}

.atomicedge-version {
	font-size: 12px;
	font-weight: normal;
	color: #646970;
	background: #f0f0f1;
	padding: 2px 8px;
	border-radius: 3px;
}

/* WPScan Settings */
.atomicedge-wpscan-connected {
	display: flex;
	align-items: center;
	gap: 10px;
}

.atomicedge-wpscan-connected .dashicons {
	flex-shrink: 0;
}

#atomicedge-wpscan-status {
	font-size: 13px;
	color: #646970;
}

#atomicedge-wpscan-token-status {
	margin-top: 8px;
}

/* Environment Info Box */
.atomicedge-environment-info {
	background: #f6f7f7;
}

.atomicedge-environment-info ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.atomicedge-environment-info li {
	margin: 8px 0;
}

.atomicedge-environment-info li strong {
	display: inline-block;
	min-width: 140px;
}

/* Attribution Notice */
.atomicedge-attribution-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border: 1px solid #dee2e6;
	border-radius: 6px;
	margin-bottom: 20px;
}

.atomicedge-attribution-logo {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.atomicedge-attribution-text {
	font-size: 13px;
	color: #495057;
	line-height: 1.4;
}

.atomicedge-attribution-text a {
	color: #2271b1;
	text-decoration: none;
	font-weight: 500;
}

.atomicedge-attribution-text a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   CDN Page Styles
   ========================================================================== */

.atomicedge-cdn {
	margin-top: 20px;
}

.atomicedge-cdn h2 {
	font-size: 1.5em;
	margin-bottom: 10px;
}

.atomicedge-page-description {
	color: #646970;
	margin-bottom: 20px;
}

/* CDN Cards */
.atomicedge-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
}

.atomicedge-card h3 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 1.2em;
}

.atomicedge-card-description {
	color: #646970;
	margin-bottom: 15px;
}

/* CDN Status Grid */
.atomicedge-cdn-status-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
}

.atomicedge-cdn-status-item {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.atomicedge-cdn-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: #646970;
}

.atomicedge-cdn-value {
	font-size: 14px;
}

.atomicedge-cdn-value code {
	padding: 4px 8px;
	background: #f0f0f1;
	border-radius: 3px;
	font-size: 13px;
}

/* CDN Status Badge */
.atomicedge-cdn-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.atomicedge-status-indicator {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ddd;
}

.atomicedge-status-indicator.atomicedge-status-active {
	background: #00a32a;
}

.atomicedge-status-indicator.atomicedge-status-inactive {
	background: #d63638;
}

.atomicedge-cdn-status-badge.atomicedge-status-active .atomicedge-status-text {
	color: #00a32a;
	font-weight: 600;
}

.atomicedge-cdn-status-badge.atomicedge-status-inactive .atomicedge-status-text {
	color: #d63638;
}

/* Copy Button */
.atomicedge-copy-btn {
	padding: 2px 6px !important;
	min-height: auto !important;
	vertical-align: middle;
}

.atomicedge-copy-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	vertical-align: middle;
}

/* CDN Purge Actions */
.atomicedge-cdn-purge-actions {
	display: flex;
	align-items: center;
	gap: 15px;
}

.atomicedge-cooldown-notice {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #996800;
	font-size: 13px;
}

.atomicedge-cooldown-notice .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.atomicedge-inline-progress {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	color: #646970;
}

.atomicedge-inline-progress .spinner {
	float: none;
	margin: 0;
}

/* CDN Toggle Switches */
.atomicedge-toggle {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	vertical-align: middle;
}

.atomicedge-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.atomicedge-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .3s;
	border-radius: 24px;
}

.atomicedge-toggle-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .3s;
	border-radius: 50%;
}

.atomicedge-toggle input:checked + .atomicedge-toggle-slider {
	background-color: #2271b1;
}

.atomicedge-toggle input:focus + .atomicedge-toggle-slider {
	box-shadow: 0 0 0 2px #2271b1;
}

.atomicedge-toggle input:checked + .atomicedge-toggle-slider:before {
	transform: translateX(20px);
}

/* CDN Settings Table */
.atomicedge-settings-table th {
	width: 200px;
	vertical-align: top;
	padding-top: 15px;
}

.atomicedge-settings-table td {
	padding-top: 10px;
	padding-bottom: 10px;
}

.atomicedge-settings-table .description {
	margin-top: 8px;
	color: #646970;
}

/* CDN Form Actions */
.atomicedge-form-actions {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #dcdcde;
}

.atomicedge-form-status {
	font-size: 13px;
}

.atomicedge-form-status.atomicedge-status-success {
	color: #00a32a;
}

.atomicedge-form-status.atomicedge-status-error {
	color: #d63638;
}

/* Button with icon */
.atomicedge-cdn button .dashicons,
.atomicedge-cdn .button .dashicons {
	vertical-align: middle;
	margin-right: 4px;
	margin-top: -2px;
}

/* CDN Loading State */
.atomicedge-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 20px;
	color: #646970;
}

.atomicedge-loading .spinner {
	float: none;
	margin: 0;
}

/* External link icon */
.button .dashicons-external {
	margin-left: 4px;
	margin-right: 0;
}

/* Development Mode Notice */
.atomicedge-dev-mode-notice {
	background: linear-gradient(135deg, #f0e6fa 0%, #e6f0fa 100%);
	border: 2px dashed #9854cf;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 20px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.atomicedge-dev-mode-notice .dashicons {
	color: #9854cf;
	font-size: 24px;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.atomicedge-dev-mode-notice strong {
	color: #6b21a8;
}

.atomicedge-dev-mode-notice p {
	margin: 0 0 4px 0;
}

.atomicedge-dev-mode-notice p:last-child {
	margin-bottom: 0;
}

.atomicedge-dev-mode-notice code {
	background: rgba(152, 84, 207, 0.1);
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 12px;
}

/* ==========================================================================
   Adaptive Defense
   ========================================================================== */

.atomicedge-ad-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px;
	margin-bottom: 25px;
}

.atomicedge-ad-stat-box {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 20px;
	text-align: center;
}

.atomicedge-ad-stat-value {
	font-size: 32px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.2;
}

.atomicedge-ad-stat-label {
	font-size: 13px;
	color: #646970;
	margin-top: 5px;
}

.atomicedge-ad-badge-enabled {
	display: inline-block;
	background: #00a32a;
	color: #fff;
	padding: 3px 10px;
	border-radius: 3px;
	font-weight: 600;
	font-size: 13px;
}

.atomicedge-ad-badge-disabled {
	display: inline-block;
	background: #d63638;
	color: #fff;
	padding: 3px 10px;
	border-radius: 3px;
	font-weight: 600;
	font-size: 13px;
}

/* Score badges */
.atomicedge-ad-score {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-weight: 600;
	font-size: 12px;
	min-width: 32px;
	text-align: center;
}

.atomicedge-ad-score-critical {
	background: #d63638;
	color: #fff;
}

.atomicedge-ad-score-high {
	background: #dba617;
	color: #fff;
}

.atomicedge-ad-score-medium {
	background: #f0c33c;
	color: #1d2327;
}

.atomicedge-ad-score-low {
	background: #c3c4c7;
	color: #1d2327;
}

/* Settings Table */
.atomicedge-ad-settings-table {
	width: 100%;
	border-collapse: collapse;
}

.atomicedge-ad-settings-table th,
.atomicedge-ad-settings-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #f0f0f1;
}

.atomicedge-ad-settings-table th {
	font-weight: 400;
	color: #646970;
	width: 200px;
}

.atomicedge-ad-settings-table td {
	font-weight: 600;
}

/* Tab panels */
.atomicedge-ad-tab-panel {
	display: none;
}

.atomicedge-ad-tab-panel.active {
	display: block;
}

/* Filters bar */
.atomicedge-ad-filters {
	background: #f6f7f7;
	padding: 12px 15px;
	border-radius: 4px;
	margin-bottom: 15px;
}

.atomicedge-ad-filters label {
	font-weight: 600;
	margin-right: 8px;
}

.atomicedge-ad-filters select,
.atomicedge-ad-filters input[type="text"] {
	margin-right: 15px;
}

/* Card style for sections */
.atomicedge-ad-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
}

.atomicedge-ad-card h3 {
	margin-top: 0;
	display: flex;
	align-items: center;
}

/* Override WordPress table styling for better appearance */
#atomicedge-ad-blocked-table,
#atomicedge-ad-actors-table,
#atomicedge-ad-detections-table {
	border-spacing: 0;
}

#atomicedge-ad-blocked-table td,
#atomicedge-ad-actors-table td,
#atomicedge-ad-detections-table td {
	vertical-align: middle;
}

/* Action buttons in tables */
#atomicedge-ad-blocked-table .button-small,
#atomicedge-ad-actors-table .button-small,
#atomicedge-ad-detections-table .button-small {
	margin-right: 5px;
}

#atomicedge-ad-blocked-table .button-small:last-child,
#atomicedge-ad-actors-table .button-small:last-child,
#atomicedge-ad-detections-table .button-small:last-child {
	margin-right: 0;
}

#atomicedge-ad-blocked-table .dashicons,
#atomicedge-ad-actors-table .dashicons,
#atomicedge-ad-detections-table .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Block form */
.atomicedge-ad-block-form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: flex-end;
}

.atomicedge-ad-block-form .form-group {
	display: flex;
	flex-direction: column;
}

.atomicedge-ad-block-form label {
	margin-bottom: 4px;
	font-weight: 600;
}

/* Pagination styling */
.atomicedge-ad-pagination .tablenav-pages {
	display: flex;
	align-items: center;
	gap: 10px;
}

.atomicedge-ad-pagination .displaying-num {
	color: #646970;
	font-style: italic;
}

.atomicedge-ad-pagination .paging-input {
	padding: 0 10px;
}

/* ──── Source badges for Access Control blacklist ──── */
.atomicedge-source-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.atomicedge-source-manual {
	background: #f0f0f1;
	color: #50575e;
}

.atomicedge-source-waf {
	background: #fef0e5;
	color: #9a6700;
}

.atomicedge-source-actor {
	background: #e5f0fe;
	color: #1d4ed8;
}

.atomicedge-source-detection {
	background: #fce8e8;
	color: #b32d2e;
}

.atomicedge-source-ad {
	background: #f0e5fe;
	color: #7928ca;
}

/* ──── Blocked badge in WAF logs ──── */
.atomicedge-blocked-badge {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

