/* Voxfor Secure Live Chat - Knowledge Manager Styles */

.voxfseli-knowledge-manager {
	max-width: 1200px;
}

.voxfseli-km-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 20px 0;
	padding: 20px;
	background: #ffffff;
	border: 1px solid #e1e5e9;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.voxfseli-km-header h1,
.voxfseli-km-header h2 {
	margin: 0;
	color: #1d2327;
	font-size: 24px;
	font-weight: 600;
}

.voxfseli-km-stats span {
	margin-right: 20px;
	color: #666;
}

.voxfseli-km-actions button {
	margin-left: 10px;
}

.voxfseli-km-tabs {
	margin: 20px 0;
}

.voxfseli-km-tabs .nav-tab {
	position: relative;
}

.voxfseli-km-tab-content {
	display: none;
	background: #ffffff;
	padding: 24px;
	border: 1px solid #e1e5e9;
	border-top: none;
	border-radius: 0 0 8px 8px;
}

.voxfseli-km-tab-content.active {
	display: block;
}

/* Improve nav tab styling */
.nav-tab-wrapper .nav-tab {
	border-radius: 8px 8px 0 0;
	border: 1px solid #e1e5e9;
	margin-right: 4px;
	padding: 12px 20px;
	font-weight: 500;
}

.nav-tab-wrapper .nav-tab-active {
	background: #ffffff;
	border-bottom-color: #ffffff;
}

.voxfseli-km-search {
	margin-bottom: 20px;
	display: flex;
	gap: 10px;
	align-items: center;
}

.voxfseli-km-search input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.voxfseli-km-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

.voxfseli-km-table th,
.voxfseli-km-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.voxfseli-km-table th {
	background: #f9f9f9;
	font-weight: 600;
}

.voxfseli-km-table tr:hover {
	background: #f5f5f5;
}

.voxfseli-km-status {
	padding: 4px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
}

.voxfseli-km-status.published {
	background: #d4edda;
	color: #155724;
}

.voxfseli-km-status.draft {
	background: #fff3cd;
	color: #856404;
}

.voxfseli-km-status.private {
	background: #f8d7da;
	color: #721c24;
}

.voxfseli-km-actions-cell {
	white-space: nowrap;
}

.voxfseli-km-actions-cell a,
.voxfseli-km-actions-cell button {
	margin-right: 8px;
	font-size: 12px;
	text-decoration: none;
}

.voxfseli-km-form {
	max-width: 800px;
}

.voxfseli-km-form .form-table th {
	padding-left: 0;
}

.voxfseli-km-form .form-table td {
	padding-right: 0;
}

.voxfseli-km-editor {
	width: 100%;
	min-height: 300px;
}

.voxfseli-km-category-list {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 5px;
}

.voxfseli-km-category-tag {
	background: #e7f3ff;
	color: #0073aa;
	padding: 4px 8px;
	border-radius: 3px;
	font-size: 12px;
}

.voxfseli-km-bulk-actions {
	margin: 20px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.voxfseli-km-import-export {
	background: #f9f9f9;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-top: 20px;
}

.voxfseli-km-import-export h3 {
	margin-top: 0;
}

.voxfseli-km-upload-area {
	border: 2px dashed #ddd;
	padding: 40px;
	text-align: center;
	border-radius: 4px;
	margin: 20px 0;
	transition: all 0.3s ease;
}

.voxfseli-km-upload-area:hover,
.voxfseli-km-upload-area.drag-over {
	border-color: #0073aa;
	background: #f7f7f7;
}

.voxfseli-km-file-info {
	margin-top: 10px;
	padding: 10px;
	background: #e7f3ff;
	border-radius: 4px;
	display: none;
}

.voxfseli-km-progress {
	width: 100%;
	height: 10px;
	background: #f0f0f0;
	border-radius: 5px;
	margin: 10px 0;
	overflow: hidden;
}

.voxfseli-km-progress-bar {
	height: 100%;
	background: #0073aa;
	width: 0%;
	transition: width 0.3s ease;
}

.voxfseli-km-filters {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	align-items: center;
}

.voxfseli-km-filters select {
	padding: 6px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.voxfseli-km-pagination {
	margin: 20px 0;
	text-align: center;
}

.voxfseli-km-pagination .page-numbers {
	padding: 8px 12px;
	margin: 0 2px;
	border: 1px solid #ddd;
	text-decoration: none;
	border-radius: 3px;
}

.voxfseli-km-pagination .page-numbers:hover,
.voxfseli-km-pagination .page-numbers.current {
	background: #0073aa;
	color: white;
	border-color: #0073aa;
}

.voxfseli-km-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
}

.voxfseli-km-modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	padding: 20px;
	border-radius: 4px;
	max-width: 600px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
}

.voxfseli-km-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #ddd;
}

.voxfseli-km-modal-close {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.voxfseli-km-notice {
	padding: 10px 15px;
	margin: 10px 0;
	border-radius: 4px;
}

.voxfseli-km-notice.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.voxfseli-km-notice.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.voxfseli-km-notice.warning {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

.voxfseli-km-loading {
	text-align: center;
	padding: 40px;
}

.voxfseli-km-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #0073aa;
	border-radius: 50%;
	animation: voxfseli-km-spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
	.voxfseli-km-header {
		flex-direction: column;
		gap: 15px;
		align-items: stretch;
	}
	
	.voxfseli-km-stats {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
	}
	
	.voxfseli-km-stats span {
		margin-right: 0;
	}
	
	.voxfseli-km-actions {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
	}
	
	.voxfseli-km-actions button {
		margin-left: 0;
		flex: 1;
	}
	
	.voxfseli-km-search {
		flex-direction: column;
		align-items: stretch;
	}
	
	.voxfseli-km-filters {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	
	.voxfseli-km-table {
		font-size: 14px;
	}
	
	.voxfseli-km-table th,
	.voxfseli-km-table td {
		padding: 8px;
	}
	
	.voxfseli-km-modal-content {
		width: 95%;
		margin: 20px;
	}
}

/* Knowledge Base Item Styles */
.voxfseli-items-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 20px;
}

.voxfseli-km-item {
	background: #ffffff;
	border: 1px solid #e1e5e9;
	border-radius: 8px;
	padding: 20px;
	transition: all 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.voxfseli-km-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border-color: #c3c4c7;
}

.voxfseli-km-item-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 12px;
}

