/* VOXFSELI Chat Widget Core Styles */

/* Basic reset for chat widget */
#voxfseli-chat-widget {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	box-sizing: border-box;
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999999;
	direction: ltr;
}

#voxfseli-chat-widget * {
	box-sizing: border-box;
}

/* Chat Launcher Button */
.voxfseli-launcher-button {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: white;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.voxfseli-launcher-button:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.voxfseli-launcher-icon {
	transition: transform 0.3s ease;
}

.voxfseli-close-icon {
	transform: rotate(45deg);
}

/* Chat Window */
.voxfseli-chat-window {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 350px;
	height: 500px;
	background: white;
	border-radius: 12px 12px 0 0;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
	display: none;
	flex-direction: column;
	overflow: hidden;
	font-family: inherit;
}

.voxfseli-chat-header {
	padding: 16px 20px;
	color: white;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.voxfseli-header-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.voxfseli-agent-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.voxfseli-agent-details h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.voxfseli-agent-status {
	font-size: 12px;
	opacity: 0.9;
	margin-top: 2px;
}

.voxfseli-close-button {
	background: none;
	border: none;
	color: white;
	font-size: 20px;
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	transition: background-color 0.2s;
}

.voxfseli-close-button:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* Pre-chat Form */
.voxfseli-prechat-form {
	padding: 24px 20px;
	text-align: center;
}

.voxfseli-prechat-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 8px;
	color: #1a1a1a;
}

.voxfseli-prechat-description {
	color: #666;
	margin-bottom: 20px;
	line-height: 1.4;
}

.voxfseli-form-group {
	margin-bottom: 16px;
	text-align: left;
}

.voxfseli-form-group label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	color: #333;
	font-size: 13px;
}

.voxfseli-form-control {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.2s;
	font-family: inherit;
}

.voxfseli-form-control:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.voxfseli-start-chat-btn {
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	color: white;
	cursor: pointer;
	transition: transform 0.2s;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.voxfseli-start-chat-btn:hover {
	transform: translateY(-1px);
}

/* Welcome Screen */
.voxfseli-welcome-screen {
	padding: 24px 20px;
	text-align: center;
}

.voxfseli-welcome-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
	color: #1a1a1a;
}

.voxfseli-welcome-description {
	color: #666;
	margin-bottom: 16px;
	line-height: 1.4;
}

/* Messages Area */
.voxfseli-messages-area {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	background: #f8f9fa;
}

.voxfseli-message {
	display: flex;
	margin-bottom: 12px;
	align-items: flex-end;
	gap: 8px;
}

.voxfseli-message.voxfseli-user {
	justify-content: flex-end;
}

.voxfseli-message-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	flex-shrink: 0;
}

.voxfseli-message.voxfseli-user .voxfseli-message-avatar {
	order: 1;
}

.voxfseli-message-content {
	max-width: 70%;
	padding: 10px 14px;
	border-radius: 16px;
	position: relative;
}


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

.voxfseli-message-time {
	font-size: 11px;
	opacity: 0.7;
	margin-top: 4px;
}

/* Chat Input Area */
.voxfseli-chat-input-area {
	padding: 16px;
	background: white;
	border-top: 1px solid #e5e7eb;
}

.voxfseli-input-container {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f8f9fa;
	border-radius: 20px;
	padding: 8px 12px;
}

.voxfseli-message-input {
	flex: 1;
	border: none;
	background: none;
	outline: none;
	font-size: 14px;
	font-family: inherit;
	resize: none;
	max-height: 60px;
	min-height: 20px;
}

.voxfseli-input-actions {
	display: flex;
	gap: 4px;
}

.voxfseli-file-btn,
.voxfseli-emoji-btn,
.voxfseli-send-btn {
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s;
	font-size: 16px;
	color: #666;
}

.voxfseli-file-btn:hover,
.voxfseli-emoji-btn:hover {
	background: #e5e7eb;
}

.voxfseli-send-btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.voxfseli-send-btn:hover {
	opacity: 0.9;
}

.voxfseli-send-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* File Upload Area */
.voxfseli-file-upload-area {
	padding: 16px;
	border-top: 1px solid #e5e7eb;
	background: #f8f9fa;
}

.voxfseli-file-preview {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: white;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

.voxfseli-file-icon {
	font-size: 24px;
	color: #667eea;
}

.voxfseli-file-info {
	flex: 1;
}

.voxfseli-file-name {
	font-weight: 500;
	margin-bottom: 2px;
}

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

.voxfseli-file-remove {
	background: none;
	border: none;
	color: #dc2626;
	cursor: pointer;
	font-size: 18px;
	padding: 4px;
}

/* Emoji Picker */
.voxfseli-emoji-picker {
	position: absolute;
	bottom: 80px;
	right: 16px;
	width: 280px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
	padding: 16px;
	display: none;
	max-height: 200px;
	overflow-y: auto;
}

.voxfseli-emoji-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 4px;
}

.voxfseli-emoji-item {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 4px;
	transition: background-color 0.2s;
	font-size: 16px;
}

.voxfseli-emoji-item:hover {
	background: #f3f4f6;
}

/* Status indicators */
.voxfseli-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 6px;
}

.voxfseli-status-dot.online {
	background: #10b981;
}

.voxfseli-status-dot.away {
	background: #f59e0b;
}

.voxfseli-status-dot.busy {
	background: red;
}


/* Responsive adjustments */
@media (max-width: 768px) {
	#voxfseli-chat-widget {
		bottom: 10px;
		right: 10px;
	}

	.voxfseli-chat-window {
		width: calc(100vw - 20px);
		height: calc(100vh - 100px);
		max-width: 400px;
		max-height: 600px;
	}
}

/* Accessibility improvements */
.voxfseli-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Focus styles for keyboard navigation */
.voxfseli-launcher-button:focus,
.voxfseli-close-button:focus,
.voxfseli-start-chat-btn:focus,
.voxfseli-send-btn:focus {
	outline: 2px solid #667eea;
	outline-offset: 2px;
}

.voxfseli-form-control:focus,
.voxfseli-message-input:focus {
	outline: 2px solid #667eea;
	outline-offset: -2px;
}
