/**
 * Nyambush Admin Styles
 *
 * @package Nyambush
 */

/* Settings page layout */
.nyambush-settings__grid {
	display: flex;
	gap: 20px;
	margin-top: 20px;
}

.nyambush-settings__main {
	flex: 1;
	min-width: 0;
}

.nyambush-settings__sidebar {
	width: 320px;
	flex-shrink: 0;
}

@media screen and (max-width: 960px) {
	.nyambush-settings__grid {
		flex-direction: column;
	}
	.nyambush-settings__sidebar {
		width: 100%;
	}
}

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

.nyambush-card h2 {
	margin-top: 0;
	font-size: 14px;
	font-weight: 600;
}

/* Connection status badges */
.nyambush-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
}

.nyambush-status--connected {
	background: #d4edda;
	color: #155724;
}

.nyambush-status--disconnected {
	background: #f8d7da;
	color: #721c24;
}

/* Risk score display */
.nyambush-widget__risk {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 12px;
}

.nyambush-widget__risk-score {
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
}

.nyambush-widget__risk-label {
	font-size: 14px;
	font-weight: 600;
}

.nyambush-risk--critical {
	background: #f8d7da;
	color: #721c24;
}

.nyambush-risk--high {
	background: #fff3cd;
	color: #856404;
}

.nyambush-risk--medium {
	background: #ffeeba;
	color: #856404;
}

.nyambush-risk--low {
	background: #d4edda;
	color: #155724;
}

/* Severity badges */
.nyambush-widget__findings {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.nyambush-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
}

.nyambush-badge--critical {
	background: #dc3545;
	color: #fff;
}

.nyambush-badge--high {
	background: #fd7e14;
	color: #fff;
}

.nyambush-badge--medium {
	background: #ffc107;
	color: #212529;
}

.nyambush-badge--low {
	background: #28a745;
	color: #fff;
}

.nyambush-badge--safe {
	background: #d4edda;
	color: #155724;
}

/* Widget vulnerable plugins list */
.nyambush-widget__plugins {
	margin-bottom: 12px;
}

.nyambush-widget__plugins h4 {
	margin: 0 0 6px;
	font-size: 13px;
}

.nyambush-widget__plugins ul {
	margin: 0;
	padding-left: 18px;
}

.nyambush-widget__plugins li {
	font-size: 13px;
	color: #dc3545;
}

/* Widget meta */
.nyambush-widget__meta {
	margin-bottom: 8px;
}

.nyambush-widget__meta .description {
	margin: 2px 0;
}

/* Action status spinner */
#nyambush-action-status {
	margin-left: 8px;
	font-style: italic;
	color: #666;
}

#nyambush-action-status.nyambush-success {
	color: #155724;
	font-style: normal;
}

#nyambush-action-status.nyambush-error {
	color: #721c24;
	font-style: normal;
}
