/* === AIOHM Manage KB Page Styles === */
/* OHM Brand Colors:
	Light Grey: #EBEBEB
	Dark Green: #1f5014
	Dark Grey: #272727
	Light Green: #457d58
*/

/* Page branding */
.aiohm-manage-kb-page {
	font-family: 'PT Sans', sans-serif;
}

.aiohm-manage-kb-page h1 {
	font-family: 'Montserrat', sans-serif;
	color: #1f5014;
	font-weight: bold;
}

.page-description {
	color: #666;
	font-size: 16px;
	margin: 10px 0 20px 0;
}

/* Knowledge Base Introduction Section */
.aiohm-knowledge-intro {
	display: flex;
	gap: 20px;
	margin: 20px 0;
	flex-wrap: wrap;
}

.knowledge-section {
	flex: 1;
	min-width: 300px;
	padding: 20px;
	border-radius: 8px;
	border: 2px solid;
	position: relative;
}

.knowledge-section.public-section {
	background: linear-gradient(135deg, #f8fbf9 0%, #f0f8f4 100%);
	border-color: #457d58;
}

.knowledge-section.private-section {
	background: linear-gradient(135deg, #f9f9f9 0%, #EBEBEB 100%);
	border-color: #272727;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	flex-wrap: wrap;
	gap: 10px;
}

.section-header h3 {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: bold;
	display: flex;
	align-items: center;
	gap: 8px;
}

.section-icon {
	font-size: 20px;
}

.section-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	text-decoration: none;
	font-size: 14px;
	background: #457d58 !important;
	color: white !important;
	border: 1px solid #457d58 !important;
	padding: 6px 12px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.section-link:hover {
	background: #1f5014 !important;
	border-color: #1f5014 !important;
	color: white !important;
	text-decoration: none;
}

/* Settings Section */
.aiohm-settings-section {
	background: #fff;
	padding: 1px 20px 20px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	margin-top: 20px;
}

.aiohm-settings-section h2 {
	font-family: 'Montserrat', sans-serif;
	color: #1f5014;
	border-bottom: 2px solid #457d58;
	padding-bottom: 10px;
}

/* Actions Grid */
.actions-grid-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
	margin-top: 20px;
	align-items: start;
}

.action-box {
	background: #fff;
	border: 2px solid #EBEBEB;
	border-radius: 8px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	min-height: 200px;
}

.action-box:hover {
	border-color: #457d58;
	box-shadow: 0 4px 12px rgba(69, 125, 88, 0.15);
}

.action-box h3 {
	margin-top: 0;
	font-size: 1.2em;
	margin-bottom: 10px;
	font-family: 'Montserrat', sans-serif;
	color: #1f5014;
}

.action-box p.description {
	font-size: 0.9em;
	color: #272727;
	margin-bottom: 15px;
	flex-grow: 1;
	line-height: 1.5;
}

.action-box .button-hero {
	font-size: 1.1em;
	padding: 12px 20px;
	height: auto;
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	border-radius: 6px;
	font-weight: bold;
	transition: all 0.2s ease;
	background: #457d58 !important;
	border-color: #457d58 !important;
	color: white !important;
}

.action-box .button-hero:hover {
	background: #1f5014 !important;
	border-color: #1f5014 !important;
	color: white !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(31, 80, 20, 0.3);
}

.action-box.reset-action {
	border-left: 4px solid #272727;
}

.action-box.reset-action:hover {
	border-color: #272727;
	box-shadow: 0 4px 12px rgba(39, 39, 39, 0.15);
}

.action-box.reset-action .button-hero {
	background: #272727 !important;
	border-color: #272727 !important;
}

.action-box.reset-action .button-hero:hover {
	background: #1a1a1a !important;
	border-color: #1a1a1a !important;
}

/* Restore Controls */
.restore-controls {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: auto;
}

.file-input-group {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.file-input-group label.button-secondary {
	background: #EBEBEB !important;
	border-color: #EBEBEB !important;
	color: #272727 !important;
}

.file-input-group label.button-secondary:hover {
	background: #272727 !important;
	border-color: #272727 !important;
	color: white !important;
}

.file-name-display {
	font-style: italic;
	color: #272727;
	font-size: 14px;
	min-height: 20px;
}

/* Table Enhancements */
.wp-list-table {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wp-list-table th {
	background: #EBEBEB;
	color: #272727;
	font-family: 'Montserrat', sans-serif;
	font-weight: bold;
	position: relative;
	padding: 12px 10px;
	border-bottom: 1px solid #272727;
}

.wp-list-table th.sortable a,
.wp-list-table th.sorted a {
	color: #272727;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Hide sorting icons on all columns by default */
.wp-list-table th.sortable a::after,
.wp-list-table th.sorted a::after {
	display: none;
}

/* Show sorting icons only on Title column */
.wp-list-table th.column-title.sortable a::after,
.wp-list-table th.column-title.sorted a::after {
	display: inline;
	content: "↕";
	font-size: 14px;
	margin-left: 6px;
	margin-right: 0;
	opacity: 0.7;
	font-weight: bold;
	color: #1f5014;
}

.wp-list-table th.column-title.sorted.asc a::after {
	content: "▲";
	opacity: 1;
	color: #1f5014;
	font-size: 12px;
}

.wp-list-table th.column-title.sorted.desc a::after {
	content: "▼";
	opacity: 1;
	color: #1f5014;
	font-size: 12px;
}

.wp-list-table th.column-title.sortable:hover a::after {
	opacity: 1;
}

/* Bulk action Apply button styling - both top and bottom - Higher specificity to override WordPress core */
.wp-core-ui .aiohm-manage-kb-page .tablenav .button,
.wp-core-ui .aiohm-manage-kb-page .tablenav .button-secondary,
.wp-core-ui .aiohm-manage-kb-page .tablenav-top .button,
.wp-core-ui .aiohm-manage-kb-page .tablenav-bottom .button,
.wp-core-ui .aiohm-manage-kb-page #doaction,
.wp-core-ui .aiohm-manage-kb-page #doaction2 {
	background: #1f5014 !important;
	border-color: #1f5014 !important;
	color: white !important;
	font-weight: 600 !important;
}

.wp-core-ui .aiohm-manage-kb-page .tablenav .button:hover,
.wp-core-ui .aiohm-manage-kb-page .tablenav .button-secondary:hover,
.wp-core-ui .aiohm-manage-kb-page .tablenav-top .button:hover,
.wp-core-ui .aiohm-manage-kb-page .tablenav-bottom .button:hover,
.wp-core-ui .aiohm-manage-kb-page #doaction:hover,
.wp-core-ui .aiohm-manage-kb-page #doaction2:hover {
	background: #457d58 !important;
	border-color: #457d58 !important;
	color: white !important;
}

/* Visibility badges */
.visibility-text {
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
}

.visibility-public {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.visibility-private {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Content type badges */
.aiohm-content-type-badge {
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	display: inline-block;
}

/* Content type colors - grouped by category with different nuances */

/* WordPress Content - Blue family */
.type-post { background: #e7f5ff; color: #005a87; }
.type-page { background: #dbeafe; color: #1e40af; }

/* Documents - Purple family */
.type-pdf { background: #f3e7ff; color: #6f42c1; }
.type-doc { background: #ede9fe; color: #8b5cf6; }
.type-word { background: #e0e7ff; color: #6366f1; }

/* Text Files - Amber/Yellow family */
.type-txt { background: #fff8e7; color: #b8860b; }
.type-md { background: #fef3c7; color: #d97706; }
.type-csv { background: #fffbeb; color: #f59e0b; }
.type-json { background: #fef7cd; color: #ca8a04; }
.type-text { background: #fff9db; color: #a16207; }
/* Web Content - Orange family */
.type-html { background: #fff7ed; color: #ea580c; }
.type-htm { background: #ffedd5; color: #f97316; }

/* Applications - Red/Pink family */
.type-application { background: #ffe7e7; color: #d63384; }
.type-file { background: #fef2f2; color: #dc2626; }

/* Interactive Content - Green family */
.type-chat { background: #e8f5e8; color: #2e7d32; }
.type-contact { background: #ecfdf5; color: #059669; }
.type-note { background: #f0fdf4; color: #16a34a; }

/* Brand Content - Teal family */
.type-brand-soul { background: #e6fffa; color: #0d9488; }
.type-brand-core { background: #ccfbf1; color: #0f766e; }

/* Technical - Gray family */
.type-github { background: #f3f4f6; color: #374151; }
.type-manual { background: #f9fafb; color: #4b5563; }
.type-default { background: #f5f5f5; color: #6b7280; }

/* Export buttons styling */
.export-buttons {
	display: flex;
	gap: 10px;
	align-items: center;
}

.export-buttons .button {
	margin: 0;
}

/* OHM Brand Buttons - Hero Style */
.aiohm-btn-primary {
	font-size: 1.1em !important;
	padding: 12px 20px !important;
	height: auto !important;
	line-height: 1.2 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	border-radius: 6px !important;
	font-weight: bold !important;
	transition: all 0.2s ease !important;
	background: #457d58 !important;
	border-color: #457d58 !important;
	color: white !important;
	text-shadow: none !important;
	box-shadow: 0 2px 4px rgba(69, 125, 88, 0.2) !important;
}

.aiohm-btn-primary:hover {
	background: #1f5014 !important;
	border-color: #1f5014 !important;
	color: white !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 8px rgba(31, 80, 20, 0.3) !important;
}

.aiohm-btn-primary:active {
	background: #1f5014 !important;
	border-color: #1f5014 !important;
	transform: translateY(0) !important;
	box-shadow: 0 2px 4px rgba(31, 80, 20, 0.4) !important;
}

.aiohm-btn-secondary {
	font-size: 1.1em !important;
	padding: 12px 20px !important;
	height: auto !important;
	line-height: 1.2 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	border-radius: 6px !important;
	font-weight: bold !important;
	transition: all 0.2s ease !important;
	background: transparent !important;
	border: 2px solid #457d58 !important;
	color: #1f5014 !important;
	text-shadow: none !important;
	box-shadow: 0 2px 4px rgba(69, 125, 88, 0.1) !important;
}

.aiohm-btn-secondary:hover {
	background: #f8fbf9 !important;
	border-color: #1f5014 !important;
	color: #1f5014 !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 8px rgba(31, 80, 20, 0.15) !important;
}

.aiohm-btn-secondary:active {
	background: #e8f5e8 !important;
	border-color: #1f5014 !important;
	transform: translateY(0) !important;
}

/* OHM Brand Danger Button */
.aiohm-btn-danger {
	font-size: 1.1em !important;
	padding: 12px 20px !important;
	height: auto !important;
	line-height: 1.2 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	border-radius: 6px !important;
	font-weight: bold !important;
	transition: all 0.2s ease !important;
	background: #272727 !important;
	border-color: #272727 !important;
	color: white !important;
	text-shadow: none !important;
	box-shadow: 0 2px 4px rgba(39, 39, 39, 0.2) !important;
}

.aiohm-btn-danger:hover {
	background: #1a1a1a !important;
	border-color: #1a1a1a !important;
	color: white !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 8px rgba(39, 39, 39, 0.3) !important;
}

.aiohm-btn-danger:active {
	background: #1a1a1a !important;
	border-color: #1a1a1a !important;
	transform: translateY(0) !important;
	box-shadow: 0 2px 4px rgba(39, 39, 39, 0.4) !important;
}

/* Disabled states for OHM buttons */
.aiohm-btn-primary:disabled,
.aiohm-btn-secondary:disabled,
.aiohm-btn-danger:disabled {
	font-size: 1.1em !important;
	padding: 12px 20px !important;
	height: auto !important;
	line-height: 1.2 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	border-radius: 6px !important;
	font-weight: bold !important;
	background: #f0f0f0 !important;
	border-color: #ddd !important;
	color: #999 !important;
	text-shadow: none !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
	cursor: not-allowed !important;
	transform: none !important;
	transition: none !important;
}

.aiohm-btn-primary:disabled:hover,
.aiohm-btn-secondary:disabled:hover,
.aiohm-btn-danger:disabled:hover {
	background: #f0f0f0 !important;
	border-color: #ddd !important;
	color: #999 !important;
	transform: none !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* Page title action styling */
.page-title-action.aiohm-btn-primary {
	margin-left: 0;
	vertical-align: baseline;
}

/* Filter block styling */
.tablenav .actions select,
.tablenav .actions input[type="submit"] {
	margin-right: 10px;
	vertical-align: top;
	border-radius: 4px;
}

.tablenav .actions input[type="submit"] {
	background: #457d58 !important;
	border-color: #457d58 !important;
	color: white !important;
}

.tablenav .actions input[type="submit"]:hover {
	background: #1f5014 !important;
	border-color: #1f5014 !important;
}

.tablenav .alignleft.actions.filters-block {
	float: left;
	display: inline-block;
	vertical-align: top;
	margin-top: 0;
}

/* Admin notices enhancement */
#aiohm-admin-notice {
	border-radius: 6px;
	border-left-width: 4px;
}

#aiohm-admin-notice.notice-success {
	border-left-color: #457d58;
	background: #f8fbf9;
}

#aiohm-admin-notice.notice-error {
	border-left-color: #272727;
	background: #f9f9f9;
}

#aiohm-admin-notice.notice-warning {
	border-left-color: #EBEBEB;
	background: #fafafa;
}

/* Confirmation dialog buttons styling */
#aiohm-admin-notice .button {
	margin: 0 5px;
	vertical-align: baseline;
}

#aiohm-admin-notice .button-small {
	padding: 2px 8px;
	font-size: 12px;
	line-height: 1.5;
}

#aiohm-admin-notice .button:first-of-type {
	background: #457d58;
	border-color: #457d58;
	color: white;
}

#aiohm-admin-notice .button:first-of-type:hover {
	background: #1f5014;
	border-color: #1f5014;
}

#aiohm-admin-notice .button-secondary {
	margin-left: 10px;
}

/* Action links styling */
.view-brand-soul-btn,
.view-content-btn,
.view-pdf-btn,
.view-link-btn {
	text-decoration: none;
	color: #457d58;
}

.view-brand-soul-btn:hover,
.view-content-btn:hover,
.view-pdf-btn:hover,
.view-link-btn:hover {
	color: #1f5014;
	text-decoration: underline;
}

/* Scope toggle button colors matching visibility status */
.scope-toggle-btn {
	text-decoration: none;
	font-weight: bold;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 11px;
}

.scope-toggle-btn.make-public {
	color: #155724;
	background: #d4edda;
	border: 1px solid #c3e6cb;
}

.scope-toggle-btn.make-public:hover {
	color: #0c3d17;
	background: #c1e7c7;
	text-decoration: none;
}

.scope-toggle-btn.make-private {
	color: #721c24;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
}

.scope-toggle-btn.make-private:hover {
	color: #4d1319;
	background: #f5c2c7;
	text-decoration: none;
}

.button-link-delete {
	color: #272727;
	vertical-align: middle;
}

.button-link-delete:hover {
	color: #1a1a1a;
	text-decoration: underline;
}

/* Modal Styles */
.aiohm-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.aiohm-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.aiohm-modal-content {
	position: relative;
	background: white;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
	max-width: calc(100% - 40px);
	max-height: calc(100% - 40px);
	width: 600px;
	z-index: 10001;
	display: flex;
	flex-direction: column;
	margin: auto;
}

.aiohm-modal-header {
	padding: 20px;
	border-bottom: 1px solid #EBEBEB;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(135deg, #1f5014 0%, #457d58 100%);
	color: white;
	border-radius: 8px 8px 0 0;
}

.aiohm-modal-header h2 {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
}

.aiohm-modal-close {
	background: none;
	border: none;
	color: white;
	font-size: 24px;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s ease;
}

.aiohm-modal-close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.aiohm-modal-body {
	padding: 20px;
	overflow-y: auto;
	flex-grow: 1;
}

.brand-soul-loading {
	text-align: center;
	padding: 40px;
	color: #666;
	font-style: italic;
}

.brand-soul-content {
	line-height: 1.6;
	font-family: 'PT Sans', sans-serif;
}

.brand-soul-content pre {
	background: #EBEBEB;
	padding: 20px;
	border-radius: 6px;
	border-left: 4px solid #457d58;
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #272727;
}

/* Content type headers and formatting */
.content-type-header {
	font-family: 'Montserrat', sans-serif;
	font-weight: bold;
	font-size: 14px;
	color: #1f5014;
	margin-bottom: 15px;
	padding: 8px 12px;
	background: #f0f8f4;
	border-radius: 4px;
	border-left: 3px solid #457d58;
}

.formatted-content.json-content {
	background: #f8f9fd !important;
	border-left-color: #3f51b5 !important;
}

.formatted-content.csv-content {
	background: #fff8e1 !important;
	border-left-color: #f57c00 !important;
}

.formatted-content.brand-soul-content {
	background: #f8f5ff !important;
	border-left-color: #8e24aa !important;
}

.formatted-content.brand-core-content {
	background: #f0f8f4 !important;
	border-left-color: #1f5014 !important;
}

.formatted-content.note-content {
	background: #f8f9fa !important;
	border-left-color: #6c757d !important;
}

.formatted-content::-webkit-scrollbar {
	width: 8px;
}

.formatted-content::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.formatted-content::-webkit-scrollbar-thumb {
	background: #457d58;
	border-radius: 4px;
}

.formatted-content::-webkit-scrollbar-thumb:hover {
	background: #1f5014;
}

/* Inline styles converted to classes */
.scan-website-link {
	margin-left: 10px;
}

.admin-notice-hidden {
	display: none;
	margin-top: 10px;
}

.bulk-actions-container {
	margin-bottom: 10px;
	padding: 10px;
	background: #f9f9f9;
	border: 1px solid #ddd;
}

/* Custom bulk action button styling */
#aiohm-bulk-action-btn {
	background: #1f5014 !important;
	border-color: #1f5014 !important;
	color: white !important;
	font-weight: 600 !important;
}

#aiohm-bulk-action-btn:hover {
	background: #457d58 !important;
	border-color: #457d58 !important;
	color: white !important;
}

.bulk-status {
	margin-left: 10px;
	font-style: italic;
}

.bulk-form-hidden {
	display: none;
}

.kb-actions-container {
	margin-top: 20px;
}

.restore-file-input {
	display: none;
}

.warning-description {
	color: #dc3545;
}

/* Editor textarea styles */
.editor-textarea {
	width: 100%;
	height: 400px;
	font-family: 'Monaco', 'Consolas', monospace;
	font-size: 12px;
	line-height: 1.4;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px;
	resize: vertical;
}

/* Editor controls */
.editor-controls {
	float: right;
	margin-top: -5px;
}

.editor-button-margin {
	margin-left: 5px;
}

.editor-help-text {
	margin-top: 10px;
	color: #666;
	font-size: 12px;
}

.editor-div-margin {
	margin-top: 10px;
	font-size: 12px;
	color: #666;
}

/* Spinner styles */
.spinner-inline {
	float: none;
	margin-top: 0;
	vertical-align: middle;
}

.spinner-loading {
	float: none;
	margin: 0 5px;
}

.spinner-with-margin {
	float: none;
	margin-top: 0;
	vertical-align: middle;
}

/* Button margin styles */
.button-margin-left-10 {
	margin-left: 10px;
}

.button-margin-left-5 {
	margin-left: 5px;
}

.button-margin-right-5 {
	margin-right: 5px;
}

.button-margin-10 {
	margin: 0 10px;
}

.button-margin-right-10 {
	margin-right: 10px;
}

/* Content formatting */
.formatted-content-preformatted {
	white-space: pre-wrap;
	font-family: 'Monaco', 'Consolas', monospace;
	line-height: 1.5;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 6px;
	border-left: 4px solid #457d58;
	margin: 0;
	max-height: 80vh;
	overflow-y: auto;
}

/* CSV table styles */
.csv-table-container {
	overflow-x: auto;
	max-height: 70vh;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.csv-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
}

.csv-row-even {
	background: #f9f9f9;
}

.csv-cell-header {
	padding: 8px 12px;
	border: 1px solid #ddd;
	background: #f1f1f1;
	font-weight: bold;
	text-align: left;
}

.csv-cell-data {
	padding: 8px 12px;
	border: 1px solid #ddd;
	text-align: left;
}

.csv-stats {
	margin-top: 10px;
	font-size: 12px;
	color: #666;
	text-align: right;
}

.csv-error-container {
	padding: 20px;
	text-align: center;
	color: #666;
}

.csv-raw-content-details {
	margin-top: 10px;
}

.csv-raw-content-summary {
	cursor: pointer;
	color: #0073aa;
}

.csv-raw-content-pre {
	margin-top: 10px;
	padding: 10px;
	background: #f1f1f1;
	border-radius: 4px;
	white-space: pre-wrap;
	font-size: 12px;
}

/* Modal styles */
.modal-display-flex {
	display: flex;
}

.modal-max-width-600 {
	max-width: 600px;
}

.modal-margin-bottom-20 {
	margin-bottom: 20px;
}

.modal-label-bold {
	font-weight: bold;
	margin-bottom: 10px;
	display: block;
}

.modal-select-full-width {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.modal-file-input-hidden {
	display: none;
}

.drop-zone {
	border: 2px dashed #457d58;
	padding: 40px;
	text-align: center;
	border-radius: 8px;
	background: #f8fbf9;
	margin-bottom: 20px;
	cursor: pointer;
}

.drop-zone-title {
	margin: 0;
	color: #457d58;
	font-size: 16px;
}

.drop-zone-subtitle {
	margin: 10px 0 0 0;
	color: #666;
	font-size: 14px;
}

.file-list-container {
	margin-bottom: 20px;
}

.modal-buttons-right {
	text-align: right;
}

.upload-progress-hidden {
	display: none;
}

/* File item styles */
.file-item-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 5px;
}

.file-item-name {
	font-weight: bold;
}

.file-item-status {
	font-size: 12px;
}

/* Progress bar styles */
.progress-item {
	margin-bottom: 10px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.progress-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.progress-bar-container {
	width: 100%;
	background: #f0f0f0;
	border-radius: 4px;
	margin-top: 5px;
}

.progress-bar {
	width: 0%;
	background: #457d58;
	height: 20px;
	border-radius: 4px;
	transition: width 0.5s;
}

.progress-stages {
	font-size: 12px;
	color: #666;
	margin-top: 5px;
}

/* Status colors */
.status-color-orange {
	color: #ff8800;
}

.status-color-red {
	color: #dc3545;
}

.status-color-green {
	color: #28a745;
}

/* Club stats styles */
.club-stats-warning {
	color: #dc3545;
}

.club-stats-alert {
	color: #fd7e14;
}

/* Chat avatar styles */
.chat-avatar-img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.chat-avatar-default {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #457d58;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	font-size: 12px;
}

/* Chat footer button */
.chat-footer-button-custom {
	/* Dynamic styles will be applied via JavaScript */
}

/* Empty table message */
.table-empty-message {
	text-align: center;
}

/* Content display hidden */
.content-display-hidden {
	display: none;
}

/* Modal hidden state */
.modal-hidden {
	display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.aiohm-knowledge-intro {
		flex-direction: column;
	}

	.knowledge-section {
		min-width: 100%;
	}

	.section-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.actions-grid-wrapper {
		grid-template-columns: 1fr;
	}

	.file-input-group {
		flex-direction: column;
		align-items: flex-start;
	}

	.aiohm-modal {
		padding: 10px;
	}

	.aiohm-modal-content {
		width: 100%;
		max-width: calc(100% - 20px);
		max-height: calc(100% - 20px);
		margin: 0;
	}

	.aiohm-modal-header {
		padding: 15px;
	}

	.aiohm-modal-body {
		padding: 15px;
	}
}

/* PDF Processing Enhancement Styles */
.processing-details {
	margin-top: 10px;
	padding: 10px;
	background: #f8f9fa;
	border-radius: 4px;
	border-left: 3px solid #457d58;
}

.quality-indicator {
	font-weight: bold;
	margin-bottom: 5px;
}

.user-suggestions {
	margin-top: 8px;
}

.user-suggestions div {
	margin: 3px 0;
	color: #666;
}

.pdf-reprocess-status {
	margin: 20px 0;
}

.reprocess-progress {
	margin-bottom: 15px;
}

.reprocess-progress .stage {
	display: block;
	margin: 5px 0;
	padding: 5px 10px;
	background: #f1f1f1;
	border-radius: 3px;
	color: #666;
}

.reprocess-progress .stage.active {
	background: #457d58;
	color: white;
	font-weight: bold;
}

.pdf-process-results {
	background: white;
	padding: 15px;
	border-radius: 4px;
	border: 1px solid #ddd;
}

.quality-result {
	font-size: 16px;
	margin-bottom: 10px;
}

.process-log ul, .user-suggestions ul {
	margin: 10px 0;
	padding-left: 20px;
}

.process-log li, .user-suggestions li {
	margin: 5px 0;
	line-height: 1.4;
}

.stage-extract {
	color: #6c757d;
	font-weight: normal;
}

/* PDF Diagnostic styling */
.pdf-diagnostic-action {
	border-left: 4px solid #0073aa;
}

.pdf-diagnostic-controls {
	margin-top: 10px;
}

.pdf-diagnostic-controls .button {
	margin-right: 10px;
}

.diagnostic-results {
	margin-top: 15px;
	padding: 15px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.pdf-diagnostic-summary h4 {
	margin-top: 0;
	color: #0073aa;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
	margin: 10px 0;
}

.stat-item {
	padding: 8px 12px;
	background: white;
	border: 1px solid #ddd;
	border-radius: 3px;
	text-align: center;
}

.stat-item.clean {
	border-left: 4px solid #46b450;
}

.stat-item.corrupted {
	border-left: 4px solid #ffb900;
}

.stat-item.severely-corrupted {
	border-left: 4px solid #dc3232;
}

.stat-item.empty {
	border-left: 4px solid #666;
}

.corrupted-entries {
	margin-top: 20px;
}

.corrupted-entries h4 {
	color: #dc3232;
}

.corrupted-list {
	max-height: 300px;
	overflow-y: auto;
}

.corrupted-entry {
	padding: 10px;
	margin: 5px 0;
	background: white;
	border: 1px solid #ddd;
	border-left: 4px solid #dc3232;
	border-radius: 3px;
}

.entry-title {
	font-size: 14px;
	margin-bottom: 5px;
}

.corruption-score {
	font-size: 12px;
	color: #666;
	margin-bottom: 8px;
}

.issues-list {
	font-size: 12px;
}

.issue-item {
	color: #dc3232;
	margin: 2px 0;
}

.no-issues {
	text-align: center;
	padding: 20px;
	color: #46b450;
}

.no-issues .dashicons {
	font-size: 24px;
	margin-right: 5px;
}