/**
 * TSA Admin Styles
 *
 * @package TSA
 */

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

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

.tsa-wrap h1 {
	margin-bottom: 20px;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.tsa-card {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
}

.tsa-card h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

/* ==========================================================================
   Notices
   ========================================================================== */

.tsa-notice {
	padding: 12px 16px;
	margin-bottom: 20px;
	border-left: 4px solid;
	background: #fff;
}

.tsa-notice-info {
	border-color: #00a0d2;
}

.tsa-notice-success {
	border-color: #46b450;
}

.tsa-notice-warning {
	border-color: #ffb900;
}

.tsa-notice-error {
	border-color: #dc3232;
}

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

.tsa-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.tsa-issue-counts {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.tsa-count {
	text-align: center;
	padding: 15px 25px;
	border-radius: 4px;
	min-width: 80px;
}

.tsa-count a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.tsa-count-number {
	display: block;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
}

.tsa-count-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	opacity: 0.8;
}

.tsa-count-critical {
	background: #fef0f0;
	color: #dc3232;
}

.tsa-count-warning {
	background: #fff8e5;
	color: #996800;
}

.tsa-count-notice {
	background: #f0f6fc;
	color: #0073aa;
}

.tsa-count.active {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

.tsa-count-clear {
	display: flex;
	align-items: center;
}

.tsa-integrations-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsa-integrations-list li {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.tsa-integrations-list li:last-child {
	border-bottom: none;
}

/* ==========================================================================
   Scan Progress
   ========================================================================== */

.tsa-progress-wrapper {
	margin: 20px 0;
}

.tsa-progress-bar {
	height: 24px;
	background: #e5e5e5;
	border-radius: 12px;
	overflow: hidden;
}

.tsa-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #0073aa, #00a0d2);
	transition: width 0.3s ease;
	border-radius: 12px;
}

.tsa-progress-text {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	font-size: 14px;
}

#wtsa-progress-percent {
	font-weight: 600;
}

/* ==========================================================================
   Issues
   ========================================================================== */

.tsa-issue-summary {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.tsa-filters {
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.tsa-filters select,
.tsa-filters input[type="search"] {
	min-width: 150px;
}

.tsa-issues-table {
	margin-top: 10px;
}

.tsa-col-severity {
	width: 100px;
}

.tsa-col-fix {
	width: 100px;
}

.tsa-col-actions {
	width: 200px;
}

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

.tsa-severity-critical {
	background: #dc3232;
	color: #fff;
}

.tsa-severity-warning {
	background: #ffb900;
	color: #23282d;
}

.tsa-severity-notice {
	background: #00a0d2;
	color: #fff;
}

.tsa-fix-type {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 11px;
	background: #f0f0f1;
}

.tsa-fix-type-auto {
	background: #d4edda;
	color: #155724;
}

.tsa-fix-type-guided {
	background: #fff3cd;
	color: #856404;
}

.tsa-fix-type-dev {
	background: #e2e3e5;
	color: #383d41;
}

.tsa-fix-type-server {
	background: #cce5ff;
	color: #004085;
}

.tsa-fix-type .tsa-help-icon {
	font-size: 12px;
	width: 12px;
	height: 12px;
	vertical-align: middle;
	margin-left: 2px;
	opacity: 0.7;
}

.tsa-fix-type:hover .tsa-help-icon {
	opacity: 1;
}

/* ==========================================================================
   Issue Expandable Buttons (How to fix / Why this matters)
   ========================================================================== */

.tsa-issue-buttons {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.tsa-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	background: #f7f7f7;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #50575e;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

.tsa-toggle-btn:hover {
	background: #fff;
	border-color: #0073aa;
	color: #0073aa;
}

.tsa-toggle-btn.tsa-btn-active {
	background: #0073aa;
	border-color: #0073aa;
	color: #fff;
}

.tsa-toggle-btn .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

/* Legacy support */
.tsa-show-details-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
	padding: 4px 8px;
	background: transparent;
	border: 1px solid #ddd;
	border-radius: 3px;
	color: #0073aa;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.2s;
}

.tsa-show-details-btn:hover {
	background: #f0f6fc;
	border-color: #0073aa;
}

.tsa-show-details-btn .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.tsa-issue-details {
	margin-top: 12px;
	padding: 12px 15px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.6;
}

.tsa-detail-section {
	margin-bottom: 12px;
}

.tsa-detail-section:last-child {
	margin-bottom: 0;
}

.tsa-detail-section strong {
	display: block;
	color: #1e1e1e;
	margin-bottom: 4px;
}

.tsa-detail-section p {
	margin: 0;
	color: #50575e;
}

.tsa-learn-more-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #0073aa;
	text-decoration: none;
	font-weight: 500;
}

.tsa-learn-more-link:hover {
	color: #005a87;
	text-decoration: underline;
}

.tsa-learn-more-link .dashicons {
	font-size: 12px;
	width: 12px;
	height: 12px;
}

/* Issue Found Details (what was detected) */
.tsa-issue-found {
	margin-top: 8px;
	padding: 8px 12px;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 4px;
	font-size: 12px;
	line-height: 1.6;
	color: #50575e;
}

.tsa-issue-found code {
	background: rgba(0, 0, 0, 0.06);
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 11px;
	word-break: break-all;
}

.tsa-issue-found ul {
	margin: 4px 0 0 0;
	padding-left: 18px;
}

.tsa-issue-found li {
	margin-bottom: 2px;
}

.tsa-detail-highlight {
	font-weight: 600;
	color: #1e1e1e;
}

/* Fix Guidance (how to fix) - now expandable */
.tsa-fix-guidance {
	margin-top: 12px;
	padding: 12px 15px;
	background: #f0f6fc;
	border: 1px solid #c3d9ed;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.6;
}

.tsa-fix-guidance p {
	margin: 0;
	font-size: 13px;
	line-height: 1.7;
	color: #50575e;
}

.tsa-fix-guidance code {
	background: rgba(0, 115, 170, 0.15);
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 11px;
}

.tsa-fix-guidance em {
	color: #1e1e1e;
	font-style: normal;
	font-weight: 500;
}

.tsa-issue-desc {
	margin: 5px 0 0;
	font-size: 12px;
	color: #666;
}

.tsa-premium-badge {
	display: inline-block;
	padding: 2px 6px;
	background: #6c757d;
	color: #fff;
	border-radius: 3px;
	font-size: 10px;
	text-transform: uppercase;
}

.tsa-pagination {
	margin-top: 20px;
	text-align: center;
}

.tsa-pagination .page-numbers {
	display: inline-block;
	padding: 5px 10px;
	margin: 0 2px;
	background: #f0f0f1;
	text-decoration: none;
	border-radius: 3px;
}

.tsa-pagination .page-numbers.current {
	background: #0073aa;
	color: #fff;
}

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

.tsa-settings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 20px;
}

.tsa-settings-form .form-table th {
	width: 180px;
}

#wtsa-settings-status {
	margin-left: 10px;
	color: #46b450;
}