.voxfseli-km-item-title {
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
	margin: 0;
	line-height: 1.4;
	flex: 1;
	margin-right: 16px;
}

.voxfseli-km-item-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.voxfseli-km-item-actions .button {
	padding: 4px 12px;
	font-size: 13px;
	height: auto;
	line-height: 1.4;
	min-height: 28px;
}

.voxfseli-km-item-content {
	color: #50575e;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 12px;
	max-height: 60px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.voxfseli-km-item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
	color: #646970;
	border-top: 1px solid #f0f0f1;
	padding-top: 12px;
	margin-top: 12px;
}

.voxfseli-km-item-meta span {
	display: flex;
	align-items: center;
}

.voxfseli-km-item-url {
	color: #0073aa;
	text-decoration: none;
	font-size: 13px;
}

.voxfseli-km-item-url:hover {
	text-decoration: underline;
}

/* Product-specific styles */
.voxfseli-km-product-item {
	background: #ffffff;
	border: 1px solid #e1e5e9;
	border-radius: 8px;
	padding: 20px;
	transition: all 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.voxfseli-km-product-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border-color: #c3c4c7;
}

.voxfseli-km-product-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 16px;
}

.voxfseli-km-product-title {
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
	margin: 0;
	line-height: 1.4;
	flex: 1;
	margin-right: 16px;
}

.voxfseli-km-product-price {
	font-size: 18px;
	font-weight: 700;
	color: #0073aa;
	margin-left: 12px;
}

.voxfseli-km-product-details {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.voxfseli-km-product-detail {
	font-size: 13px;
}

.voxfseli-km-product-detail strong {
	color: #1d2327;
	display: block;
	margin-bottom: 4px;
}

.voxfseli-km-product-detail span {
	color: #646970;
}

.voxfseli-km-product-description {
	color: #50575e;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 12px;
	max-height: 60px;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* No content state */
.voxfseli-no-content {
	text-align: center;
	padding: 60px 20px;
	background: #fafafa;
	border: 2px dashed #d0d0d0;
	border-radius: 8px;
	margin: 20px 0;
}

.voxfseli-no-content p {
	margin: 0 0 8px 0;
	color: #646970;
}

.voxfseli-no-content p:first-child {
	color: #1d2327;
	font-size: 16px;
	font-weight: 600;
}

/* Tab content wrapper */
.voxfseli-tab-content-wrapper {
	padding: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.voxfseli-km-item,
	.voxfseli-km-product-item {
		padding: 16px;
	}
	
	.voxfseli-km-item-header,
	.voxfseli-km-product-header {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	
	.voxfseli-km-item-actions {
		align-self: flex-end;
	}
	
	.voxfseli-km-product-details {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	
	.voxfseli-km-item-meta {
		flex-direction: column;
		gap: 8px;
	}
}

/* Edit Form Styling */
.voxfseli-km-item-editor {
	background: #f9f9f9;
	border: 1px solid #e1e5e9;
	border-radius: 8px;
	padding: 20px;
	margin-top: 16px;
}

.voxfseli-km-field {
	margin-bottom: 16px;
}

.voxfseli-km-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: #1d2327;
	font-size: 14px;
}

.voxfseli-km-field input[type="text"],
.voxfseli-km-field input[type="url"],
.voxfseli-km-field input[type="number"],
.voxfseli-km-field textarea,
.voxfseli-km-field select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.4;
	background: #ffffff;
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

.voxfseli-km-field input[type="text"]:focus,
.voxfseli-km-field input[type="url"]:focus,
.voxfseli-km-field input[type="number"]:focus,
.voxfseli-km-field textarea:focus,
.voxfseli-km-field select:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 1px #0073aa;
}

.voxfseli-km-field textarea {
	min-height: 80px;
	resize: vertical;
}

/* Product form specific styling */
.voxfseli-km-product-details {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.voxfseli-km-product-details .voxfseli-km-field {
	margin-bottom: 16px;
}

/* Make sure form elements in product details take full width of their column */
.voxfseli-km-product-details .voxfseli-km-field input,
.voxfseli-km-product-details .voxfseli-km-field select,
.voxfseli-km-product-details .voxfseli-km-field textarea {
	width: 100%;
	box-sizing: border-box;
}

/* Pages and Posts - single column full width */
.voxfseli-km-item .voxfseli-km-field input,
.voxfseli-km-item .voxfseli-km-field textarea,
.voxfseli-km-item .voxfseli-km-field select {
	width: 100%;
	box-sizing: border-box;
}

/* Responsive adjustments for forms */
@media (max-width: 768px) {
	.voxfseli-km-product-details {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.voxfseli-km-item-editor {
		padding: 16px;
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {		
	.voxfseli-km-table th {
		background: #3c434a;
		color: #f0f0f1;
	}
	
	.voxfseli-km-table tr:hover {
		background: #3c434a;
	}
	
	.voxfseli-km-modal-content {
		background: #2c3338;
		color: #f0f0f1;
	}
} 