/* Responsive table */
@media screen and (max-width: 782px) {
	#plugin-check__submit {
		margin-top: 1em;
	}

	table#plugin-check__categories td {
		padding-bottom: .5em;
	}

  table.plugin-check__results-table {
    border: 0;
  }

  table.plugin-check__results-table caption {
    font-size: 1.3em;
  }

  table.plugin-check__results-table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  table.plugin-check__results-table tr {
    border-bottom: 3px solid #ddd;
    display: block;
  }

	table.plugin-check__results-table td,
	table.plugin-check__results-table code {
		font-size: .9em;
	}

  table.plugin-check__results-table td {
    border-bottom: 1px solid #ddd;
    display: block;
    text-align: right;
  }

  table.plugin-check__results-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
  }

	.rtl table.plugin-check__results-table td {
		text-align: left;
	}

	.rtl table.plugin-check__results-table td::before {
		float: right;
	}

  table.plugin-check__results-table td:last-child {
    border-bottom: 0;
  }
}

/* AI Analysis Styles */
.plugin-check__ai-analysis {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 8px;
	padding: 6px 10px;
	border-radius: 3px;
	font-size: 0.9em;
	line-height: 1.4;
}

.plugin-check__ai-analysis--false-positive {
	background-color: #fff3cd;
	border-left: 3px solid #ffc107;
	color: #856404;
}

.plugin-check__ai-analysis--valid {
	background-color: #d1ecf1;
	border-left: 3px solid #17a2b8;
	color: #0c5460;
}

.plugin-check__ai-analysis-icon {
	font-size: 14px;
	line-height: 1;
}

.plugin-check__ai-reasoning {
	display: block;
	margin-top: 5px;
	padding: 8px;
	background-color: #f8f9fa;
	border-left: 3px solid #6c757d;
	font-size: 0.9em;
	font-style: normal;
	color: #495057;
	line-height: 1.5;
}

.plugin-check__ai-recommendation {
	display: block;
	margin-top: 5px;
	padding: 8px;
	background-color: #e7f3ff;
	border-left: 3px solid #0066cc;
	font-size: 0.9em;
	color: #004085;
	line-height: 1.5;
}

.plugin-check__false-positives {
	margin: 1.5em 0;
	border: 1px solid #dcdcde;
	background: #fff;
}

.plugin-check__false-positives summary {
	padding: 12px 14px;
	font-weight: 600;
	cursor: pointer;
}

.plugin-check__false-positive-results {
	padding: 0 14px 14px;
}

#plugin-check__results .plugin-check__false-positive-results h4:first-child {
	margin-top: 12px;
}

.plugin-check__false-positive-results table.plugin-check__results-table {
	margin-bottom: 1em;
}

.plugin-check__options {
	display: flex;
}

.plugin-check__options #plugin-check__types-container {
	margin-left: 40px;
}

.plugin-check__options #plugin-check__ai-container {
	margin-left: 40px;
}

/* JSON output formatting */
#plugin-check-namer-raw {
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
	font-size: 13px;
	line-height: 1.6;
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 15px;
	max-height: 600px;
	overflow: auto;
	color: #1d2327;
	white-space: pre-wrap;
	word-wrap: break-word;
}

/* Plugin Check Namer styles */
.plugin-check-namer-spinner {
	float: none;
	margin-left: 10px;
}

.plugin-check-namer-hidden {
	display: none;
}

.plugin-check-namer-verdict-container {
	margin-bottom: 20px;
	padding: 15px;
	background: #fff;
	border-left: 4px solid #2271b1;
}

.plugin-check-namer-verdict-item {
	margin: 0 0 10px 0;
}

.plugin-check-namer-meta {
	margin: 0 0 5px 0;
	color: #646970;
	font-style: italic;
	font-size: 0.9em;
}

.plugin-check-namer-tokens {
	margin: 0;
}

.plugin-check-namer-confusion {
	margin-top: 20px;
}

.plugin-check-namer-confusion-item {
	margin-bottom: 15px;
	padding: 10px;
	background: #fff;
	border-left: 4px solid #2271b1;
}

.plugin-check-namer-confusion-item-others {
	border-left-color: #dba617;
}

.plugin-check-namer-confusion-meta {
	color: #646970;
}

.plugin-check-namer-confusion-text {
	color: #646970;
	font-size: 0.9em;
}