/* Server Environment Card */
.tsa-card-server-info {
	background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
	border-color: #c3c4c7;
}

.tsa-card-server-info h2 {
	display: flex;
	align-items: center;
	gap: 8px;
}

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

.tsa-status-good {
	color: #00a32a;
	font-weight: 600;
}

.tsa-status-ok {
	color: #dba617;
	font-weight: 600;
}

.tsa-status-warning {
	color: #d63638;
	font-weight: 600;
}

.tsa-warning-text {
	color: #9a6700 !important;
	font-size: 12px;
	margin-top: 5px !important;
}

.tsa-recommendations {
	margin-top: 15px;
	padding: 15px;
	background: #f0f6fc;
	border-radius: 4px;
	border-left: 4px solid #2271b1;
}

.tsa-recommendations h3 {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: #1d2327;
}

.tsa-recommendations ul {
	margin: 10px 0;
	padding: 0;
	list-style: none;
}

.tsa-recommendations li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tsa-recommendations li:last-child {
	border-bottom: none;
}

.tsa-apply-recommendation {
	font-size: 11px !important;
	padding: 2px 8px !important;
	min-height: auto !important;
	line-height: 1.4 !important;
}

.tsa-apply-all-recommendations {
	margin-top: 10px;
}

/* ==========================================================================
   License
   ========================================================================== */

.tsa-license-status {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px;
	border-radius: 4px;
	font-size: 16px;
}

.tsa-license-active {
	background: #d4edda;
	color: #155724;
}

.tsa-license-inactive {
	background: #f0f0f1;
	color: #666;
}

.tsa-license-status .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.tsa-license-type {
	margin-left: auto;
	padding: 3px 8px;
	background: rgba(0,0,0,0.1);
	border-radius: 3px;
	font-size: 12px;
	text-transform: uppercase;
}

.tsa-license-expires {
	margin-top: 10px;
	color: #666;
}

.tsa-feature-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tsa-feature-list li {
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	display: flex;
	align-items: center;
	gap: 10px;
}

.tsa-feature-list li:last-child {
	border-bottom: none;
}

.tsa-feature-list .dashicons-yes {
	color: #46b450;
}

.tsa-feature-list .dashicons-lock {
	color: #999;
}

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

@media (max-width: 782px) {
	.tsa-dashboard-grid,
	.tsa-settings-grid {
		grid-template-columns: 1fr;
	}

	.tsa-col-actions {
		width: auto;
	}

	.tsa-col-actions .button {
		display: block;
		margin-bottom: 5px;
	}
}

/* ==========================================================================
   Grouped Issues View
   ========================================================================== */

.tsa-results-info {
	color: #666;
	margin-bottom: 15px;
}

.tsa-issues-grouped {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
}

.tsa-url-group {
	border-bottom: 1px solid #e5e5e5;
}

.tsa-url-group:last-child {
	border-bottom: none;
}

.tsa-url-group-critical {
	border-left: 4px solid #dc3232;
}

.tsa-url-group-warning {
	border-left: 4px solid #ffb900;
}

.tsa-url-group-notice {
	border-left: 4px solid #00a0d2;
}

.tsa-url-header {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	cursor: pointer;
	background: #fafafa;
	transition: background 0.2s;
}

.tsa-url-header:hover {
	background: #f0f0f1;
}

.tsa-url-group.expanded .tsa-url-header {
	background: #f0f0f1;
	border-bottom: 1px solid #e5e5e5;
}

.tsa-url-toggle {
	width: 30px;
	flex-shrink: 0;
}

.tsa-url-toggle .dashicons {
	transition: transform 0.2s;
	color: #666;
}

.tsa-url-group.expanded .tsa-url-toggle .dashicons {
	transform: rotate(90deg);
}

.tsa-url-info {
	flex: 1;
	min-width: 0;
}

.tsa-url-title {
	display: block;
	font-size: 14px;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tsa-url-link {
	font-size: 12px;
	color: #666;
	text-decoration: none;
}

.tsa-url-link:hover {
	color: #0073aa;
}

.tsa-url-link .dashicons {
	font-size: 12px;
	width: 12px;
	height: 12px;
	vertical-align: text-top;
}

.tsa-url-counts {
	display: flex;
	gap: 6px;
	margin-left: 15px;
}

.tsa-count-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	font-size: 11px;
	font-weight: 600;
	color: #fff;
}

.tsa-count-badge-critical {
	background: #dc3232;
}

.tsa-count-badge-warning {
	background: #ffb900;
	color: #23282d;
}

.tsa-count-badge-notice {
	background: #00a0d2;
}

.tsa-url-issues {
	background: #fff;
	padding: 0;
}

.tsa-url-issues .tsa-issues-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.tsa-url-issues .tsa-issues-table td {
	padding: 10px 15px;
	border-bottom: 1px solid #f0f0f1;
	vertical-align: top;
}

.tsa-url-issues .tsa-issues-table tr:last-child td {
	border-bottom: none;
}

.tsa-url-issues .tsa-col-severity {
	width: 80px;
}

.tsa-url-issues .tsa-col-fix {
	width: 80px;
}

.tsa-url-issues .tsa-col-actions {
	width: 220px;
	text-align: right;
}

.tsa-url-issues .tsa-col-actions .button {
	margin-left: 5px;
}

.tsa-url-issues .tsa-issue-critical {
	background: #fef0f0;
}

.tsa-url-issues .tsa-issue-warning {
	background: #fffbe5;
}

