/* VOXFSELI Chat Modal Styles */
.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;
}

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

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

.voxfseli-messages-list {
	max-height: 500px;
	overflow-y: auto;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	background: #fafafa;
	padding: 12px;
}

.voxfseli-message-item {
	padding: 0;
	border-bottom: none;
	display: block;
	margin-bottom: 12px;
}

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

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

.voxfseli-message-sender {
	font-weight: 600;
	color: #1d2327;
	margin-bottom: 4px;
	font-size: 13px;
}

.voxfseli-message-content {
	flex: 1;
}

.voxfseli-message-text {
	color: #2c3338;
	line-height: 1.5;
	margin-bottom: 4px;
}

.voxfseli-message-time {
	font-size: 11px;
	color: #8c8f94;
	font-style: italic;
}

.voxfseli-message-meta {
	font-size: 11px;
	color: #8c8f94;
	margin-top: 4px;
}

/* Different message types with distinct styling */
.voxfseli-message-agent .voxfseli-message-bubble {
	background: #e3f2fd;
	border-left: 4px solid #2196f3;
}

.voxfseli-message-user .voxfseli-message-bubble,
.voxfseli-message-visitor .voxfseli-message-bubble {
	background: #f1f8e9;
	border-left: 4px solid #4caf50;
}

.voxfseli-message-ai .voxfseli-message-bubble {
	background: #fce4ec;
	border-left: 4px solid #e91e63;
}

.voxfseli-message-system .voxfseli-message-bubble {
	background: #fff8e1;
	border-left: 4px solid #ff9800;
}

.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: 4px;
}

.voxfseli-message-text {
	line-height: 1.5;
	color: #2c3338;
	word-wrap: break-word;
}

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

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

.voxfseli-file-name {
	font-weight: 500;
	color: #1d2327;
}

.voxfseli-file-size {
	color: #646970;
	font-size: 12px;
}

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

.voxfseli-modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	max-width: 800px;
	width: 90%;
	max-height: 80%;
	overflow: hidden;
}

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

.voxfseli-modal-title {
	margin: 0;
	font-size: 18px;
	color: #1d2327;
}

.voxfseli-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	color: #646970;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}

.voxfseli-modal-close:hover {
	background: #e1e1e1;
	color: #1d2327;
}

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