/* Main container */
.trusti-wrap {
	display: flex;
	margin: 20px 0;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	min-height: 500px;
	margin-left: auto;
	margin-right: auto;
	max-width: 1280px;
}

/* Trusti Logo Styling */
.trusti-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
}

.trusti-logo {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	object-fit: contain;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trusti-header h1 {
	margin: 0;
	padding: 0 0 4px 0;
	color: #1d2327;
	font-size: 2em;
	font-weight: 600;
}

/* Pro Badge Styling */
.trusti-pro-badge {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white !important;
	opacity: 1 !important;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-left: 8px;
	display: inline-block;
	vertical-align: middle;
	box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* Premium Feature Opacity for Non-Paying Users */
.trusti-premium-feature {
	opacity: 1;
	transition: opacity 0.3s ease;
}

.trusti-premium-feature.disabled {
	pointer-events: none;
}

.trusti-premium-feature.disabled > *:not(.trusti-pro-badge) {
	opacity: 0.5;
}

.trusti-premium-feature.disabled .toggle-label {
	cursor: not-allowed;
}

.trusti-premium-feature.disabled .switch {
	cursor: not-allowed;
}

.trusti-premium-feature.disabled .slider {
	cursor: not-allowed;
	background: #ccc !important;
}

.trusti-premium-feature.disabled input:checked + .slider {
	background: #ccc !important;
}

/* Ensure PRO badge maintains full opacity even when inside disabled premium features */
.trusti-premium-feature.disabled .trusti-pro-badge {
	opacity: 1 !important;
	transform: translateZ(0) !important;
	position: relative !important;
	z-index: 10 !important;
	filter: contrast(1) brightness(1) !important;
}


/* Vertical tabs */
.trusti-nav {
	width: 250px;
	min-width: 250px;
	background: #f6f7f7;
	border-right: 1px solid #dcdcde;
	border-radius: 8px 0 0 8px;
	padding: 20px 0;
	display: flex;
	flex-direction: column;
}

.trusti-nav .nav-tab {
	display: block;
	margin: 0;
	padding: 15px 20px;
	border: none;
	border-left: 4px solid transparent;
	background: none;
	color: #1d2327;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
	transition: all 0.2s ease;
	width: 100%;
	text-align: left;
	box-sizing: border-box;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.trusti-nav .nav-tab:hover {
	background: #f0f0f1;
	color: #2271b1;
}

.trusti-nav .nav-tab-active {
	background: #fff;
	border-left-color: #6a72d9;
	color: #6a72d9;
	font-weight: 600;
}

/* Content area */
.trusti-content {
	flex: 1;
	padding: 25px;
	min-width: 0; /* Prevents flex item from overflowing */
}

.trusti-content h2 {
	color: #1d2327;
	font-size: 1.5em;
	margin: 0 0 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f1;
}

/* Form styling */
.trusti-content .form-table {
	margin-top: 20px;
}

.trusti-content .form-table th {
	padding: 20px 10px 20px 0;
	width: 200px;
	font-weight: 600;
	color: #1d2327;
}

.trusti-content .form-table td {
	padding: 20px 10px;
}

/* Checkbox styling */
.trusti-content input[type="checkbox"] {
	margin-right: 8px;
}

/* Toggle Switch Styling */
.switch {
	position: relative;
	display: inline-block;
	width: 30px;
	height: 17px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-transition: .4s;
	transition: .4s;
	border-radius: 17px;
	box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.slider:before {
	position: absolute;
	content: "";
	height: 13px;
	width: 13px;
	left: 2px;
	bottom: 2px;
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

input:focus + .slider {
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

input:checked + .slider:before {
	-webkit-transform: translateX(13px);
	-ms-transform: translateX(13px);
	transform: translateX(13px);
}

/* Unchecked state - gray background */
input:not(:checked) + .slider {
	background: #ccc;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hide original radio buttons and checkboxes */
.trusti-content input[type="radio"],
.trusti-content input[type="checkbox"] {
	display: none;
}

/* Style labels for toggle switches */
.trusti-content .toggle-label {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	cursor: pointer;
}

.trusti-content .toggle-label .switch {
	margin-right: 15px;
}

.trusti-content .toggle-label span {
	font-weight: 500;
	color: #1d2327;
}

/* Role checkboxes */
.trusti-content .role-checkboxes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
	margin-top: 10px;
}

.trusti-content .role-checkboxes label {
	background: #f6f7f7;
	padding: 10px 15px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.trusti-content .role-checkboxes label:hover {
	background: #f0f0f1;
}

/* User select */
.trusti-content select[multiple] {
	width: 100%;
	min-height: 150px;
	padding: 10px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #f6f7f7;
}

.trusti-content select[multiple] option {
	padding: 8px 12px;
	margin: 2px 0;
	border-radius: 3px;
}

.trusti-content select[multiple] option:checked {
	background: #2271b1;
	color: #fff;
}

/* Description text */
.trusti-content .description {
	color: #646970;
	font-style: italic;
	margin-top: 8px;
	font-size: 0.9em;
}

/* Submit button */
.trusti-content .submit {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 2px solid #f0f0f1;
}

.trusti-content .button-primary {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
	padding: 8px 20px;
	height: auto;
	font-size: 14px;
	transition: all 0.2s ease;
}

.trusti-content .button-primary:hover {
	background: #135e96;
	border-color: #135e96;
}

/* 2FA Profile Section */
.trusti-content .twofa-profile-section {
	background: #f6f7f7;
	border-radius: 6px;
	padding: 20px;
	margin: 20px 0;
}

.trusti-content .twofa-profile-section h3 {
	margin: 0 0 15px;
	color: #1d2327;
}

.trusti-content .twofa-qr-code {
	background: #fff;
	padding: 20px;
	border-radius: 4px;
	display: inline-block;
	margin: 10px 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.trusti-content .twofa-qr-code img {
	display: block;
	margin: 0 auto;
}

/* Custom Admin URL specific styles */
.trusti-content .custom-admin-url-section {
	background: #f6f7f7;
	border-radius: 6px;
	padding: 20px;
	margin: 20px 0;
}

.trusti-content .custom-admin-url-section h3 {
	margin: 0 0 15px;
	color: #1d2327;
}

/* Brute Force Protection Module */
.trusti-brute-force-protection .form-table th {
	width: 200px;
}

.trusti-brute-force-protection .form-table td {
	padding: 15px 10px;
}

.trusti-brute-force-protection .form-table input[type="number"] {
	width: 100px;
}

.trusti-brute-force-protection .description {
	margin-top: 5px;
	color: #666;
}

.trusti-brute-force-protection .button-secondary {
	margin-right: 10px;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
	.trusti-wrap {
		flex-direction: column;
		min-height: auto;
	}

	.trusti-nav {
		width: 100%;
		min-width: 100%;
		border-right: none;
		border-bottom: 1px solid #dcdcde;
		border-radius: 8px 8px 0 0;
		padding: 0;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.trusti-nav .nav-tab {
		border-left: none;
		border-bottom: 4px solid transparent;
		text-align: center;
		padding: 12px 15px;
		flex: 1;
		min-width: 150px;
	}

	.trusti-nav .nav-tab-active {
		border-left-color: transparent;
		border-bottom-color: #2271b1;
	}

	.trusti-content {
		padding: 20px;
	}

	.trusti-content .form-table th {
		width: 100%;
		padding-bottom: 0;
	}

	.trusti-content .role-checkboxes {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 600px) {
	.trusti-nav {
		flex-direction: column;
	}

	.trusti-nav .nav-tab {
		width: 100%;
		min-width: 100%;
		text-align: left;
		padding: 12px 20px;
		border-left: 4px solid transparent;
		border-bottom: none;
	}

	.trusti-nav .nav-tab-active {
		border-left-color: #2271b1;
		border-bottom-color: transparent;
	}

	.trusti-content {
		padding: 15px;
	}
}

/* Dashboard Layout */
.trusti-dashboard {
	margin: 20px 0;
}

.trusti-overview {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	padding: 25px;
}

.trusti-overview h2 {
	color: #1d2327;
	font-size: 1.5em;
	margin: 0 0 15px;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f1;
}

.trusti-overview p {
	color: #646970;
	margin-bottom: 25px;
	font-size: 1.1em;
}

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

.trusti-module-card {
	background: #f6f7f7;
	border-radius: 8px;
	padding: 20px;
	border: 1px solid #dcdcde;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	height: 85%;
	min-height: 200px;
}

.trusti-module-card:hover {
	background: #f0f0f1;
	border-color: #2271b1;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.trusti-module-card h3 {
	color: #1d2327;
	font-size: 1.2em;
	margin: 0 0 10px;
	font-weight: 600;
}

.trusti-module-card p {
	color: #646970;
	margin: 0 0 10px;
	line-height: 1.4;
	flex-grow: 0.1;
}

.trusti-module-card .button {
	margin-top: auto;
	align-self: flex-start;
	width: 100%;
	text-align: center;
}

/* Module Header and Status Styles */
.trusti-module-card .module-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f1;
}

.trusti-module-card .module-header h3 {
	margin: 0;
	font-size: 1.2em;
	color: #1d2327;
}

.trusti-module-card .module-header h3 .dashicons {
	color: #6a72d9;
	margin-right: 8px;
}

.trusti-module-card .module-status {
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.trusti-module-card .status-enabled {
	background-color: #d1e7dd;
	color: #0f5132;
}

.trusti-module-card .status-disabled {
	background-color: #f8d7da;
	color: #721c24;
}

.trusti-module-card .status-pro {
	background-color: #cfe2ff;
	color: #084298;
}

.trusti-module-card .module-info {
	margin: 5px 0;
	font-size: 13px;
	color: #646970;
	line-height: 1.1;
}

.trusti-module-card .module-info strong {
	color: #1d2327;
}

.trusti-module-card .issues-count {
	color: #d63638;
	font-weight: 600;
}

/* Modern Button Styling */
.trusti-module-card .button,
.trusti-content .button-primary,
.trusti-content .submit .button-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 25px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	line-height: 1;
	padding: 12px 24px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
	position: relative;
	overflow: hidden;
}

.trusti-module-card .button:before,
.trusti-content .button-primary:before,
.trusti-content .submit .button-primary:before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.trusti-module-card .button:hover,
.trusti-content .button-primary:hover,
.trusti-content .submit .button-primary:hover {
	background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
	color: #fff;
	text-decoration: none;
}

.trusti-module-card .button:hover:before,
.trusti-content .button-primary:hover:before,
.trusti-content .submit .button-primary:hover:before {
	left: 100%;
}

.trusti-module-card .button:active,
.trusti-content .button-primary:active,
.trusti-content .submit .button-primary:active {
	transform: translateY(0);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.trusti-module-card .button:focus,
.trusti-content .button-primary:focus,
.trusti-content .submit .button-primary:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Secondary Button Styling */
.trusti-content .button-secondary {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	border: none;
	border-radius: 25px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	line-height: 1;
	padding: 10px 20px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
	position: relative;
	overflow: hidden;
}

.trusti-content .button-secondary:before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.trusti-content .button-secondary:hover {
	background: linear-gradient(135deg, #e085e8 0%, #e04a5f 100%);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
	color: #fff;
	text-decoration: none;
}

.trusti-content .button-secondary:hover:before {
	left: 100%;
}

.trusti-content .button-secondary:active {
	transform: translateY(0);
	box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.trusti-content .button-secondary:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.3);
}

/* Success Button Styling */
.trusti-content .button-success {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	border: none;
	border-radius: 25px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	line-height: 1;
	padding: 12px 24px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
	position: relative;
	overflow: hidden;
}

.trusti-content .button-success:before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.trusti-content .button-success:hover {
	background: linear-gradient(135deg, #3e9be5 0%, #00d9e1 100%);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
	color: #fff;
	text-decoration: none;
}

.trusti-content .button-success:hover:before {
	left: 100%;
}

.trusti-content .button-success:active {
	transform: translateY(0);
	box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.trusti-content .button-success:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.3);
}

/* Warning Button Styling */
.trusti-content .button-warning {
	background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
	border: none;
	border-radius: 25px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	line-height: 1;
	padding: 12px 24px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 15px rgba(250, 112, 154, 0.3);
	position: relative;
	overflow: hidden;
}

.trusti-content .button-warning:before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.trusti-content .button-warning:hover {
	background: linear-gradient(135deg, #e9658a 0%, #e5c830 100%);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(250, 112, 154, 0.4);
	color: #fff;
	text-decoration: none;
}

.trusti-content .button-warning:hover:before {
	left: 100%;
}

.trusti-content .button-warning:active {
	transform: translateY(0);
	box-shadow: 0 4px 15px rgba(250, 112, 154, 0.3);
}

.trusti-content .button-warning:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(250, 112, 154, 0.3);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
	.trusti-modules-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.trusti-module-card {
		padding: 15px;
	}
}

/* Core Integrity Scanner specific styles */
.core-integrity-scanner-wrap {
	max-width: 100%;
}

.scanner-controls {
	background: #f6f7f7;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #dcdcde;
	margin-bottom: 25px;
}

.scanner-controls .button-primary {
	font-size: 14px;
	padding: 10px 20px;
	height: auto;
	line-height: 1.4;
}

#scan-status {
	font-weight: 500;
	font-size: 14px;
}

#scan-results {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 20px;
	margin-top: 20px;
}

.scan-summary {
	background: #f8f9fa;
	padding: 15px;
	border-radius: 6px;
	margin-bottom: 20px;
}

.scan-summary p {
	margin: 8px 0;
	font-size: 14px;
}

.scan-summary p strong {
	color: #1d2327;
}

.modified-files-list {
	margin-top: 20px;
}

.modified-files-list h4 {
	color: #d63638;
	margin-bottom: 15px;
	font-size: 16px;
}

.modified-files-list table {
	border-collapse: collapse;
	width: 100%;
	margin-top: 10px;
}

.modified-files-list th {
	background: #f6f7f7;
	padding: 12px;
	text-align: left;
	font-weight: 600;
	color: #1d2327;
	border-bottom: 2px solid #dcdcde;
}

.modified-files-list td {
	padding: 12px;
	border-bottom: 1px solid #f0f0f1;
	vertical-align: middle;
}

.modified-files-list td code {
	background: #f6f7f7;
	padding: 4px 8px;
	border-radius: 3px;
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	font-size: 12px;
	color: #1d2327;
}

.status-modified {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.rollback-file {
	background: #d63638;
	border-color: #d63638;
	color: #fff;
	font-size: 12px;
	padding: 6px 12px;
	height: auto;
	line-height: 1.4;
	transition: all 0.2s ease;
}

.rollback-file:hover {
	background: #b32d2e;
	border-color: #b32d2e;
	color: #fff;
}

.rollback-file:disabled {
	background: #ccc;
	border-color: #ccc;
	color: #666;
	cursor: not-allowed;
}

.previous-scan-results {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 20px;
	margin-top: 20px;
}

.previous-scan-results h3 {
	color: #1d2327;
	margin-bottom: 15px;
	font-size: 18px;
	border-bottom: 2px solid #f0f0f1;
	padding-bottom: 10px;
}

.previous-scan-results p {
	margin: 8px 0;
	font-size: 14px;
}

.previous-scan-results p strong {
	color: #1d2327;
}

/* Alert boxes */
.alert-info {
	background: #d1ecf1;
	border: 1px solid #bee5eb;
	color: #0c5460;
	padding: 12px 15px;
	border-radius: 6px;
	margin: 15px 0;
}

.alert-warning {
	background: #fff3cd;
	border: 1px solid #ffeaa7;
	color: #856404;
	padding: 12px 15px;
	border-radius: 6px;
	margin: 15px 0;
}

.alert-danger {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 12px 15px;
	border-radius: 6px;
	margin: 15px 0;
}

.alert-success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
	padding: 12px 15px;
	border-radius: 6px;
	margin: 15px 0;
}

/* Debug information styling */
.debug-info {
	background: #fff3cd;
	border: 1px solid #ffeaa7;
	padding: 15px;
	border-radius: 6px;
	margin-top: 15px;
}

.debug-info h4 {
	color: #856404;
	margin: 0 0 10px 0;
	font-size: 14px;
	font-weight: 600;
}

.debug-info ul {
	margin: 0;
	padding-left: 20px;
	color: #856404;
}

.debug-info li {
	margin-bottom: 5px;
	font-size: 13px;
}

/* Loading animation */
.scanning-animation {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #007cba;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-right: 8px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Responsive design for Core Integrity Scanner */
@media screen and (max-width: 768px) {
	.scanner-controls {
		padding: 15px;
	}

	.scanner-controls .button-primary {
		width: 100%;
		margin-bottom: 10px;
	}

	#scan-status {
		display: block;
		margin-top: 10px;
		margin-left: 0;
	}

	.modified-files-list table {
		font-size: 12px;
	}

	.modified-files-list th,
	.modified-files-list td {
		padding: 8px;
	}

	.modified-files-list td code {
		font-size: 11px;
		word-break: break-all;
	}

	.rollback-file {
		font-size: 11px;
		padding: 4px 8px;
	}
}

/* Known Vulnerabilities Module Styles */

.known-vulnerabilities-wrap {
	max-width: 100%;
}

.vulnerabilities-controls {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
}

.vulnerabilities-controls h3 {
	margin: 0 0 15px 0;
	color: #1d2327;
}

.vulnerabilities-controls .button-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	color: #fff;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.vulnerabilities-controls .button-primary:hover {
	background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
	box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
	transform: translateY(-1px);
}

#check-status {
	color: #50575e;
	font-style: italic;
}

#vulnerabilities-results {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 20px;
	margin-top: 20px;
}

.vulnerability-item {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	margin-bottom: 15px;
	overflow: hidden;
}

.vulnerability-item.severity-critical {
	border-left: 4px solid #d63638;
}

.vulnerability-item.severity-high {
	border-left: 4px solid #dba617;
}

.vulnerability-item.severity-medium {
	border-left: 4px solid #00a32a;
}

.vulnerability-item.severity-low {
	border-left: 4px solid #72aee6;
}

.vulnerability-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background: #f6f7f7;
	border-bottom: 1px solid #dcdcde;
}

.vulnerability-header h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.severity-badge {
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.severity-badge.severity-critical {
	background: #d63638;
	color: #fff;
}

.severity-badge.severity-high {
	background: #dba617;
	color: #fff;
}

.severity-badge.severity-medium {
	background: #00a32a;
	color: #fff;
}

.severity-badge.severity-low {
	background: #72aee6;
	color: #fff;
}

.vulnerability-details {
	padding: 20px;
}

.vulnerability-details p {
	margin: 0 0 10px 0;
	line-height: 1.5;
}

.vulnerability-details p:last-child {
	margin-bottom: 0;
}

.vulnerability-details strong {
	color: #1d2327;
}

.vulnerabilities-summary {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
}

.vulnerabilities-summary h4 {
	margin: 0 0 15px 0;
	color: #1d2327;
}

.vulnerabilities-summary ul {
	margin: 0;
	padding-left: 20px;
}

.vulnerabilities-summary li {
	margin-bottom: 5px;
	color: #50575e;
}

.vulnerability-alert {
	background: #fff3cd;
	border: 1px solid #ffeaa7;
	border-radius: 4px;
	padding: 10px;
	margin-top: 10px;
}

.vulnerability-status {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	border-radius: 4px;
	padding: 10px;
	margin-top: 10px;
}

.dismiss-vulnerability {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	color: #50575e;
	padding: 4px 8px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 12px;
	cursor: pointer;
	display: inline-block;
	margin-top: 10px;
}

.dismiss-vulnerability:hover {
	background: #f0f0f1;
	color: #1d2327;
}

/* Progress bar styles */
#check-progress {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 15px;
}

#progress-bar {
	background: #007cba;
	height: 100%;
	width: 0%;
	transition: width 0.3s ease;
	border-radius: 2px;
}

/* Role checkboxes for exclusions */
.role-checkboxes {
	max-height: 200px;
	overflow-y: auto;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 10px;
	background: #fff;
}

.role-checkboxes .toggle-label {
	display: block;
	margin-bottom: 8px;
	padding: 5px;
	border-radius: 4px;
}

.role-checkboxes .toggle-label:hover {
	background: #f6f7f7;
}


/* Responsive design for vulnerabilities */
@media (max-width: 782px) {
	.vulnerability-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.vulnerability-header h4 {
		font-size: 14px;
	}

	.vulnerability-details {
		padding: 15px;
	}

	.vulnerabilities-summary {
		padding: 15px;
	}

	.vulnerabilities-controls {
		padding: 15px;
	}

	.vulnerabilities-controls .button-primary {
		width: 100%;
		margin-top: 10px;
	}
}

/* Recommendations Module Styles */
.recommendations-container {
	max-width: 100%;
}

.recommendations-list {
	margin-top: 20px;
}

.recommendation-category {
	margin-bottom: 30px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	overflow: hidden;
}

.recommendation-category h3 {
	margin: 0;
	padding: 15px 20px;
	background: #f6f7f7;
	border-bottom: 1px solid #dcdcde;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

.recommendation-items {
	padding: 0;
}

.recommendation-item {
	display: flex;
	align-items: flex-start;
	padding: 20px;
	border-bottom: 1px solid #f0f0f1;
	transition: background-color 0.2s ease;
}

.recommendation-item:last-child {
	border-bottom: none;
}

.recommendation-item:hover {
	background-color: #f9f9f9;
}

.recommendation-item.status-ok {
	background-color: #f0f9ff;
	border-left: 4px solid #00a32a;
}

.recommendation-item.status-warning {
	background-color: #fef7f1;
	border-left: 4px solid #d63638;
}

.recommendation-icon {
	flex-shrink: 0;
	margin-right: 15px;
	margin-top: 2px;
}

.recommendation-icon .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.recommendation-item.status-ok .recommendation-icon .dashicons {
	color: #00a32a;
}

.recommendation-item.status-warning .recommendation-icon .dashicons {
	color: #d63638;
}

.recommendation-content {
	flex: 1;
}

.recommendation-content h4 {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

.recommendation-content p {
	margin: 0 0 15px 0;
	color: #646970;
	line-height: 1.4;
}

.recommendation-action {
	margin-top: 10px;
}

.recommendation-action ul {
	margin: 10px 0;
	padding-left: 20px;
}

.recommendation-action ol {
	margin: 10px 0;
	padding-left: 20px;
}

.recommendation-action li {
	margin-bottom: 5px;
	color: #646970;
}

.recommendation-action code {
	background: #f0f0f1;
	padding: 2px 4px;
	border-radius: 3px;
	font-family: 'Courier New', monospace;
	font-size: 13px;
}

.recommendation-action .button {
	margin-right: 10px;
	margin-bottom: 5px;
}

.no-recommendations {
	text-align: center;
	padding: 40px 20px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
}

.no-recommendations p {
	font-size: 16px;
	color: #00a32a;
	font-weight: 600;
	margin: 0;
}

/* Responsive design for recommendations */
@media screen and (max-width: 768px) {
	.recommendation-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.recommendation-icon {
		margin-bottom: 10px;
		margin-right: 0;
	}

	.recommendation-action .button {
		display: block;
		width: 100%;
		margin-bottom: 10px;
		text-align: center;
	}
}

/* File Permissions Checker Module Styles */
.file-permissions-container {
	max-width: 1200px;
	margin: 20px 0;
}

.permission-issues {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 30px;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.permission-issues h3 {
	color: #d63638;
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 18px;
}

.issues-list {
	margin-bottom: 25px;
}

.issue-item {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
	padding: 10px;
	background: #fef7f1;
	border-left: 4px solid #d63638;
	border-radius: 3px;
}

.issue-item .dashicons {
	margin-right: 10px;
	font-size: 18px;
}

.recommendations {
	background: #f0f6fc;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
}

.recommendations h4 {
	margin-top: 0;
	margin-bottom: 15px;
	color: #1d2327;
	font-size: 16px;
}

.recommendations ul,
.recommendations ol {
	margin-bottom: 20px;
}

.recommendations li {
	margin-bottom: 8px;
}

.recommendations strong {
	color: #1d2327;
}

.no-issues {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 40px 20px;
	text-align: center;
	margin-bottom: 30px;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.success-message h3 {
	color: #00a32a;
	margin: 15px 0 10px 0;
	font-size: 20px;
}

.success-message p {
	color: #646970;
	font-size: 16px;
	margin: 0;
}

.permission-details {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 20px;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.permission-details h3 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 18px;
	color: #1d2327;
}

.permissions-table {
	overflow-x: auto;
}

.permissions-table table {
	width: 100%;
	border-collapse: collapse;
}

.permissions-table th {
	background: #f6f7f7;
	padding: 12px;
	text-align: left;
	font-weight: 600;
	border-bottom: 1px solid #c3c4c7;
}

.permissions-table td {
	padding: 12px;
	border-bottom: 1px solid #f0f0f1;
	vertical-align: middle;
}

.permissions-table code {
	background: #f6f7f7;
	padding: 2px 6px;
	border-radius: 3px;
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	font-size: 13px;
}

.permissions-table .dashicons {
	margin-right: 5px;
	font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 782px) {
	.permissions-table {
		font-size: 14px;
	}

	.permissions-table th,
	.permissions-table td {
		padding: 8px;
	}

	.issue-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.issue-item .dashicons {
		margin-bottom: 5px;
	}
}

/* Trusti Notification Settings - Hide empty table headers */
.trusti-notifications th:empty {
	display: none;
}

/* Trusti Notification Settings - Hide table headers for fields without labels */
.trusti-notifications th:has(+ td:empty) {
	display: none;
}

/* Alternative approach for older browsers */
.trusti-notifications th[scope="row"]:empty {
	display: none;
}

/* Module Icon Color */
.module-icon {
	color: #6a72d9 !important;
}

/* Module Header with Icon */
.module-header h2 .dashicons,
.module-header h3 .dashicons {
	color: #6a72d9;
	margin-right: 8px;
}

/* Dashboard Module Cards */
.trusti-module-card .module-header h3 .dashicons {
	color: #6a72d9;
	margin-right: 8px;
}

/* Trusti Notifications - Integration Headers */
.trusti-integration-header {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	padding: 20px;
	border-radius: 12px;
	margin-bottom: 25px;
	border-left: 4px solid #6a72d9;
	border-bottom: 2px solid #e1e5e9;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trusti-integration-header h3 {
	margin: 0 0 15px 0;
	color: #1d2327;
	font-size: 1.3em;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

.trusti-integration-header p {
	margin: 8px 0 0 0;
	color: #646970;
	font-size: 0.95em;
	line-height: 1.4;
}

/* Section Headings */
.trusti-section-heading {
	margin: 0 0 15px 0;
	color: #1d2327;
	font-size: 1.3em;
	font-weight: 600;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

/* Toggle Grid Layout */
.trusti-toggle-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.trusti-toggle-item {
	background: #fff;
	padding: 20px;
	border-radius: 10px;
	border: 1px solid #e1e5e9;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.trusti-toggle-item:hover {
	border-color: #6a72d9;
	box-shadow: 0 4px 12px rgba(106, 114, 217, 0.15);
	transform: translateY(-2px);
}

.trusti-toggle-item .toggle-label {
	margin-bottom: 0;
	justify-content: space-between;
}

.trusti-toggle-item .toggle-label span {
	font-weight: 600;
	font-size: 1.1em;
	color: #1d2327;
}

/* Integration Options Sections */
.trusti-integration-options {
	margin-top: 30px;
}

.trusti-notification-options {
	margin-bottom: 40px;
	padding: 25px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e1e5e9;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trusti-notification-options:last-child {
	margin-bottom: 0;
}

/* Notification Types Section */
.trusti-notification-types {
	margin-top: 40px;
	padding: 25px;
	background: #f8f9fa;
	border-radius: 12px;
	border: 1px solid #e1e5e9;
}

.trusti-notification-types h3 {
	margin: 0 0 15px 0;
	color: #1d2327;
	font-size: 1.3em;
	font-weight: 600;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

.trusti-notification-types p {
	margin: 0 0 20px 0;
	color: #646970;
}

.trusti-notification-types .toggle-label {
	background: #fff;
	padding: 15px 20px;
	border-radius: 8px;
	margin-bottom: 15px;
	border: 1px solid #e1e5e9;
	transition: all 0.2s ease;
}

.trusti-notification-types .toggle-label:hover {
	border-color: #6a72d9;
	background: #f8f9ff;
}

.trusti-notification-types .toggle-label span {
	font-weight: 600;
	color: #1d2327;
}

.trusti-notification-types .description {
	margin: 8px 0 0 45px;
	color: #646970;
	font-style: italic;
}

/* Responsive Design for Notifications */
@media screen and (max-width: 768px) {
	.trusti-toggle-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.trusti-toggle-item {
		padding: 15px;
	}

	.trusti-notification-options {
		padding: 20px;
		margin-bottom: 30px;
	}

	.trusti-integration-header {
		padding: 15px;
	}

	.trusti-integration-header h3 {
		font-size: 1.2em;
	}
}

/* Custom Dialog Box Styles */
.trusti-dialog-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.trusti-dialog-overlay.show {
	opacity: 1;
	visibility: visible;
}

.trusti-dialog {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	max-width: 500px;
	width: 90%;
	margin: 20px;
	transform: scale(0.8) translateY(-20px);
	transition: all 0.3s ease;
	overflow: hidden;
}

.trusti-dialog-overlay.show .trusti-dialog {
	transform: scale(1) translateY(0);
}

.trusti-dialog-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 25px 30px;
	text-align: center;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.trusti-dialog-header h3 {
	margin: 0;
	color: #fff;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.trusti-dialog-header .dashicons {
	font-size: 24px;
	color: #fff;
	display: inline-block;
}

.trusti-dialog-content {
	padding: 30px;
	text-align: center;
	line-height: 1.6;
	color: #1d2327;
	font-size: 16px;
}

.trusti-dialog-content p {
	margin: 0 0 20px 0;
}

.trusti-dialog-actions {
	padding: 0 30px 30px;
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.trusti-dialog-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-block;
	min-width: 100px;
	text-align: center;
}

.trusti-dialog-btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.trusti-dialog-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.trusti-dialog-btn-secondary {
	background: #f6f7f7;
	color: #1d2327;
	border: 1px solid #dcdcde;
}

.trusti-dialog-btn-secondary:hover {
	background: #f0f0f1;
	transform: translateY(-1px);
}

.trusti-dialog-btn-danger {
	background: linear-gradient(135deg, #d63638 0%, #b32d2e 100%);
	color: #fff;
	box-shadow: 0 2px 8px rgba(214, 54, 56, 0.3);
}

.trusti-dialog-btn-danger:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(214, 54, 56, 0.4);
}

.trusti-dialog-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
}

/* Success dialog */
.trusti-dialog.success .trusti-dialog-header {
	background: linear-gradient(135deg, #00a32a 0%, #008a20 100%);
}

/* Warning dialog */
.trusti-dialog.warning .trusti-dialog-header {
	background: linear-gradient(135deg, #dba617 0%, #b89400 100%);
}

/* Error dialog */
.trusti-dialog.error .trusti-dialog-header {
	background: linear-gradient(135deg, #d63638 0%, #b32d2e 100%);
}

/* Info dialog */
.trusti-dialog.info .trusti-dialog-header {
	background: linear-gradient(135deg, #2271b1 0%, #1e5a8a 100%);
}

/* Responsive */
@media (max-width: 600px) {
	.trusti-dialog {
		width: 95%;
		margin: 10px;
	}

	.trusti-dialog-header,
	.trusti-dialog-content,
	.trusti-dialog-actions {
		padding: 20px;
	}

	.trusti-dialog-actions {
		flex-direction: column;
	}

	.trusti-dialog-btn {
		width: 100%;
	}
}

/* Access Restriction Popup */
.trusti-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.trusti-popup-content {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	max-width: 600px;
	width: 90%;
	max-height: 90vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.trusti-popup-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 1px solid #ddd;
}

.trusti-popup-header h3 {
	margin: 0;
	font-size: 18px;
}

.trusti-popup-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
	color: #666;
}

.trusti-popup-close:hover {
	color: #000;
}

.trusti-popup-body {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
}

.trusti-popup-body fieldset {
	border: none;
	padding: 0;
	margin: 15px 0;
}

.trusti-popup-body label {
	display: block;
	margin-bottom: 12px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.trusti-popup-body label:hover {
	background-color: #f5f5f5;
}

.trusti-popup-body input[type="radio"],
.trusti-popup-body input[type="checkbox"] {
	margin-right: 10px;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
	min-height: 18px !important;
	cursor: pointer;
	vertical-align: middle;
	-webkit-appearance: auto !important;
	-moz-appearance: auto !important;
	appearance: auto !important;
	opacity: 1 !important;
	visibility: visible !important;
	display: inline-block !important;
	position: relative !important;
}

.trusti-popup-body input[type="checkbox"] {
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	min-height: 16px !important;
}

/* Override global ::before pseudo-elements */
.trusti-popup-body input[type="radio"]::before,
.trusti-popup-body input[type="radio"]:checked::before,
.trusti-popup-body input[type="checkbox"]::before,
.trusti-popup-body input[type="checkbox"]:checked::before {
	display: none !important;
	content: none !important;
}

.trusti-popup-body input[type="radio"]:checked,
.trusti-popup-body input[type="checkbox"]:checked {
	accent-color: #2271b1;
	background-color: #2271b1 !important;
	border-color: #2271b1 !important;
}

.trusti-popup-body label:has(input[type="radio"]:checked),
.trusti-popup-body label:has(input[type="checkbox"]:checked) {
	background-color: #f0f6fc;
	border-color: #2271b1;
}

.trusti-popup-body strong {
	font-weight: 600;
}

.trusti-popup-footer {
	padding: 15px 20px;
	border-top: 1px solid #ddd;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

/* Emergency Access String Disabled State */
.emergency-string-disabled {
	opacity: 0.5;
	pointer-events: none;
}

.emergency-string-disabled input[type="text"] {
	background-color: #f6f7f7;
	color: #646970;
	cursor: not-allowed;
}

.emergency-string-disabled .description {
	color: #646970;
}

/* Hide emergency string field when disabled */
#emergency_access_string_container.emergency-string-disabled {
	display: none !important;
}

/* 2FA Login Form Styles */
#twofa-login-form {
	background: #fff;
	padding: 20px;
	margin: 20px 0;
	border: 1px solid #ccd0d4;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

#twofa-login-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

#twofa-login-form .input {
	width: 100%;
	max-width: 300px;
}

#twofa-login-form .description {
	margin-top: 5px;
	color: #666;
}

/* 2FA Profile Section Styles */
.twofa-app-links-section {
	margin-top: 25px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
	border-left: 4px solid #2271b1;
}

.twofa-app-links-title {
	margin: 0 0 15px 0;
	color: #1d2327;
	font-size: 14px;
	font-weight: 600;
}

.twofa-app-icon-emoji {
	margin-right: 8px;
}

.twofa-app-links-description {
	margin: 0 0 15px 0;
	color: #646970;
	font-size: 13px;
}

.twofa-app-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
}

.twofa-app-card {
	background: white;
	padding: 15px;
	border-radius: 6px;
	border: 1px solid #dcdcde;
}

.twofa-app-header {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.twofa-app-icon {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 10px;
	color: white;
	font-size: 16px;
	font-weight: bold;
}

.twofa-google-icon {
	background: #4285f4;
}

.twofa-authy-icon {
	background: #ec6c00;
}

.twofa-microsoft-icon {
	background: #0078d4;
}

.twofa-app-name {
	color: #1d2327;
}

.twofa-app-links {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.twofa-app-link {
	color: #007AFF;
	text-decoration: none;
	font-size: 13px;
}

.twofa-app-link.twofa-google-play {
	color: #01875f;
}

/* 2FA Step Display Styles */
.twofa-step {
	display: none;
}

.twofa-step.active {
	display: block;
}

.login-step {
	display: block;
}

.login-step.hidden {
	display: none;
}

/* 2FA Hidden Elements */
.twofa-hidden {
	display: none;
}

.twofa-field-hidden {
	display: none;
}

/* 2FA Setup and Disabled States */
.twofa-setup.twofa-hidden {
	display: none;
}

.twofa-disabled.twofa-hidden {
	display: none;
}

.twofa-setup:not(.twofa-hidden) {
	margin-top: 15px;
}

.twofa-disabled:not(.twofa-hidden) {
	margin-top: 15px;
}

/* Multisite Notice */
.multisite-notice {
	color: #666;
	font-style: italic;
}

/* Module Header */
.module-header {
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

/* Admin Activity Log Specific Styles */
.activity-icon-column {
	width: 30px;
}

.activity-icon-cell {
	text-align: center;
}

.activity-icon {
	font-size: 16px;
	color: #6a72d9;
}

.tablenav {
	margin-top: 20px;
	padding: 15px 0;
	border-top: 1px solid #dcdcde;
}

.tablenav-pages {
	text-align: center;
}

.displaying-num {
	display: block;
	margin-bottom: 15px;
	color: #646970;
	font-size: 14px;
}

.pagination-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* Pagination Buttons and Links */
.tablenav .button,
.tablenav a.button {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	color: #fff !important;
	text-decoration: none !important;
	padding: 8px 16px !important;
	border-radius: 4px !important;
	border: none !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	display: inline-block !important;
	transition: background 0.2s ease !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	line-height: normal !important;
	position: static !important;
	overflow: visible !important;
}

.tablenav .button:before,
.tablenav a.button:before {
	display: none !important;
}

.tablenav .button:hover,
.tablenav a.button:hover {
	background: linear-gradient(135deg, #5568d3 0%, #653a8f 100%) !important;
	transform: none !important;
	box-shadow: none !important;
	color: #fff !important;
	text-decoration: none !important;
}

.tablenav .button:hover:before,
.tablenav a.button:hover:before {
	display: none !important;
}

.tablenav .pagination-page {
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	display: inline-block;
	min-width: 20px;
	text-align: center;
	transition: all 0.2s ease;
}

.tablenav .pagination-page.current {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

.tablenav .pagination-page:not(.current) {
	background: #f6f7f7;
	color: #1d2327;
	text-decoration: none;
	border: 1px solid #dcdcde;
}

.tablenav .pagination-page:not(.current):hover {
	background: #e5e5e5;
	border-color: #2271b1;
}

.tablenav .pagination-ellipsis {
	padding: 8px 4px;
	color: #646970;
	font-size: 13px;
	display: inline-block;
}

/* Security Headers Container Styles */
.trusti-header-container {
	margin-top: 10px;
}

.trusti-header-container.hidden {
	display: none;
}

.trusti-header-container:not(.hidden) {
	display: block;
}

.trusti-csp-preset-container,
.trusti-permissions-preset-container {
	margin-bottom: 15px;
}

.trusti-csp-preset-label,
.trusti-permissions-preset-label {
	font-weight: bold;
	display: block;
	margin-bottom: 5px;
}

.trusti-csp-preset-select,
.trusti-permissions-preset-select {
	width: 100%;
	margin-bottom: 10px;
}

.trusti-csp-textarea,
.trusti-permissions-textarea {
	width: 100%;
	font-family: monospace;
	font-size: 12px;
}

/* Notification Warning Note */
.trusti-note-warning {
	color: #d63638;
	font-style: italic;
	margin-top: 5px;
}

.pagination-button {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 4px;
	border: none;
	font-size: 13px;
	font-weight: 500;
	display: inline-block;
	transition: background 0.2s ease;
}

.pagination-current {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	display: inline-block;
	min-width: 20px;
	text-align: center;
}

.pagination-link {
	background: #f6f7f7;
	color: #1d2327;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 4px;
	border: 1px solid #dcdcde;
	font-size: 13px;
	font-weight: 500;
	display: inline-block;
	min-width: 20px;
	text-align: center;
	transition: all 0.2s ease;
}

.pagination-link:hover {
	background: #e5e5e5;
	color: #1d2327;
}

/* Brute Force Protection Module Styles */
.brute-force-module-header {
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

.brute-force-icon {
	color: #6a72d9;
	margin-right: 8px;
}

.brute-force-blocked-ips-container {
	margin-top: 30px;
}

.brute-force-actions-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.brute-force-tablenav {
	margin-bottom: 20px;
	padding: 15px 0;
	border-bottom: 1px solid #dcdcde;
}

.brute-force-tablenav-top {
	margin-top: 20px;
	padding: 15px 0;
	border-top: 1px solid #dcdcde;
}

.brute-force-tablenav-pages {
	text-align: center;
}

.brute-force-displaying-num {
	display: block;
	margin-bottom: 15px;
	color: #646970;
	font-size: 14px;
}

.brute-force-pagination-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.brute-force-prev-button,
.brute-force-next-button {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 4px;
	border: none;
	font-size: 13px;
	font-weight: 500;
	display: inline-block;
	transition: background 0.2s ease;
}

.brute-force-current-page {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	display: inline-block;
	min-width: 20px;
	text-align: center;
}

.brute-force-page-link {
	background: #f6f7f7;
	color: #1d2327;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 4px;
	border: 1px solid #dcdcde;
	font-size: 13px;
	font-weight: 500;
	display: inline-block;
	min-width: 20px;
	text-align: center;
	transition: all 0.2s ease;
}

.brute-force-unknown-username {
	color: #d63638;
	font-weight: 600;
}

.brute-force-brute-force {
	color: #dba617;
	font-weight: 600;
}

.brute-force-permanently-blocked {
	color: #00a32a;
	font-weight: 600;
}

.brute-force-blocked {
	color: #d63638;
	font-weight: 600;
}

.brute-force-expired {
	color: #00a32a;
	font-weight: 600;
}

.brute-force-enabled {
	color: #00a32a;
	font-weight: 600;
}

.brute-force-back-link-container {
	margin-top: 30px;
}

.brute-force-security-note strong {
	color: #1d2327;
}



/* Core Integrity Scanner Module Styles */
.core-integrity-module-header {
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

.core-integrity-icon {
	color: #6a72d9;
	margin-right: 8px;
}

.core-integrity-scanner-settings {
	margin-bottom: 30px;
}

.core-integrity-scanner-controls {
	margin-bottom: 20px;
}

.core-integrity-scan-progress {
	display: none;
	margin-bottom: 20px;
}

.core-integrity-progress-container {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 15px;
}

.core-integrity-progress-title {
	margin: 0 0 10px 0;
}

.core-integrity-progress-bar-container {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	height: 20px;
	overflow: hidden;
}

.core-integrity-progress-bar {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	height: 100%;
	width: 0%;
	transition: width 0.3s ease;
}

.core-integrity-progress-text {
	margin: 10px 0 0 0;
	font-size: 14px;
	color: #1d2327;
}

.core-integrity-scan-results {
	display: none;
}

.core-integrity-modified-count {
	color: #d63638;
	font-weight: 600;
}

.core-integrity-unknown-count {
	color: #d63638;
	font-weight: 600;
}

.core-integrity-ignored-files-list {
	margin-top: 30px;
}

.core-integrity-modified-files-list {
	margin-top: 30px;
}

.core-integrity-unknown-files-list {
	margin-top: 30px;
}

.core-integrity-status-modified {
	color: #d63638;
	font-weight: 600;
}

.core-integrity-success-message {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	padding: 10px;
	border-radius: 4px;
}

.core-integrity-success-text {
	margin: 0;
	color: #155724;
}

/* Custom Admin URL Module Styles */
.custom-admin-url-module-header {
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

.custom-admin-url-icon {
	color: #6a72d9;
	margin-right: 8px;
}

/* Emergency Access Module Styles */
.emergency-access-module-header {
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

.emergency-access-icon {
	color: #6a72d9;
	margin-right: 8px;
}

.emergency-access-usage-instructions {
	margin-top: 30px;
	padding: 20px;
	background: #f6f7f7;
	border-radius: 8px;
	border-left: 4px solid #2271b1;
}

.emergency-access-usage-instructions h3 {
	margin-top: 0;
	color: #1d2327;
}

.emergency-access-usage-instructions ol {
	margin-left: 20px;
	color: #646970;
}

.emergency-access-usage-instructions p {
	margin-top: 15px;
	font-weight: 600;
	color: #1d2327;
}

.emergency-access-usage-instructions code {
	background: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid #dcdcde;
}

.emergency-access-pro-badge {
	margin-left: 10px;
}

.emergency-access-status-enabled {
	color: #00a32a;
	font-weight: 600;
}

/* Hardening Module Styles */
.hardening-module-header {
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

.hardening-icon {
	color: #6a72d9;
	margin-right: 8px;
}

/* IP Block List Module Styles */
.ip-block-list-module-header {
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

.ip-block-list-icon {
	color: #6a72d9;
	margin-right: 8px;
}

.ip-block-list-select {
	width: 100%;
	max-width: 400px;
}

.ip-block-list-method-description {
	margin-top: 10px;
	padding: 10px;
	background: #f6f7f7;
	border-radius: 4px;
}

.ip-block-list-method-text {
	margin: 0;
	font-size: 13px;
	color: #646970;
}

.ip-block-list-proxies-show {
	display: block;
}

.ip-block-list-proxies-hide {
	display: none;
}

.ip-block-list-no-proxy-notice {
	color: #646970;
	font-style: italic;
}

.ip-block-list-add-form {
	margin-top: 30px;
}

.ip-block-list-custom-datetime {
	display: none;
	margin-left: 10px;
}

.ip-block-list-table-section {
	margin-top: 30px;
}

.ip-block-list-tablenav {
	margin-bottom: 20px;
	padding: 15px 0;
	border-bottom: 1px solid #dcdcde;
}

.ip-block-list-tablenav-bottom {
	margin-top: 20px;
	padding: 15px 0;
	border-top: 1px solid #dcdcde;
}

.ip-block-list-tablenav-pages {
	text-align: center;
}

.ip-block-list-tablenav-pages-bottom {
	text-align: center;
}

.ip-block-list-displaying-num {
	display: block;
	margin-bottom: 15px;
	color: #646970;
	font-size: 14px;
}

.ip-block-list-displaying-num-bottom {
	display: block;
	margin-bottom: 15px;
	color: #646970;
	font-size: 14px;
}

.ip-block-list-pagination-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ip-block-list-prev-button,
.ip-block-list-next-button {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 4px;
	border: none;
	font-size: 13px;
	font-weight: 500;
	display: inline-block;
	transition: background 0.2s ease;
}

.ip-block-list-current-page {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	display: inline-block;
	min-width: 20px;
	text-align: center;
}

.ip-block-list-page-link {
	background: #f6f7f7;
	color: #1d2327;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 4px;
	border: 1px solid #dcdcde;
	font-size: 13px;
	font-weight: 500;
	display: inline-block;
	min-width: 20px;
	text-align: center;
	transition: all 0.2s ease;
}

.ip-block-list-permanently-blocked {
	color: #00a32a;
}

.ip-block-list-status-blocked {
	color: #d63638;
	font-weight: 600;
}

.ip-block-list-status-expired {
	color: #00a32a;
}

.ip-block-list-currently-blocked {
	color: #d63638;
	font-weight: 600;
}

.ip-block-list-external-link {
	color: #2271b1;
	text-decoration: none;
}

/* 2FA Login Form Styles */
.twofa-hidden {
	display: none;
}

#twofa-login-form {
	margin-top: 15px;
	padding: 15px;
	background: #f8f9fa;
	border: 1px solid #ddd;
	border-radius: 4px;
}

#twofa-login-form p {
	margin: 10px 0;
}

#twofa-login-form label {
	font-weight: 600;
	color: #1d2327;
}

#twofa-login-form input[type="text"] {
	width: 100%;
	margin-top: 5px;
}

#twofa-login-form .description {
	color: #646970;
	font-size: 13px;
	margin-top: 5px;
}

/* Directory Protection Module Styles */
.trusti-directory-list {
	margin-top: 20px;
}

.trusti-directory-item {
	padding: 20px 0;
	border-bottom: 1px solid #dcdcde;
}

.trusti-directory-item:last-child {
	border-bottom: none;
}

.trusti-directory-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.trusti-directory-header .toggle-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.trusti-directory-header .toggle-label span {
	font-size: 14px;
}

.trusti-directory-status {
	font-size: 13px;
}

.trusti-directory-status .status-hardened {
	color: #00a32a;
	font-weight: 600;
}

.trusti-directory-status .status-not-hardened {
	color: #d63638;
	font-weight: 600;
}

.trusti-directory-item .description {
	margin: 10px 0 15px 0;
	color: #646970;
	font-size: 13px;
}

.trusti-directory-actions {
	margin: 15px 0;
}

.trusti-directory-exceptions {
	margin: 20px 0;
	padding: 15px;
	background: #f6f7f7;
	border-radius: 4px;
	border-left: 4px solid #2271b1;
}

.trusti-directory-exceptions h4 {
	margin: 0 0 15px 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.trusti-exceptions-list {
	margin-bottom: 15px;
}

.trusti-exceptions-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.trusti-exceptions-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	margin-bottom: 8px;
	background: #fff;
	border-radius: 4px;
	border: 1px solid #dcdcde;
}

.trusti-exceptions-list li code {
	background: transparent;
	padding: 0;
	font-size: 13px;
	color: #1d2327;
}

.trusti-exceptions-list li .button-link {
	color: #d63638;
	text-decoration: none;
}

.trusti-exceptions-list li .button-link:hover {
	color: #b32d2e;
	text-decoration: underline;
}

.trusti-add-exception {
	display: flex;
	gap: 10px;
	align-items: center;
}

.trusti-add-exception .trusti-exception-input {
	flex: 1;
	max-width: 300px;
}

.trusti-manual-instructions {
	margin: 20px 0;
	padding: 15px;
	background: #f6f7f7;
	border-radius: 4px;
	border-left: 4px solid #dba617;
}

.trusti-manual-instructions.hidden {
	display: none;
}

.trusti-manual-instructions h4 {
	margin: 0 0 15px 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.trusti-manual-instructions p {
	margin: 0 0 15px 0;
	color: #646970;
	font-size: 13px;
}

.trusti-htaccess-rules {
	margin: 15px 0;
}

.trusti-htaccess-rules pre {
	background: #1d2327;
	color: #f0f0f1;
	padding: 15px;
	border-radius: 4px;
	overflow-x: auto;
	margin: 0 0 10px 0;
}

.trusti-htaccess-rules code {
	background: transparent;
	color: #f0f0f1;
	font-size: 12px;
	font-family: 'Courier New', Courier, monospace;
	white-space: pre;
}

.trusti-htaccess-rules .trusti-copy-rules-btn {
	margin-top: 10px;
}

.trusti-manual-instructions .description {
	margin-top: 15px;
}

.trusti-manual-instructions .description code {
	background: #fff;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 12px;
	color: #1d2327;
}

/* Dashboard Header */
.trusti-dashboard-header {
	position: relative;
	margin-bottom: 20px;
}

.trusti-dashboard-header h2 {
	margin: 0;
}

.trusti-dashboard-header:not(.is-multisite) h2 {
	padding-right: 40px;
}

.trusti-access-settings-btn {
	position: absolute;
	top: 0;
	right: 0;
	cursor: pointer;
	font-size: 20px;
	color: #6a72d9;
}

/* Access Popup */
.trusti-popup-overlay.hidden {
	display: none;
}

.trusti-popup-body label {
	display: block;
	margin-bottom: 10px;
}

.trusti-selected-admins-container {
	margin-top: 15px;
}

.trusti-selected-admins-container.hidden {
	display: none;
}

.trusti-selected-admins-list {
	max-height: 200px;
	overflow-y: auto;
	border: 1px solid #ddd;
	padding: 10px;
	margin-top: 5px;
}

.trusti-selected-admins-list label {
	display: block;
	margin-bottom: 5px;
}

/* Utility Classes for Common Inline Styles */
.trusti-mt-15 {
	margin-top: 15px;
}

.trusti-mb-30 {
	margin-bottom: 30px;
}

.trusti-mb-15 {
	margin-bottom: 15px;
}

.trusti-hidden {
	display: none;
}

/* Admin Activity Events Container */
.admin-activity-events {
	margin-left: 30px;
	margin-top: 15px;
	padding: 15px;
	background: #f6f7f7;
	border-radius: 4px;
	border-left: 3px solid #2271b1;
}

.admin-activity-events.hidden {
	display: none;
}

.admin-activity-events h4 {
	margin-top: 0;
	margin-bottom: 15px;
	color: #1d2327;
}

.admin-activity-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
}