.tsa-url-issues .tsa-issue-notice {
	background: #f0f6fc;
}

/* ==========================================================================
   Ensure styles work even with plugin conflicts
   ========================================================================== */

.tsa-wrap .tsa-url-group {
	display: block !important;
	visibility: visible !important;
}

.tsa-wrap .tsa-url-header {
	display: flex !important;
	cursor: pointer !important;
}

.tsa-wrap .tsa-url-issues {
	/* Hidden by default via inline style, shown via jQuery */
	overflow: hidden;
}

.tsa-wrap .tsa-url-issues.tsa-visible {
	display: block !important;
}

.tsa-wrap .tsa-issues-table {
	width: 100% !important;
	border-collapse: collapse !important;
}

/* ==========================================================================
   View Toggle & Filters Row
   ========================================================================== */

.tsa-filters-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
	padding: 15px;
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
}

.tsa-view-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tsa-filters-row .tsa-filters {
	margin-bottom: 0;
}

.tsa-filters-row .tsa-filters form {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.tsa-view-label {
	font-weight: 500;
	color: #646970;
}

.tsa-view-toggle .button .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	margin-right: 4px;
	vertical-align: text-bottom;
}

/* ==========================================================================
   Issues By Type View
   ========================================================================== */

.tsa-issues-by-type {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
}

.tsa-type-group {
	border-bottom: 1px solid #e5e5e5;
}

.tsa-type-group:last-child {
	border-bottom: none;
}

.tsa-type-group-critical {
	border-left: 4px solid #dc3232;
}

.tsa-type-group-warning {
	border-left: 4px solid #ffb900;
}

.tsa-type-group-notice {
	border-left: 4px solid #00a0d2;
}

.tsa-type-header {
	display: flex;
	align-items: center;
	padding: 15px;
	cursor: pointer;
	background: #f6f7f7;
	gap: 15px;
}

.tsa-type-header:hover {
	background: #f0f0f1;
}

.tsa-type-group.expanded .tsa-type-header {
	background: #e9ecee;
}

.tsa-type-toggle {
	flex-shrink: 0;
	width: 20px;
}

.tsa-type-toggle .dashicons {
	color: #646970;
	transition: transform 0.2s ease;
}

.tsa-type-group.expanded .tsa-type-toggle .dashicons {
	transform: rotate(90deg);
}

.tsa-type-info {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.tsa-type-title {
	font-size: 14px;
}

.tsa-type-checker {
	color: #646970;
	font-size: 12px;
	background: #e9ecee;
	padding: 2px 8px;
	border-radius: 3px;
}

.tsa-type-counts {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #646970;
	font-size: 13px;
}

.tsa-affected-count {
	display: flex;
	align-items: center;
	gap: 4px;
}

.tsa-affected-count .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.tsa-type-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.tsa-type-actions .button .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	vertical-align: text-bottom;
	margin-right: 2px;
}

.tsa-type-details {
	padding: 20px;
	background: #fff;
	border-top: 1px solid #e5e5e5;
}

.tsa-fix-guidance-inline,
.tsa-kb-inline {
	margin-bottom: 15px;
	padding: 12px 15px;
	background: #f9f9f9;
	border-left: 3px solid #0073aa;
	border-radius: 0 4px 4px 0;
}

.tsa-fix-guidance-inline strong,
.tsa-kb-inline strong {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
	color: #23282d;
}

.tsa-fix-guidance-inline p,
.tsa-kb-inline p {
	margin: 0;
	color: #50575e;
}

.tsa-affected-urls {
	margin-top: 15px;
}

.tsa-affected-urls > strong {
	display: block;
	margin-bottom: 10px;
	color: #23282d;
}

.tsa-url-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tsa-url-list li {
	margin: 0;
}

.tsa-url-list li a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: #f0f0f1;
	border-radius: 3px;
	text-decoration: none;
	font-size: 12px;
	color: #2271b1;
}

.tsa-url-list li a:hover {
	background: #e0e0e0;
}

.tsa-url-list li a .dashicons {
	font-size: 12px;
	width: 12px;
	height: 12px;
}

.tsa-url-list .tsa-more-urls {
	color: #646970;
	font-style: italic;
	padding: 4px 0;
}

/* ==========================================================================
   Backup Warning
   ========================================================================== */

.tsa-backup-warning {
	margin: 0 0 20px 0;
	padding: 15px 20px;
	background: linear-gradient(135deg, #fef8e7 0%, #fef3cd 100%);
	border: 1px solid #f0c36d;
	border-left: 4px solid #f0ad4e;
	border-radius: 4px;
}

.tsa-backup-warning-content {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	flex-wrap: wrap;
}

.tsa-backup-warning-content > .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: #9a6700;
	flex-shrink: 0;
	margin-top: 2px;
}

.tsa-backup-warning-text {
	flex: 1;
	min-width: 200px;
}

.tsa-backup-warning-text strong {
	display: block;
	margin-bottom: 5px;
	color: #6d4c00;
	font-size: 14px;
}

.tsa-backup-warning-text p {
	margin: 0;
	color: #6d4c00;
	font-size: 13px;
}

.tsa-backup-warning-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.tsa-backup-warning-actions .button-link {
	color: #6d4c00;
	text-decoration: underline;
	font-size: 12px;
}

.tsa-backup-warning-actions .button-link:hover {
	color: #4a3300;
}

/* ==========================================================================
   Site-Wide Issues Section
   ========================================================================== */

.tsa-section {
	margin-bottom: 30px;
}

.tsa-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 5px 0;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

.tsa-section-title .dashicons {
	color: #646970;
}

.tsa-section-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 8px;
	background: #646970;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	border-radius: 12px;
}

.tsa-section-desc {
	margin: 0 0 15px 0;
	color: #646970;
	font-size: 13px;
}

.tsa-section-sitewide {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-left: 4px solid #8c6d00;
	border-radius: 4px;
	padding: 20px;
}

.tsa-section-sitewide .tsa-section-title {
	color: #6d4c00;
}

.tsa-section-sitewide .tsa-section-title .dashicons {
	color: #8c6d00;
}

.tsa-section-sitewide .tsa-section-count {
	background: #8c6d00;
}

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

.tsa-sitewide-table td {
	padding: 15px;
	border-bottom: 1px solid #f0f0f1;
	vertical-align: top;
}

