/**
 * Frontend CSS for Chatwave Pro
 */

 /* Floating Button */
#chatwave-pro-btn {
	position: fixed;
	bottom: 20px;
	z-index: 9999;
	width: 60px;
	height: 60px;
	background-color: #25D366;
	border-radius: 50%;
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

#chatwave-pro-btn:hover {
	transform: scale(1.1);
}

#chatwave-pro-btn.chatwave-left {
	left: 20px;
}

#chatwave-pro-btn.chatwave-right {
	right: 20px;
}

#chatwave-pro-btn svg {
	width: 35px;
	height: 35px;
	fill: white;
}

/* Chat Widget Window */
#chatwave-pro-widget {
	position: fixed;
	bottom: 90px;
	width: 350px;
	max-width: 90%;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.15);
	z-index: 9999;
	display: none; /* Hidden by default */
	flex-direction: column;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#chatwave-pro-widget.chatwave-left {
	left: 20px;
}

#chatwave-pro-widget.chatwave-right {
	right: 20px;
}

#chatwave-pro-widget.chatwave-visible {
	display: flex;
	animation: chatwaveFadeIn 0.3s ease-in-out;
}

@keyframes chatwaveFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Widget Header */
.chatwave-header {
	background: #075E54;
	color: #fff;
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.chatwave-header h3 {
	margin: 0;
	font-size: 18px;
	color: #fff;
}

.chatwave-header p {
	margin: 5px 0 0;
	font-size: 13px;
	opacity: 0.8;
}

.chatwave-close {
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
}

/* Widget Body */
.chatwave-body {
	padding: 15px;
	background: #f0f0f0;
	max-height: 400px;
	overflow-y: auto;
}

.chatwave-intro {
	background: #fff;
	padding: 10px;
	border-radius: 8px;
	font-size: 14px;
	color: #555;
	margin-bottom: 15px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Agent List */
.chatwave-agent {
	display: flex;
	align-items: center;
	background: #fff;
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 10px;
	text-decoration: none;
	color: inherit;
	transition: background 0.2s;
	border: 1px solid #e1e1e1;
}

.chatwave-agent:hover {
	background: #f9f9f9;
	border-color: #25D366;
}

.chatwave-agent img.avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin-right: 12px;
	object-fit: cover;
	background: #ddd;
}

.chatwave-agent-info h4 {
	margin: 0;
	font-size: 15px;
	color: #333;
}

.chatwave-agent-info span {
	font-size: 12px;
	color: #777;
	display: block;
}

.chatwave-agent-status {
	margin-left: auto;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ccc;
}

.chatwave-agent-status.online {
	background: #25D366;
}
