/* Voxfor Secure Live Chat - Live Chat Admin Styles */

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

.voxfseli-agent-status-selector select {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.voxfseli-live-chat-container {
	display: flex;
	height: calc(100vh - 150px);
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	overflow: hidden;
}

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

.voxfseli-chat-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	background: #fff;
}

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

.voxfseli-chat-item {
	padding: 15px 20px;
	border-bottom: 1px solid #eee;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
}

.voxfseli-chat-item:hover {
	background: #e9ecef;
}

.voxfseli-chat-item.active {
	background: #007cba;
	color: white;
}

.voxfseli-chat-item.active .voxfseli-chat-user,
.voxfseli-chat-item.active .voxfseli-chat-preview,
.voxfseli-chat-item.active .voxfseli-chat-time {
	color: white;
}

.voxfseli-chat-user {
	font-weight: 600;
	margin-bottom: 5px;
	color: #333;
}

.voxfseli-chat-preview {
	font-size: 13px;
	color: #666;
	margin-bottom: 5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.voxfseli-chat-time {
	font-size: 12px;
	color: #999;
}

.voxfseli-chat-status {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.voxfseli-chat-status.active {
	background: #28a745;
}

.voxfseli-chat-status.waiting {
	background: #ffc107;
}

.voxfseli-chat-status.ended {
	background: #6c757d;
}

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

.voxfseli-chat-header h3 {
	margin: 0 0 5px 0;
	font-size: 18px;
}

.voxfseli-chat-info {
	font-size: 13px;
	color: #666;
}

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

.voxfseli-message {
	margin-bottom: 15px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.voxfseli-message.agent {
	flex-direction: row-reverse;
}

.voxfseli-message-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #007cba;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	flex-shrink: 0;
}

.voxfseli-message.user .voxfseli-message-avatar {
	background: #6c757d;
}

.voxfseli-message-content {
	max-width: 70%;
	background: white;
	padding: 10px 15px;
	border-radius: 15px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.voxfseli-message.agent .voxfseli-message-content {
	background: #007cba;
	color: white;
}

.voxfseli-message-text {
	margin: 0;
	line-height: 1.4;
}

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

.voxfseli-message-input-area {
	padding: 20px;
	border-top: 1px solid #dee2e6;
	background: #fff;
}

.voxfseli-message-input-wrapper {
	display: flex;
	gap: 10px;
	align-items: flex-end;
}

.voxfseli-message-input {
	flex: 1;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 20px;
	resize: none;
	max-height: 100px;
	font-size: 14px;
}

.voxfseli-message-input:focus {
	outline: none;
	border-color: #007cba;
}

.voxfseli-send-message-btn {
	padding: 10px 20px;
	background: #007cba;
	color: white;
	border: none;
	border-radius: 20px;
	cursor: pointer;
	font-weight: 500;
}

.voxfseli-send-message-btn:hover {
	background: #005a87;
}

.voxfseli-send-message-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.voxfseli-chat-actions {
	padding: 15px 20px;
	border-top: 1px solid #dee2e6;
	background: #f8f9fa;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.voxfseli-chat-actions button {
	padding: 8px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
}

.voxfseli-end-chat-btn {
	background: #dc3545;
	color: white;
}

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

.voxfseli-transfer-chat-btn {
	background: #ffc107;
	color: #212529;
}

.voxfseli-transfer-chat-btn:hover {
	background: #e0a800;
}

.voxfseli-ban-user-btn {
	background: #6c757d;
	color: white;
}

.voxfseli-ban-user-btn:hover {
	background: #545b62;
}

.voxfseli-typing-indicator {
	padding: 10px 20px;
	color: #666;
	font-style: italic;
	font-size: 13px;
}

.voxfseli-no-chat-selected {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-align: center;
	color: #666;
}

.voxfseli-no-chats {
	text-align: center;
	padding: 40px 20px;
	color: #666;
}

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

.voxfseli-modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	padding: 30px;
	border-radius: 8px;
	max-width: 500px;
	width: 90%;
}

.voxfseli-modal h3 {
	margin: 0 0 15px 0;
}

.voxfseli-modal p {
	margin: 0 0 20px 0;
	color: #666;
}

.voxfseli-modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.voxfseli-modal-actions button {
	padding: 8px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
}

.voxfseli-button.primary {
	background: #007cba;
	color: white;
}

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

.voxfseli-button.danger {
	background: #dc3545;
	color: white;
}

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

.voxfseli-button.secondary {
	background: #6c757d;
	color: white;
}

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

/* Responsive Design */
@media (max-width: 768px) {
	.voxfseli-live-chat-container {
		flex-direction: column;
		height: auto;
	}
	
	.voxfseli-chat-sidebar {
		width: 100%;
		height: 300px;
		border-right: none;
		border-bottom: 1px solid #dee2e6;
	}
	
	.voxfseli-chat-main {
		height: 400px;
	}
	
	.voxfseli-message-content {
		max-width: 85%;
	}
}

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

.voxfseli-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #007cba;
	border-radius: 50%;
	animation: voxfseli-spin 1s linear infinite;
}

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

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

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

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

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

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

.voxfseli-download-btn {
	padding: 5px 10px;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	border-radius: 4px;
	color: inherit;
	cursor: pointer;
	font-size: 12px;
}

/* Status Indicators */
.voxfseli-online-indicator {
	color: #28a745;
}

.voxfseli-offline-indicator {
	color: #dc3545;
}

.voxfseli-away-indicator {
	color: #ffc107;
}

/* Quick Responses */
.voxfseli-quick-responses {
	padding: 10px 20px;
	border-top: 1px solid #dee2e6;
	background: #f8f9fa;
}

.voxfseli-quick-responses h4 {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: #666;
}

.voxfseli-quick-response-list {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.voxfseli-quick-response-btn {
	padding: 5px 10px;
	background: white;
	border: 1px solid #ddd;
	border-radius: 15px;
	cursor: pointer;
	font-size: 12px;
	transition: all 0.2s ease;
}

.voxfseli-quick-response-btn:hover {
	background: #007cba;
	color: white;
	border-color: #007cba;
} 