.tsa-sitewide-table tr:last-child td {
	border-bottom: none;
}

.tsa-sitewide-table .tsa-col-severity {
	width: 80px;
}

.tsa-sitewide-table .tsa-col-fix {
	width: 80px;
}

.tsa-sitewide-table .tsa-col-actions {
	width: 280px;
	text-align: right;
}

.tsa-sitewide-table .tsa-col-actions .button {
	margin-left: 5px;
}

.tsa-issue-sitewide.tsa-issue-critical {
	background: #fef7f7;
}

.tsa-issue-sitewide.tsa-issue-warning {
	background: #fffcf5;
}

.tsa-issue-sitewide.tsa-issue-notice {
	background: #f8fbfe;
}

/* Site-wide badge in type view */
.tsa-sitewide-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	background: #fef3cd;
	color: #6d4c00;
	font-size: 11px;
	font-weight: 500;
	border-radius: 3px;
	border: 1px solid #f0c36d;
}

.tsa-sitewide-badge .dashicons {
	font-size: 12px;
	width: 12px;
	height: 12px;
}

/* Page-Specific Issues Section */
.tsa-section-pages .tsa-section-title .dashicons {
	color: #2271b1;
}

.tsa-section-pages .tsa-section-count {
	background: #2271b1;
}

/* Premium Locked Cards */
.tsa-card-premium-locked {
	position: relative;
}

.tsa-card-premium-locked table.form-table {
	opacity: 0.5;
	pointer-events: none;
}

.tsa-premium-overlay {
	background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(249,249,249,0.95) 100%);
	border: 2px dashed #c3c4c7;
	border-radius: 6px;
	padding: 20px;
	margin: 15px 0;
	text-align: center;
}

.tsa-premium-overlay p {
	margin: 0;
	font-size: 14px;
	color: #50575e;
}

.tsa-premium-overlay a {
	color: #2271b1;
	font-weight: 500;
}

.tsa-card h2 .tsa-premium-badge {
	vertical-align: middle;
	margin-left: 10px;
}

/* Scheduled Scan Info */
.tsa-next-scan-info {
	background: #f0f6fc;
	padding: 12px 15px;
	border-radius: 4px;
	border-left: 4px solid #2271b1;
	margin-top: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tsa-next-scan-info .dashicons {
	color: #2271b1;
}

/* Export Actions */
.tsa-export-actions {
	margin-left: auto;
}

.tsa-export-actions .button {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.tsa-export-actions .button .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Filters Row Layout */
.tsa-filters-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
}

/* ==========================================================================
   Tab Navigation Badges
   ========================================================================== */

.tsa-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	margin-left: 6px;
	background: #646970;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	border-radius: 10px;
	line-height: 1;
	vertical-align: middle;
}

.nav-tab .tsa-tab-badge {
	background: #787c82;
}

.nav-tab-active .tsa-tab-badge {
	background: #2271b1;
}

.tsa-tab-badge.tsa-badge-success {
	background: #00a32a;
}

.nav-tab-active .tsa-tab-badge.tsa-badge-success {
	background: #00a32a;
}

.tsa-tab-badge.tsa-badge-warning {
	background: #dba617;
	color: #1d2327;
}

.tsa-tab-badge.tsa-badge-critical {
	background: #d63638;
}

.tsa-tab-badge.tsa-badge-premium {
	background: linear-gradient(135deg, #f0b849 0%, #e09b1c 100%);
	color: #fff;
}

.tsa-tab-badge.tsa-badge-free {
	background: #787c82;
	color: #fff;
}

/* Tab Count - similar to badge but lighter */
.tsa-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	margin-left: 5px;
	background: #dcdcde;
	color: #50575e;
	font-size: 10px;
	font-weight: 600;
	border-radius: 9px;
	line-height: 1;
	vertical-align: middle;
}

.nav-tab-active .tsa-tab-count {
	background: #c3c4c7;
	color: #1d2327;
}

/* ==========================================================================
   Combined View Tabs
   ========================================================================== */

.tsa-combined-view {
	margin-top: 20px;
}

.tsa-combined-view .nav-tab-wrapper {
	margin-bottom: 0;
	border-bottom: 1px solid #c3c4c7;
}

.tsa-combined-view .nav-tab {
	margin-bottom: -1px;
}

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

/* Remove extra padding when using partials */
.tsa-tab-content > .tsa-scan-page,
.tsa-tab-content > .tsa-card:first-child {
	margin-top: 0;
}

.tsa-tab-content > .tsa-card:last-child {
	margin-bottom: 0;
}

/* Help Page Styles */
.tsa-help-section {
	margin-bottom: 25px;
}

.tsa-help-section:last-child {
	margin-bottom: 0;
}

.tsa-help-section h3 {
	margin-top: 0;
	margin-bottom: 10px;
	color: #1d2327;
}

.tsa-help-section p {
	color: #50575e;
	line-height: 1.6;
}

.tsa-help-section ul {
	margin: 10px 0;
	padding-left: 20px;
}

.tsa-help-section li {
	margin-bottom: 5px;
	color: #50575e;
}

.tsa-checks-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 15px;
	margin-top: 15px;
}

.tsa-check-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px;
	background: #f6f7f7;
	border-radius: 4px;
}

.tsa-check-item .dashicons {
	color: #2271b1;
	flex-shrink: 0;
}

.tsa-check-item strong {
	display: block;
	margin-bottom: 3px;
}

.tsa-check-item span {
	font-size: 12px;
	color: #646970;
}

.tsa-support-links {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	margin-top: 15px;
}

.tsa-support-links .button {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.tsa-support-links .button .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* ========================================================================== */
/* VIEW-SPECIFIC STYLES (moved from inline <style> tags for WP.org compliance) */
/* ========================================================================== */

/* ========== DOCS PAGE ========== */
.tsa-docs-wrap .nav-tab-wrapper {
	margin-bottom: 20px;
}

.tsa-tab-count {
	display: inline-block;
	background: #2271b1;
	color: #fff;
	border-radius: 10px;
	padding: 0 8px;
	font-size: 11px;
	margin-left: 5px;
	line-height: 18px;
}

.nav-tab-active .tsa-tab-count {
	background: #135e96;
}

.tsa-docs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.tsa-docs-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
}

