/**
 * Advanced WordPress Chat - Admin Styles
 */

/* General Admin Styles */
.voxfseli-admin-page {
	background: #f1f1f1;
	margin: 0 -20px -20px -20px;
	padding: 20px;
}

.voxfseli-admin-header {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.voxfseli-admin-header h1 {
	margin: 0;
	font-size: 24px;
	color: #23282d;
}

.voxfseli-admin-header .description {
	margin-top: 10px;
	color: #666;
	font-size: 14px;
}

/* Dashboard Styles */
.voxfseli-dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.voxfseli-stat-card {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.voxfseli-stat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

.voxfseli-stat-card h3 {
	margin: 0 0 15px 0;
	font-size: 14px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.voxfseli-stat-number {
	font-size: 36px;
	font-weight: bold;
	color: #0073aa;
	margin-bottom: 10px;
	line-height: 1;
}

.voxfseli-stat-change {
	font-size: 12px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 12px;
	display: inline-block;
}

.voxfseli-stat-change.positive {
	background: #d4edda;
	color: #155724;
}

.voxfseli-stat-change.negative {
	background: #f8d7da;
	color: #721c24;
}

.voxfseli-stat-change.neutral {
	background: #e2e3e5;
	color: #383d41;
}

/* Live Chat Interface */
.voxfseli-live-chat-container {
	display: flex;
	height: 70vh;
	min-height: 500px;
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.voxfseli-chat-sidebar {
	width: 320px;
	background: #f8f9fa;
	border-right: 1px solid #dee2e6;
	display: flex;
	flex-direction: column;
}

.voxfseli-sidebar-header {
	padding: 20px;
	border-bottom: 1px solid #dee2e6;
	background: #fff;
}

.voxfseli-agent-status-selector {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
}

.voxfseli-status-indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
}

.voxfseli-status-indicator.online { background: #28a745; }
.voxfseli-status-indicator.away { background: #ffc107; }
.voxfseli-status-indicator.busy { background: #dc3545; }
.voxfseli-status-indicator.offline { background: #6c757d; }

.voxfseli-chat-list {
	flex: 1;
	overflow-y: auto;
	padding: 10px;
}

.voxfseli-chat-item {
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	padding: 15px;
	margin-bottom: 10px;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
}

.voxfseli-chat-item:hover {
	border-color: #0073aa;
	box-shadow: 0 2px 4px rgba(0,115,170,.1);
}

.voxfseli-chat-item.active {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

.voxfseli-chat-item.unread::before {
	content: '';
	position: absolute;
	top: 10px;
	right: 10px;
	width: 8px;
	height: 8px;
	background: #dc3545;
	border-radius: 50%;
}

.voxfseli-chat-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.voxfseli-chat-id {
	font-weight: 600;
	font-size: 12px;
	font-family: monospace;
}

.voxfseli-chat-status {
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 10px;
	background: rgba(0,0,0,0.1);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.voxfseli-chat-item.active .voxfseli-chat-status {
	background: rgba(255,255,255,0.2);
}

.voxfseli-chat-info {
	font-size: 12px;
	opacity: 0.8;
	line-height: 1.4;
}

.voxfseli-chat-location {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 4px;
}

.voxfseli-chat-time {
	color: #666;
}

.voxfseli-chat-item.active .voxfseli-chat-time {
	color: rgba(255,255,255,0.8);
}

/* Chat Main Area */
.voxfseli-chat-main {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.voxfseli-chat-header {
	padding: 20px;
	border-bottom: 1px solid #dee2e6;
	background: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.voxfseli-chat-user-info h3 {
	margin: 0 0 5px 0;
	font-size: 16px;
	color: #23282d;
}

.voxfseli-chat-user-details {
	font-size: 12px;
	color: #666;
	display: flex;
	gap: 15px;
}

.voxfseli-chat-actions {
	display: flex;
	gap: 10px;
}

.voxfseli-chat-messages {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	background: #f8f9fa;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.voxfseli-message {
	display: flex;
	flex-direction: column;
	margin-bottom: 0;
	clear: both;
}

.voxfseli-message.user,
.voxfseli-message.visitor {
	align-items: flex-end;
}

.voxfseli-message.agent {
	align-items: flex-start;
}

.voxfseli-message.system {
	align-items: center;
}

.voxfseli-message.ai {
	align-items: flex-start;
}

.voxfseli-message-bubble {
	padding: 12px 16px;
	border-radius: 18px;
	word-wrap: break-word;
	position: relative;
	max-width: 85%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border: 1px solid #e1e5e9;
	background: #ffffff;
}

.voxfseli-message.user .voxfseli-message-bubble,
.voxfseli-message.visitor .voxfseli-message-bubble {
	background: #0073aa;
	color: #ffffff;
	border-bottom-right-radius: 4px;
	border-color: #0073aa;
}

.voxfseli-message.agent .voxfseli-message-bubble {
	background: #ffffff;
	color: #23282d;
	border-left: 4px solid #0073aa;
	border-bottom-left-radius: 4px;
}

.voxfseli-message.ai .voxfseli-message-bubble {
	background: #f3e5f5;
	color: #4a148c;
	border-left: 4px solid #9c27b0;
	border-bottom-left-radius: 4px;
}

.voxfseli-message.system .voxfseli-message-bubble {
	background: #fff3e0;
	color: #e65100;
	border-left: 4px solid #ff9800;
	border-radius: 12px;
	font-size: 13px;
	text-align: center;
	max-width: 90%;
	margin: 0 auto;
}

.voxfseli-message-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding-bottom: 6px;
	font-size: 12px;
}

.voxfseli-message.user .voxfseli-message-header,
.voxfseli-message.visitor .voxfseli-message-header {
	border-bottom-color: rgba(255, 255, 255, 0.3);
}

.voxfseli-message-sender {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.voxfseli-message-time {
	font-size: 11px;
	opacity: 0.7;
	font-style: italic;
}

.voxfseli-message-content {
	line-height: 1.5;
	word-wrap: break-word;
	font-size: 14px;
}

.voxfseli-message-meta {
	font-size: 11px;
	color: #999;
	margin-top: 8px;
	padding: 0 4px;
	opacity: 0.7;
}

.voxfseli-message.user .voxfseli-message-meta,
.voxfseli-message.visitor .voxfseli-message-meta {
	text-align: right;
}

.voxfseli-message.agent .voxfseli-message-meta,
.voxfseli-message.system .voxfseli-message-meta,
.voxfseli-message.ai .voxfseli-message-meta {
	text-align: left;
}

/* File message styling for live chat */
.voxfseli-message .voxfseli-file-message {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(0, 0, 0, 0.05);
	padding: 10px 12px;
	border-radius: 8px;
	margin-top: 5px;
}

.voxfseli-message.user .voxfseli-file-message,
.voxfseli-message.visitor .voxfseli-file-message {
	background: rgba(255, 255, 255, 0.2);
}

.voxfseli-message .voxfseli-file-icon {
	font-size: 18px;
}

.voxfseli-message .voxfseli-file-name {
	font-weight: 500;
	flex: 1;
}

.voxfseli-message .voxfseli-file-size {
	font-size: 12px;
	opacity: 0.7;
}

.voxfseli-chat-input {
	padding: 20px;
	border-top: 1px solid #dee2e6;
	background: #ffffff;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.voxfseli-input-wrapper {
	display: flex;
	gap: 12px;
	align-items: flex-end;
	background: #f8f9fa;
	padding: 8px;
	border-radius: 25px;
	border: 2px solid #e1e5e9;
	transition: border-color 0.2s ease;
}

.voxfseli-input-wrapper:focus-within {
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.voxfseli-message-input {
	flex: 1;
	border: 1px solid #0073aa;
	background: transparent;
	padding: 10px 16px;
	font-size: 14px;
	resize: none;
	max-height: 100px;
	min-height: 40px;
	outline: none;
	line-height: 1.4;
}

.voxfseli-message-input::placeholder {
	color: #8c8f94;
	opacity: 1;
}

.voxfseli-send-button {
	background: #0073aa;
	color: #ffffff;
	border: none;
	border-radius: 0;
	width: 171px;
	height: 40px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	flex-shrink: 0;
	font-size: 16px;
}

.voxfseli-send-button:hover {
	background: #005a87;
	transform: scale(1.05);
}

.voxfseli-send-button:active {
	transform: scale(0.95);
}

.voxfseli-send-button:disabled {
	background: #ccd0d4;
	cursor: not-allowed;
	transform: none;
	opacity: 0.6;
}

/* No Chat Selected State */
.voxfseli-no-chat-selected {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #666;
	text-align: center;
}

.voxfseli-no-chat-icon {
	font-size: 64px;
	color: #ddd;
	margin-bottom: 20px;
}

/* Analytics Styles */
.voxfseli-analytics-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.voxfseli-metric-card {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.voxfseli-metric-card h3 {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.voxfseli-metric-value {
	font-size: 32px;
	font-weight: bold;
	color: #0073aa;
	margin: 10px 0;
	line-height: 1;
}

.voxfseli-metric-change {
	font-size: 14px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 12px;
	display: inline-block;
}

.voxfseli-metric-change.positive {
	background: #d4edda;
	color: #155724;
}

.voxfseli-metric-change.negative {
	background: #f8d7da;
	color: #721c24;
}

.voxfseli-analytics-charts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 20px 0;
}

.voxfseli-chart-container {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 20px;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.voxfseli-chart-container h3 {
	margin: 0 0 20px 0;
	font-size: 16px;
	color: #23282d;
}

/* Settings Styles */
.voxfseli-settings-section {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	margin-bottom: 20px;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.voxfseli-settings-section h2 {
	margin: 0;
	padding: 15px 20px;
	border-bottom: 1px solid #eee;
	background: #f8f9fa;
	font-size: 16px;
	color: #23282d;
}

.voxfseli-settings-section .form-table {
	margin: 0;
}

.voxfseli-settings-section .form-table th {
	padding: 20px;
	width: 200px;
	font-weight: 600;
}

.voxfseli-settings-section .form-table td {
	padding: 20px;
}

/* System Status */
.voxfseli-system-status {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 20px;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.voxfseli-status-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
	border-bottom: 1px solid #eee;
}

.voxfseli-status-item:last-child {
	border-bottom: none;
}

.voxfseli-status-label {
	font-weight: 600;
	color: #23282d;
}

.voxfseli-status-value {
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

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

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

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

/* Responsive Design */
@media (max-width: 1200px) {
	.voxfseli-analytics-charts {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.voxfseli-live-chat-container {
		flex-direction: column;
		height: auto;
	}

	.voxfseli-chat-sidebar {
		width: 100%;
		max-height: 300px;
	}

	.voxfseli-dashboard-stats {
		grid-template-columns: 1fr;
	}

	.voxfseli-chat-user-details {
		flex-direction: column;
		gap: 5px;
	}

	.voxfseli-input-wrapper {
		flex-direction: column;
		gap: 10px;
	}

	.voxfseli-message-bubble {
		max-width: 95%;
		font-size: 13px;
		padding: 10px 14px;
	}

	.voxfseli-chat-messages {
		padding: 15px;
		gap: 12px;
	}

	.voxfseli-message-header {
		font-size: 11px;
	}

	.voxfseli-message-content {
		font-size: 13px;
	}
}

/* Loading States */
.voxfseli-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	color: #666;
}

.voxfseli-loading::before {
	content: '';
	width: 20px;
	height: 20px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #0073aa;
	border-radius: 50%;
	animation: voxfseli-spin 1s linear infinite;
	margin-right: 10px;
}

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

/* Notifications */
.voxfseli-notification {
	position: fixed;
	top: 32px;
	right: 20px;
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 15px 20px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	z-index: 999999;
	max-width: 300px;
	animation: voxfseli-slide-in 0.3s ease;
}

.voxfseli-notification.success {
	border-left: 4px solid #46b450;
}

.voxfseli-notification.error {
	border-left: 4px solid #dc3232;
}

.voxfseli-notification.warning {
	border-left: 4px solid #ffb900;
}

@keyframes voxfseli-slide-in {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Buttons */
.voxfseli-button {
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 8px 16px;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: background-color 0.2s ease;
}

.voxfseli-button:hover {
	background: #005a87;
	color: #fff;
}

.voxfseli-button.secondary {
	background: #f1f1f1;
	color: #23282d;
}

.voxfseli-button.secondary:hover {
	background: #e1e1e1;
}

.voxfseli-button.danger {
	background: #dc3232;
}

.voxfseli-button.danger:hover {
	background: #c62d2d;
}

.voxfseli-button.small {
	padding: 4px 8px;
	font-size: 11px;
}

.voxfseli-button.large {
	padding: 12px 24px;
	font-size: 16px;
}

/* Tables */
.voxfseli-table {
	width: 100%;
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

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

.voxfseli-table th {
	background: #f8f9fa;
	font-weight: 600;
	color: #23282d;
}

.voxfseli-table tr:last-child td {
	border-bottom: none;
}

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

/* Forms */
.voxfseli-form-group {
	margin-bottom: 20px;
}

.voxfseli-form-label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #23282d;
	padding: 6px 0px !important;
}

.voxfseli-form-input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.2s ease;
}

.voxfseli-form-input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.voxfseli-form-help {
	margin-top: 5px;
	font-size: 12px;
	color: #666;
}

/* Utilities */
.voxfseli-text-center { text-align: center; }
.voxfseli-text-right { text-align: right; }
.voxfseli-text-left { text-align: left; }

.voxfseli-mb-0 { margin-bottom: 0; }
.voxfseli-mb-10 { margin-bottom: 10px; }
.voxfseli-mb-20 { margin-bottom: 20px; }
.voxfseli-mb-30 { margin-bottom: 30px; }

.voxfseli-mt-0 { margin-top: 0; }
.voxfseli-mt-10 { margin-top: 10px; }
.voxfseli-mt-20 { margin-top: 20px; }
.voxfseli-mt-30 { margin-top: 30px; }

.voxfseli-hidden { display: none; }
.voxfseli-visible { display: block; }

.voxfseli-flex { display: flex; }
.voxfseli-flex-column { flex-direction: column; }
.voxfseli-flex-center { align-items: center; justify-content: center; }
.voxfseli-flex-between { justify-content: space-between; }
.voxfseli-flex-end { justify-content: flex-end; }

.voxfseli-text-muted { color: #666; }
.voxfseli-text-success { color: #46b450; }
.voxfseli-text-error { color: #dc3232; }
.voxfseli-text-warning { color: #ffb900; }

/* Visitor Status Indicators */
.voxfseli-visitor-status {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 5px 0;
}

.voxfseli-status-indicator {
	font-size: 12px;
}

.voxfseli-status-text {
	font-size: 11px;
	color: #666;
	text-transform: uppercase;
}

.voxfseli-status-online .voxfseli-status-text {
	color: #00a32a;
}

.voxfseli-status-away .voxfseli-status-text {
	color: #ffb900;
}

.voxfseli-status-offline .voxfseli-status-text {
	color: #d63638;
}

/* Delete Chat Button */
.voxfseli-delete-chat {
	background: #dc3545;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	margin: 0 5px;
}

.voxfseli-delete-chat:hover {
	background: #c82333;
}

.voxfseli-unban-user{
margin-top: 5px;
}

/* Chat History Styles */
.voxfseli-chat-history {
	margin-top: 20px;
}

.voxfseli-no-data {
	text-align: center;
	padding: 40px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.voxfseli-history-summary {
	margin-bottom: 15px;
	padding: 10px;
	background: #f0f0f1;
	border-radius: 4px;
}

.voxfseli-history-summary p {
	margin: 0;
	font-weight: 600;
	color: #646970;
}

.voxfseli-history-table {
	margin-top: 15px;
}

.voxfseli-history-table th,
.voxfseli-history-table td {
	padding: 12px 8px;
	vertical-align: top;
}

.voxfseli-chat-id {
	font-weight: bold;
	color: #0073aa;
}

.voxfseli-user-info {
	line-height: 1.4;
}

.voxfseli-user-email {
	color: #666;
	font-size: 0.9em;
}

.voxfseli-user-location {
	color: #999;
	font-size: 0.85em;
}

.voxfseli-no-agent {
	color: #999;
	font-style: italic;
}

.voxfseli-status-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 3px;
	font-size: 0.85em;
	font-weight: 600;
	text-transform: uppercase;
}

.voxfseli-status-waiting {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

.voxfseli-status-active {
	background: #f0fdf4;
	color: #16a34a;
	border: 1px solid #bbf7d0;
}

.voxfseli-status-ended {
	background: #f8fafc;
	color: #64748b;
	border: 1px solid #e2e8f0;
}

.voxfseli-status-abandoned {
	background: #fefce8;
	color: #ca8a04;
	border: 1px solid #fef08a;
}

.voxfseli-message-stats {
	font-size: 0.9em;
	line-height: 1.3;
}

.voxfseli-total-messages {
	font-weight: 600;
	color: #333;
}

.voxfseli-user-messages {
	color: #0073aa;
}

.voxfseli-agent-messages {
	color: #16a34a;
}

.voxfseli-date-info {
	line-height: 1.3;
}

.voxfseli-time {
	color: #666;
	font-size: 0.9em;
}

.voxfseli-action-buttons {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
}

.voxfseli-action-buttons .button {
	font-size: 0.85em;
	padding: 2px 8px;
	height: auto;
	line-height: 1.4;
}

/* Pagination Styles */
.voxfseli-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 20px;
	padding: 15px 0;
	border-top: 1px solid #ddd;
}

.voxfseli-page-info {
	font-weight: 600;
	color: #646970;
}

.voxfseli-pagination .button {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* Modal Styles */
.voxfseli-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

.voxfseli-modal-content {
	background-color: #fff;
	margin: 5% auto;
	border-radius: 8px;
	width: 90%;
	max-width: 800px;
	max-height: 80vh;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.voxfseli-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #e5e7eb;
	background: #f9fafb;
}

.voxfseli-modal-header h2 {
	margin: 0;
	color: #1f2937;
}

.voxfseli-modal-close {
	background: none;
	border: none;
	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;
}

.voxfseli-modal-close:hover {
	background-color: #e5e7eb;
}

.voxfseli-modal-body {
	padding: 20px;
	max-height: 60vh;
	overflow-y: auto;
}

/* History Filters */
.voxfseli-history-filters {
	background: #fff;
	padding: 20px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	margin-bottom: 20px;
}

.voxfseli-history-filters form {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.voxfseli-history-filters label {
	font-weight: 600;
	color: #1d2327;
}

.voxfseli-history-filters input[type="date"],
.voxfseli-history-filters select {
	padding: 6px 8px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
}

.voxfseli-history-filters .button {
	margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.voxfseli-history-filters form {
		flex-direction: column;
		align-items: stretch;
	}

	.voxfseli-history-filters form > * {
		width: 100%;
		margin-bottom: 10px;
	}

	.voxfseli-history-filters .button {
		margin-left: 0;
	}

	.voxfseli-history-table {
		font-size: 0.9em;
	}

	.voxfseli-history-table th,
	.voxfseli-history-table td {
		padding: 8px 4px;
	}

	.voxfseli-action-buttons {
		flex-direction: column;
		gap: 3px;
	}

	.voxfseli-pagination {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}

	.voxfseli-modal-content {
		width: 95%;
		margin: 10px auto;
	}

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

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

/* Agent name styling */
.voxfseli-agent-name {
	font-weight: 600;
	color: #0073aa;
}

/* Pre-filled form styling */
.voxfseli-prefilled {
	background-color: #f0f9ff !important;
	border-color: #0073aa !important;
}

.voxfseli-existing-data-notice {
	background: #e7f3ff;
	border: 1px solid #0073aa;
	border-radius: 4px;
	padding: 10px;
	margin-bottom: 15px;
	color: #0073aa;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.voxfseli-existing-data-notice .voxfseli-icon {
	font-size: 16px;
	color: #0073aa;
}

.voxfseli-existing-data-notice .voxfseli-icon-info::before {
	content: 'ℹ';
	font-style: normal;
	font-weight: bold;
}

/* Ban Management Styles */
.voxfseli-ban-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.voxfseli-ban-management {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.voxfseli-ban-management .voxfseli-no-data {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}

.voxfseli-ban-management .voxfseli-no-data-icon {
	font-size: 48px;
	margin-bottom: 20px;
	opacity: 0.6;
}

.voxfseli-ban-management .voxfseli-no-data h3 {
	margin: 0 0 10px 0;
	font-size: 18px;
	color: #23282d;
}

.voxfseli-ban-management .voxfseli-no-data p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.voxfseli-ban-management .voxfseli-table-wrapper {
	overflow-x: auto;
}

.voxfseli-ban-management .voxfseli-user-name,
.voxfseli-ban-management .voxfseli-user-email {
	font-size: 14px;
	color: #555;
	word-break: break-word;
}

.voxfseli-ban-management .voxfseli-user-name {
	font-weight: 600;
	color: #0073aa;
}

.voxfseli-ban-management .voxfseli-user-email {
	font-style: italic;
	color: #666;
}

.voxfseli-ban-management table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.voxfseli-ban-management table th,
.voxfseli-ban-management table td {
	padding: 12px;
	border-bottom: 1px solid #e5e5e5;
	text-align: left;
	vertical-align: top;
}

.voxfseli-ban-management table th {
	background: #f9f9f9;
	font-weight: 600;
	color: #23282d;
	border-bottom: 2px solid #e5e5e5;
}

.voxfseli-ban-management table tr:hover {
	background: #f9f9f9;
}

.voxfseli-user-info {
	line-height: 1.4;
}

.voxfseli-user-info strong {
	color: #23282d;
	font-size: 13px;
}

.voxfseli-user-ip {
	color: #666;
	font-size: 12px;
	font-family: monospace;
}



.voxfseli-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.voxfseli-unban-btn {
	background: #46b450 !important;
	color: #fff !important;
	border-color: #46b450 !important;
	font-size: 12px !important;
	padding: 4px 12px !important;
	border-radius: 3px !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
}

.voxfseli-unban-btn:hover {
	background: #2e7d32 !important;
	border-color: #2e7d32 !important;
	transform: translateY(-1px);
}

.voxfseli-unban-btn:active {
	transform: translateY(0);
}

/* Processing state */
.voxfseli-processing {
	opacity: 0.6;
	pointer-events: none;
}

.voxfseli-processing td {
	position: relative;
}

.voxfseli-processing td:first-child::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #0073aa;
	border-radius: 50%;
	animation: voxfseli-spin 1s linear infinite;
}

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



/* Chat History Modal Styles - Beautiful Message Bubbles */
.voxfseli-chat-details {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.voxfseli-chat-meta {
	margin-bottom: 20px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 8px;
	border-left: 4px solid #0073aa;
}

.voxfseli-chat-meta h4 {
	margin: 0 0 10px 0;
	color: #1d2327;
	font-size: 16px;
}

.voxfseli-chat-info {
	font-size: 14px;
	color: #646970;
	line-height: 1.4;
}

.voxfseli-chat-user {
	color: #0073aa;
	font-weight: 600;
}

.voxfseli-messages-list {
	max-height: 500px;
	overflow-y: auto;
	border-radius: 8px;
	background: #f8f9fa;
	padding: 15px;
}

.voxfseli-message-item {
	display: block;
	margin-bottom: 15px;
}

.voxfseli-message-item:last-child {
	margin-bottom: 0;
}

.voxfseli-message-bubble {
	background: #ffffff;
	border-radius: 18px;
	padding: 12px 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	max-width: 85%;
	position: relative;
	border: 1px solid #e1e5e9;
}

/* Different message types with bubble styling */
.voxfseli-message-agent .voxfseli-message-bubble {
	background: #ffffff;
	border-left: 4px solid #0073aa;
	color: #23282d;
	border-bottom-left-radius: 4px;
}

.voxfseli-message-user .voxfseli-message-bubble,
.voxfseli-message-visitor .voxfseli-message-bubble {
	background: #0073aa;
	color: #ffffff;
	border-bottom-right-radius: 4px;
	margin-left: auto;
	float: right;
	clear: both;
}

.voxfseli-message-ai .voxfseli-message-bubble {
	background: #f3e5f5;
	border-left: 4px solid #9c27b0;
	color: #4a148c;
}

.voxfseli-message-system .voxfseli-message-bubble {
	background: #fff3e0;
	border-left: 4px solid #ff9800;
	color: #e65100;
	text-align: center;
	margin: 0 auto;
	max-width: 90%;
	border-radius: 8px;
}

.voxfseli-message-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding-bottom: 6px;
}

.voxfseli-message-user .voxfseli-message-header,
.voxfseli-message-visitor .voxfseli-message-header {
	border-bottom-color: rgba(255, 255, 255, 0.3);
}

.voxfseli-message-sender {
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.voxfseli-message-time {
	font-size: 11px;
	opacity: 0.7;
	font-style: italic;
}

.voxfseli-message-text {
	line-height: 1.5;
	word-wrap: break-word;
	font-size: 14px;
}

.voxfseli-file-message {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(0, 0, 0, 0.05);
	padding: 10px 12px;
	border-radius: 8px;
	margin-top: 5px;
}

.voxfseli-message-user .voxfseli-file-message,
.voxfseli-message-visitor .voxfseli-file-message {
	background: rgba(255, 255, 255, 0.2);
}

.voxfseli-file-icon {
	font-size: 18px;
}

.voxfseli-file-name {
	font-weight: 500;
	flex: 1;
}

.voxfseli-file-size {
	font-size: 12px;
	opacity: 0.7;
}

/* Modal specific adjustments */
.voxfseli-modal .voxfseli-messages-list {
	border: 1px solid #e1e5e9;
}

.voxfseli-modal-content {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.voxfseli-modal-header {
	background: #f8f9fa;
	border-bottom: 1px solid #e1e5e9;
	border-radius: 12px 12px 0 0;
}

.voxfseli-modal-body {
	background: #ffffff;
}

/* Clear floats for proper layout */
.voxfseli-message-item::after {
	content: "";
	display: table;
	clear: both;
}

/* Responsive design for ban management */
@media (max-width: 768px) {
	.voxfseli-ban-stats {
		grid-template-columns: 1fr;
	}

	.voxfseli-ban-management table {
		font-size: 12px;
	}

	.voxfseli-ban-management table th,
	.voxfseli-ban-management table td {
		padding: 8px;
	}

	.voxfseli-actions {
		flex-direction: column;
		gap: 4px;
	}

	.voxfseli-message-bubble {
		max-width: 95%;
		font-size: 13px;
	}

	.voxfseli-messages-list {
		padding: 10px;
	}
}
