.cws-mcp-profile-manager {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 20px;
	margin-top: 20px;
}

.cws-mcp-profiles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 15px;
	margin-top: 15px;
}

.cws-mcp-profile-card {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 15px;
	background: #fff;
}

.cws-mcp-profile-card.active {
	border-color: #2271b1;
	background: #f0f6fc;
}

.cws-mcp-profile-card.custom {
	border-left: 4px solid #d63638;
}

.cws-mcp-profile-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.cws-mcp-profile-header h3 {
	margin: 0;
	font-size: 16px;
}

.cws-mcp-badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 600;
	border-radius: 3px;
	text-transform: uppercase;
}

.cws-mcp-badge.active {
	background: #2271b1;
	color: #fff;
}

.cws-mcp-badge.custom {
	background: #d63638;
	color: #fff;
}

.cws-mcp-profile-description {
	color: #666;
	font-size: 13px;
	margin: 10px 0;
}

.cws-mcp-profile-meta {
	font-size: 13px;
	color: #666;
	margin: 10px 0;
}

.cws-mcp-profile-actions {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
	margin-top: 15px;
}

.cws-mcp-profile-actions-section .cws-mcp-card {
	margin-bottom: 20px;
}

.cws-mcp-import-section {
	margin-top: 10px;
}

.cws-mcp-import-section textarea {
	margin-bottom: 10px;
}

.cws-mcp-modal {
	display: none;
	position: fixed;
	z-index: 100000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.4);
}

.cws-mcp-modal-content {
	background-color: #fefefe;
	margin: 5% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
	max-width: 800px;
	border-radius: 4px;
	max-height: 80vh;
	overflow-y: auto;
}

.cws-mcp-modal-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}

.cws-mcp-modal-close:hover,
.cws-mcp-modal-close:focus {
	color: #000;
}

.cws-mcp-form-field {
	margin-bottom: 20px;
}

.cws-mcp-form-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
}

.cws-mcp-tools-selection {
	margin-bottom: 10px;
}

.cws-mcp-tools-filter {
	margin-bottom: 8px;
}

.cws-mcp-tools-filter-row {
	display: flex;
	gap: 8px;
	align-items: center;
}

.cws-mcp-tool-search-input {
	flex: 1;
	min-width: 0;
}

.cws-mcp-tool-category-select {
	flex-shrink: 0;
	max-width: 220px;
}

.cws-mcp-tools-filter-count {
	margin: 5px 0 0;
	font-size: 12px;
	color: #888;
	min-height: 1em;
}

.cws-mcp-no-tools-found {
	text-align: center;
	color: #888;
	font-style: italic;
	padding: 20px 0;
	margin: 0;
}

.cws-mcp-tools-list {
	max-height: 400px;
	overflow-y: auto;
	border: 1px solid #ddd;
	padding: 10px;
	background: #f9f9f9;
}

.cws-mcp-tool-checkbox {
	display: block;
	padding: 8px;
	margin-bottom: 5px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 3px;
	cursor: pointer;
}

.cws-mcp-tool-checkbox:hover {
	background: #f0f0f0;
}

.cws-mcp-tool-checkbox input[type="checkbox"] {
	margin-right: 8px;
}

.cws-mcp-tool-checkbox .tool-name {
	font-weight: 600;
	color: #2271b1;
}

.cws-mcp-tool-checkbox .tool-description {
	display: block;
	font-size: 12px;
	color: #666;
	margin-left: 24px;
	margin-top: 3px;
}

.cws-mcp-modal-actions {
	margin-top: 20px;
	display: flex;
	gap: 10px;
}

@media (max-width: 768px) {
	.cws-mcp-profile-manager {
		grid-template-columns: 1fr;
	}
	
	.cws-mcp-profiles-grid {
		grid-template-columns: 1fr;
	}
}