.tsa-docs-card h3 {
	margin-top: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.tsa-docs-card h3 .dashicons {
	color: #2271b1;
}

.tsa-docs-card ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsa-docs-card li {
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

.tsa-docs-card li:last-child {
	border-bottom: none;
}

.tsa-stat-cards {
	display: flex;
	gap: 20px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.tsa-stat-card {
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
	color: #fff;
	padding: 20px 30px;
	border-radius: 8px;
	text-align: center;
	min-width: 150px;
}

.tsa-stat-card .tsa-stat-number {
	font-size: 36px;
	font-weight: bold;
	display: block;
	color: inherit;
}

.tsa-stat-card .tsa-stat-label {
	font-size: 14px;
	opacity: 0.9;
	color: inherit;
}

.tsa-checker-section {
	background: #fff;
	border: 1px solid #c3c4c7;
	margin-bottom: 15px;
	border-radius: 4px;
}

.tsa-checker-header {
	padding: 15px 20px;
	background: #f8f9fa;
	border-bottom: 1px solid #c3c4c7;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tsa-checker-header h3 {
	margin: 0;
	font-size: 14px;
}

.tsa-checker-header .tsa-badge {
	background: #2271b1;
	color: #fff;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 12px;
}

.tsa-checker-issues {
	padding: 0;
	margin: 0;
	list-style: none;
}

.tsa-checker-issues li {
	padding: 12px 20px;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.tsa-checker-issues li:last-child {
	border-bottom: none;
}

.tsa-issue-info {
	flex: 1;
}

.tsa-issue-title {
	font-weight: 500;
	margin-bottom: 3px;
}

.tsa-issue-desc {
	color: #666;
	font-size: 13px;
}

.tsa-severity {
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
}

.tsa-severity-critical {
	background: #fde8e8;
	color: #d63638;
}

.tsa-severity-warning {
	background: #fcf0c3;
	color: #996800;
}

.tsa-severity-notice {
	background: #e5f5fa;
	color: #00a0d2;
}

.tsa-fixer-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 15px;
}

.tsa-fixer-item {
	background: #fff;
	border: 1px solid #c3c4c7;
	padding: 15px;
	border-radius: 4px;
}

.tsa-fixer-item h4 {
	margin: 0 0 8px 0;
	font-size: 14px;
}

.tsa-fixer-item p {
	margin: 0;
	color: #666;
	font-size: 13px;
}

.tsa-fixer-category {
	margin-bottom: 25px;
}

.tsa-fixer-category h3 {
	border-bottom: 2px solid #2271b1;
	padding-bottom: 10px;
	margin-bottom: 15px;
}

.tsa-integration-category {
	background: #fff;
	border: 1px solid #c3c4c7;
	margin-bottom: 15px;
	border-radius: 4px;
}

.tsa-integration-header {
	padding: 15px 20px;
	background: #f8f9fa;
	border-bottom: 1px solid #c3c4c7;
}

.tsa-integration-header h3 {
	margin: 0;
}

.tsa-integration-plugins {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 15px 20px;
}

.tsa-integration-plugin {
	background: #f0f0f1;
	padding: 5px 12px;
	border-radius: 15px;
	font-size: 13px;
}

.tsa-integration-plugin.tsa-detected {
	background: #d4edda;
	color: #155724;
}

.tsa-support-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	padding: 25px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.tsa-support-card h3 {
	margin-top: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.tsa-support-card h3 .dashicons {
	color: #2271b1;
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.tsa-premium-badge {
	display: inline-block;
	background: linear-gradient(135deg, #f0b849 0%, #e09b1c 100%);
	color: #fff;
	padding: 3px 10px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	margin-left: 10px;
}

.tsa-checker-header .tsa-premium-badge {
	margin-left: 10px;
}

/* ========== DOCS-MODULES PAGE ========== */
.tsa-docs-card pre {
	margin: 10px 0;
	white-space: pre-wrap;
	word-wrap: break-word;
}

/* ========== HELP PAGE ========== */
.tsa-docs-wrap .nav-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tsa-docs-wrap .nav-tab .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.nav-tab-active .tsa-tab-count {
	background: #135e96;
	color: #fff;
}

.tsa-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
}

/* ========== BACKUPS PAGE ========== */
.tsa-backup-type-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
}

.tsa-backup-type-option {
	cursor: pointer;
}

.tsa-backup-type-option input {
	position: absolute;
	opacity: 0;
}

.tsa-backup-type-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 25px;
	border: 2px solid #ddd;
	border-radius: 8px;
	background: #fff;
	transition: all 0.2s ease;
	min-width: 140px;
}

.tsa-backup-type-option input:checked + .tsa-backup-type-card {
	border-color: #2271b1;
	background: #f0f7fc;
}

.tsa-backup-type-option:hover .tsa-backup-type-card {
	border-color: #2271b1;
}

.tsa-backup-type-card .dashicons {
	font-size: 36px;
	width: 36px;
	height: 36px;
	margin-bottom: 10px;
	color: #2271b1;
}

.tsa-backup-type-name {
	font-weight: 600;
	margin-bottom: 5px;
}

.tsa-backup-type-desc {
	font-size: 12px;
	color: #666;
	text-align: center;
}

.tsa-progress-container {
	margin-top: 20px;
}

.tsa-progress-info {
	display: flex;
	justify-content: space-between;
	margin-bottom: 5px;
}

.tsa-progress-bar {
	height: 20px;
	background: #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
}

.tsa-progress-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #2271b1, #72aee6);
	border-radius: 10px;
	transition: width 0.3s ease;
}

.tsa-status-completed {
	color: #00a32a;
}

.tsa-status-failed {
	color: #d63638;
}

.tsa-status-in_progress {
	color: #dba617;
}

.tsa-status-pending {
	color: #72aee6;
}

.tsa-backup-type {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
}

.tsa-backup-type-database {
	background: #e3f2fd;
	color: #1565c0;
}

.tsa-backup-type-themes {
	background: #f3e5f5;
	color: #7b1fa2;
}

.tsa-backup-type-plugins {
	background: #e8f5e9;
	color: #2e7d32;
}

.tsa-backup-type-full {
	background: #fff3e0;
	color: #e65100;
}

.tsa-backup-actions .button {
	margin-right: 5px;
}

.tsa-backup-actions .dashicons {
	vertical-align: middle;
	margin-right: 3px;
}

.tsa-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tsa-modal-content {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	max-width: 500px;
	width: 90%;
}

.tsa-modal-header h3 {
	margin: 0 0 20px;
}

.tsa-card-info {
	background: #f8f9fa;
}

.tsa-card-info ul {
	margin-left: 20px;
}

.tsa-card-info li {
	margin-bottom: 10px;
}

.tsa-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 15px;
	padding: 10px;
	background: #fff;
	border-left: 4px solid #72aee6;
}

.tsa-note .dashicons-warning {
	color: #dba617;
}

#wtsa-start-backup {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

#wtsa-start-backup .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* ========== ISSUES PAGE ========== */
.tsa-active-fixes-section {
	background: #f0f6fc;
	border: 1px solid #c3c4c7;
	border-left: 4px solid #2271b1;
	padding: 15px 20px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.tsa-active-fixes-header {
	display: flex;
	align-items: center;
	gap: 15px;
}

.tsa-active-fixes-header > .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: #2271b1;
}

.tsa-active-fixes-info {
	flex: 1;
}

.tsa-active-fixes-info strong {
	font-size: 14px;
	color: #1d2327;
}

.tsa-active-fixes-desc {
	margin: 3px 0 0;
	color: #646970;
	font-size: 13px;
}

.tsa-active-fixes-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tsa-active-fixes-actions .button {
	display: flex;
	align-items: center;
	gap: 5px;
}

.tsa-active-fixes-actions .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.tsa-toggle-fixes-list {
	text-decoration: none;
	color: #2271b1;
}

.tsa-toggle-fixes-list .dashicons {
	transition: transform 0.2s;
}

.tsa-active-fixes-section.open .tsa-toggle-fixes-list .dashicons {
	transform: rotate(180deg);
}

.tsa-active-fixes-list {
	margin-top: 15px;
	border-top: 1px solid #c3c4c7;
	padding-top: 15px;
}

.tsa-active-fixes-list table {
	background: #fff;
}

.tsa-active-fixes-list .button .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	margin-right: 3px;
}

.tsa-fix-count {
	color: #646970;
	font-weight: normal;
	font-size: 12px;
}

.tsa-undo-all-fixes {
	background: #d63638 !important;
	border-color: #d63638 !important;
	color: #fff !important;
}

.tsa-undo-all-fixes:hover {
	background: #b32d2e !important;
	border-color: #b32d2e !important;
}

.tsa-status-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 15px;
	border-bottom: 1px solid #c3c4c7;
}

.tsa-status-tab {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	text-decoration: none;
	color: #646970;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: all 0.15s ease;
}

.tsa-status-tab:hover {
	color: #2271b1;
	background: #f6f7f7;
}

.tsa-status-tab.active {
	color: #2271b1;
	border-bottom-color: #2271b1;
	font-weight: 500;
}

.tsa-status-tab .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Passed checks section */
.tsa-section-passed {
	background: #f0f9f0;
	border: 1px solid #46b450;
	padding: 15px;
	margin-top: 20px;
	border-radius: 4px;
}

.tsa-section-passed .tsa-section-title {
	color: #46b450;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tsa-section-passed .tsa-section-desc {
	margin: 5px 0 15px 0;
	color: #666;
}

.tsa-count-passed {
	background: #46b450;
	color: #fff;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 12px;
}

.tsa-passed-group {
	margin-bottom: 15px;
}

.tsa-passed-group h4 {
	margin: 0 0 8px 0;
	font-size: 13px;
	color: #23282d;
}

.tsa-passed-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 5px;
}

.tsa-passed-list li {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #666;
}

.tsa-passed-list .dashicons-yes {
	color: #46b450;
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.tsa-toggle-icon {
	margin-left: auto;
	transition: transform 0.2s;
}

.tsa-section-passed.open .tsa-toggle-icon {
	transform: rotate(180deg);
}

/* ========== FIXES PAGE ========== */
.tsa-card h2 {
	margin-top: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.tsa-badge {
	background: #0073aa;
	color: #fff;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 12px;
}

.tsa-table {
	margin-top: 15px;
}

.tsa-empty-state {
	color: #666;
	font-style: italic;
}

.tsa-muted {
	color: #666;
}

.tsa-status {
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 12px;
}

.tsa-status-active {
	background: #46b450;
	color: #fff;
}

.tsa-status-reverted {
	background: #999;
	color: #fff;
}

.tsa-type-badge {
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 11px;
	background: #e0e0e0;
}

.tsa-type-security {
	background: #f0ad4e;
	color: #fff;
}

.tsa-type-database {
	background: #5bc0de;
	color: #fff;
}

.tsa-type-option {
	background: #999;
	color: #fff;
}

.tsa-type-file {
	background: #d9534f;
	color: #fff;
}

.tsa-type-table {
	background: #5bc0de;
	color: #fff;
}

.tsa-type-runtime {
	background: #5cb85c;
	color: #fff;
}

.tsa-type-permanent {
	background: #f0ad4e;
	color: #fff;
}

.tsa-reverted td {
	opacity: 0.7;
}

.tsa-no-revert {
	color: #999;
	font-style: italic;
	font-size: 12px;
}

/* ========== MODULES PAGE ========== */
.tsa-modules-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.tsa-module-card {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	overflow: hidden;
}

.tsa-module-card.tsa-module-enabled {
	border-color: #46b450;
}

.tsa-module-card.tsa-module-conflict {
	border-color: #dc3232;
	opacity: 0.7;
}

.tsa-module-header {
	background: #f9f9f9;
	padding: 15px 20px;
	border-bottom: 1px solid #eee;
	display: flex;
	align-items: center;
	gap: 10px;
}

.tsa-module-header .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #0073aa;
}

.tsa-module-header h3 {
	margin: 0;
	font-size: 16px;
	flex: 1;
}

.tsa-module-header .tsa-premium-badge {
	background: linear-gradient(135deg, #f0b849 0%, #e09b1c 100%);
	color: #fff;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: bold;
	text-transform: uppercase;
}

.tsa-module-locked {
	opacity: 0.85;
}

.tsa-module-locked .tsa-module-header .dashicons {
	color: #999;
}

.tsa-module-body {
	padding: 15px 20px;
}

.tsa-module-body p {
	margin: 0;
	color: #666;
}

.tsa-module-docs-link {
	margin-top: 10px !important;
}

.tsa-module-docs-link a {
	color: #2271b1;
	text-decoration: none;
	font-size: 13px;
}

.tsa-module-docs-link a:hover {
	color: #135e96;
	text-decoration: underline;
}

.tsa-module-docs-link .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	vertical-align: text-bottom;
	margin-right: 3px;
}

.tsa-conflict-notice {
	margin-top: 10px !important;
	color: #dc3232 !important;
}

.tsa-conflict-notice .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	vertical-align: text-bottom;
}

.tsa-module-footer {
	padding: 15px 20px;
	border-top: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tsa-module-status {
	padding: 4px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
}

.tsa-status-enabled {
	background: #46b450;
	color: #fff;
}

.tsa-status-disabled {
	background: #999;
	color: #fff;
}

.tsa-status-conflict {
	background: #dc3232;
	color: #fff;
}

.tsa-description {
	color: #666;
	font-size: 14px;
}

.tsa-premium-upsell {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	background: linear-gradient(135deg, #f8f4e8 0%, #fdf9f0 100%);
	border: 1px solid #e5c76b;
	border-left: 4px solid #e09b1c;
	padding: 20px;
	margin-bottom: 25px;
	border-radius: 4px;
}

.tsa-upsell-icon {
	flex-shrink: 0;
}

.tsa-upsell-icon .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	color: #e09b1c;
}

.tsa-upsell-content h3 {
	margin: 0 0 10px 0;
	color: #8b6914;
}

.tsa-upsell-content p {
	margin: 0 0 15px 0;
	color: #5c4a12;
}

/* ========== MODULE-REDIRECTS PAGE ========== */
.tsa-filters {
	margin: 15px 0;
}

.tsa-filters select,
.tsa-filters input[type="search"] {
	margin-right: 5px;
}

.tsa-test-tool {
	background: #fff;
	border: 1px solid #ccd0d4;
	padding: 15px;
	margin-bottom: 20px;
}

.tsa-test-tool h3 {
	margin-top: 0;
}

.tsa-test-form {
	display: flex;
	align-items: center;
	gap: 10px;
}

#wtsa-test-result {
	font-weight: 500;
}

.tsa-badge-301 {
	background: #46b450;
	color: #fff;
}

.tsa-badge-302 {
	background: #f0ad4e;
	color: #fff;
}

.tsa-badge-307 {
	background: #5bc0de;
	color: #fff;
}

.tsa-status-inactive {
	background: #999;
	color: #fff;
}

.tsa-modal-header {
	padding: 15px 20px;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tsa-modal-header h2 {
	margin: 0;
}

.tsa-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
}

.tsa-modal-body {
	padding: 20px;
}

.tsa-modal-body label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
}

.tsa-modal-body .required {
	color: #dc3232;
}

.tsa-modal-footer {
	padding: 15px 20px;
	border-top: 1px solid #eee;
	text-align: right;
}

.tsa-modal-footer .button {
	margin-left: 10px;
}

.column-source {
	width: 30%;
}

.column-target {
	width: 30%;
}

.column-type {
	width: 100px;
}

.column-hits {
	width: 100px;
}

.column-status {
	width: 80px;
}

/* ========== OPTIMIZE-UNIFIED PAGE ========== */
.tsa-optimize-unified {
	max-width: 1000px;
}

.tsa-page-intro {
	font-size: 14px;
	color: #646970;
	margin: 0 0 20px 0;
}

.tsa-premium-notice {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 20px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border-radius: 4px;
	margin-bottom: 20px;
}

.tsa-premium-notice .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
	opacity: 0.9;
}

.tsa-premium-notice div {
	flex: 1;
}

.tsa-premium-notice strong {
	font-size: 15px;
}

.tsa-premium-notice p {
	margin: 5px 0 0;
	opacity: 0.9;
}

.tsa-premium-notice .button {
	background: #fff;
	color: #764ba2;
	border: none;
}

.tsa-stats-bar {
	display: flex;
	gap: 30px;
	padding: 20px 25px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	margin-bottom: 25px;
}

.tsa-stat {
	display: flex;
	flex-direction: column;
}

.tsa-stat-number {
	font-size: 32px;
	font-weight: 600;
	line-height: 1;
	color: #1d2327;
}

.tsa-stat-number.tsa-stat-active {
	color: #00a32a;
}

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

.tsa-presets-section {
	margin-bottom: 40px;
}

.tsa-presets-section h2 {
	font-size: 18px;
	margin: 0 0 5px 0;
}

.tsa-section-desc {
	color: #646970;
	margin: 0 0 20px 0;
}

.tsa-presets-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 900px) {
	.tsa-presets-grid {
		grid-template-columns: 1fr;
	}
}

.tsa-preset-card {
	position: relative;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
	transition: all 0.2s;
}

.tsa-preset-card:hover {
	border-color: #2271b1;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tsa-preset-recommended {
	border-color: #2271b1;
	border-width: 2px;
}

.tsa-preset-badge {
	position: absolute;
	top: -10px;
	right: 15px;
	background: #2271b1;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 3px;
}

.tsa-preset-icon {
	width: 48px;
	height: 48px;
	background: #f0f0f1;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 15px;
}

.tsa-preset-icon .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #2271b1;
}

.tsa-preset-card h3 {
	font-size: 16px;
	margin: 0 0 10px 0;
}

.tsa-preset-card > p {
	color: #646970;
	font-size: 13px;
	margin: 0 0 15px 0;
}

.tsa-preset-card ul {
	list-style: none;
	padding: 0;
	margin: 0 0 20px 0;
}

.tsa-preset-card li {
	font-size: 12px;
	color: #50575e;
	padding: 3px 0;
	padding-left: 18px;
	position: relative;
}

.tsa-preset-card li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #00a32a;
}

.tsa-preset-card .button {
	width: 100%;
}

.tsa-reset-section {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #dcdcde;
	display: flex;
	align-items: center;
	gap: 15px;
}

.tsa-reset-all {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #b32d2e !important;
	border-color: #b32d2e !important;
}

.tsa-reset-all:hover {
	background: #b32d2e !important;
	color: #fff !important;
}

.tsa-reset-note {
	font-size: 12px;
	color: #646970;
}

.tsa-optimizations-section h2 {
	font-size: 18px;
	margin: 0 0 20px 0;
}

.tsa-category {
	margin-bottom: 30px;
}

.tsa-category-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 15px;
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-bottom: none;
	border-radius: 4px 4px 0 0;
}

.tsa-category-header .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #2271b1;
}

.tsa-category-info {
	flex: 1;
}

.tsa-category-info h3 {
	font-size: 14px;
	font-weight: 600;
	margin: 0;
}

.tsa-category-info p {
	font-size: 12px;
	color: #646970;
	margin: 2px 0 0;
}

.tsa-category-count {
	background: #c3c4c7;
	color: #50575e;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 10px;
}

.tsa-category-requirements {
	font-size: 11px;
	color: #9a6700;
	background: #fcf0e3;
	padding: 4px 10px;
	border-radius: 3px;
	border: 1px solid #f0c675;
}

.tsa-category-unavailable-notice {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 20px;
	background: #f9f9f9;
	color: #646970;
}

.tsa-category-unavailable-notice .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #9a6700;
}

.tsa-category-unavailable-notice strong {
	display: block;
	color: #50575e;
	margin-bottom: 3px;
}

.tsa-category-unavailable-notice p {
	margin: 0;
	font-size: 13px;
}

.tsa-items-list {
	border: 1px solid #c3c4c7;
	border-radius: 0 0 4px 4px;
	overflow: hidden;
}

.tsa-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 15px;
	background: #fff;
	border-bottom: 1px solid #f0f0f1;
	transition: background 0.15s;
}

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

.tsa-item:hover {
	background: #f9f9f9;
}

.tsa-item-active {
	background: #f0f7f0;
}

.tsa-item-active:hover {
	background: #e5f2e5;
}

.tsa-item-status {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tsa-item-status .dashicons-yes-alt {
	color: #00a32a;
}

.tsa-item-status .dashicons-marker {
	color: #c3c4c7;
}

.tsa-item-content {
	flex: 1;
	min-width: 0;
}

.tsa-item-name {
	font-size: 13px;
	font-weight: 600;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 5px;
}

.tsa-item-warning .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	color: #dba617;
}

.tsa-item-desc {
	font-size: 12px;
	color: #646970;
	margin: 2px 0 0;
}

.tsa-item-action {
	flex-shrink: 0;
}

.tsa-item-action .button {
	min-width: 90px;
}

.tsa-locked {
	color: #c3c4c7;
}

.tsa-applied {
	color: #00a32a;
	font-size: 12px;
	font-weight: 600;
}

.tsa-item-unavailable {
	opacity: 0.7;
	background: #f9f9f9;
}

.tsa-item-unavailable .tsa-item-status .dashicons-lock {
	color: #dba617;
}

.tsa-item-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 3px;
	margin-left: 8px;
	vertical-align: middle;
}

.tsa-badge-requirement {
	background: #fcf0e3;
	color: #9a6700;
	border: 1px solid #f0c675;
}

.tsa-unavailable {
	color: #9a6700;
}

.tsa-unavailable .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.tsa-scanner-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	background: #f0f6fc;
	border: 1px solid #c3c4c7;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
	margin-top: 30px;
}

.tsa-scanner-link-content {
	display: flex;
	align-items: center;
	gap: 15px;
}

.tsa-scanner-link-content .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: #2271b1;
}

.tsa-scanner-link h3 {
	margin: 0;
	font-size: 14px;
}

.tsa-scanner-link p {
	margin: 3px 0 0;
	color: #646970;
	font-size: 13px;
}

.tsa-item.tsa-loading {
	opacity: 0.6;
	pointer-events: none;
}

.tsa-notification {
	position: fixed;
	bottom: 30px;
	right: 30px;
	padding: 15px 25px;
	background: #1d2327;
	color: #fff;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	z-index: 99999;
	animation: tsa-slide-in 0.3s ease;
}

.tsa-notification.tsa-success {
	background: #00a32a;
}

.tsa-notification.tsa-error {
	background: #d63638;
}

@keyframes tsa-slide-in {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========== LICENSE PAGE ========== */
.tsa-comparison-table {
	margin-top: 15px;
}

.tsa-comparison-table th,
.tsa-comparison-table td {
	padding: 12px 15px;
	text-align: left;
}

.tsa-comparison-table .tsa-col-free,
.tsa-comparison-table .tsa-col-premium {
	text-align: center;
	width: 120px;
}

.tsa-comparison-table .tsa-col-premium {
	background: #f0f7fc;
}

.tsa-comparison-table thead .tsa-col-premium {
	background: #2271b1;
	color: #fff;
}

.tsa-comparison-table .dashicons-yes {
	color: #00a32a;
}

.tsa-comparison-table .dashicons-no {
	color: #ccc;
}

.tsa-woo-checks-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 15px;
}

.tsa-woo-check-category h4 {
	margin: 0 0 10px 0;
	font-size: 13px;
	color: #1d2327;
}

.tsa-woo-check-category ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsa-woo-check-category li {
	padding: 4px 0;
	font-size: 12px;
	color: #50575e;
}

.tsa-woo-check-category li:before {
	content: "•";
	color: #7f54b3;
	margin-right: 5px;
}

.tsa-fixers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 15px;
}

.tsa-fixer-category h4 {
	margin: 0 0 10px 0;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 5px;
}

.tsa-fixer-category h4 .dashicons {
	color: #2271b1;
}

.tsa-fixer-category ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsa-fixer-category li {
	padding: 4px 0;
	font-size: 12px;
	color: #50575e;
	cursor: help;
}

.tsa-fixer-category li:before {
	content: "✓";
	color: #00a32a;
	margin-right: 5px;
}

.tsa-upgrade-benefits {
	list-style: none;
	padding: 0;
	margin: 15px 0;
}

.tsa-upgrade-benefits li {
	padding: 8px 0;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}

.tsa-upgrade-benefits .dashicons-yes-alt {
	color: #00a32a;
}
