/**
 * Styles pour le Widget Chatbot Cezame Music
 */

body:not(.landingPage) .chatbot-widget {
	bottom: 110px;
}

body:not(.landingPage) .chatbot-window {
	bottom: 20px;
}

.chatbot-widget {
	position: fixed;
	z-index: 9999;
	bottom: 20px;
	right: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.chatbot-toggle {
	background-color: #007bff;
	color: white;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.chatbot-toggle:hover {
	transform: scale(1.05);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	border-radius: 30px;
	width: auto;
	padding: 0 20px;
}

.chatbot-toggle span {
	display: none;
	margin-left: 8px;
	white-space: nowrap;
}

.chatbot-toggle:hover span {
	display: inline;
}

.chatbot-window {
	background-color: white;
	border-radius: 10px;
	box-shadow: 0 5px 40px rgba(0, 0, 0, 0.2);
	width: 350px;
	height: 500px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.3s ease;
	position: absolute;
	bottom: 70px;
	right: 0;
}

.chatbot-window.expanded {
	width: 500px !important;
	height: 650px !important;
}

.chatbot-header {
	background-color: #007bff;
	color: white;
	padding: 10px 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: move;
}

.chatbot-branding {
	display: flex;
	align-items: center;
	gap: 10px;
}

.chatbot-logo {
	height: 28px;
	width: auto;
}

/* Style pour le conteneur du logo */
/* .chatbot-logo-container {
	background-color: #e0e0e0;
	width: 120px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0;
	color: #777;
	font-size: 18px;
	font-weight: 300;
	margin-right: 10px;
	text-align: center;
} */

/* Style pour l'image du logo */
/* .chatbot-logo {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
} */

.chatbot-title {
	width:200px;
	flex: 1;
	overflow: hidden;
}

.chatbot-title h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.chatbot-title p {
	margin: 0;
	font-size: 12px;
	opacity: 0.8;
}

.chatbot-controls {
	display: flex;
	gap: 5px;
}

.chatbot-controls button {
	background: transparent;
	border: none;
	color: white;
	cursor: pointer;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 3px;
	transition: background-color 0.2s ease;
}

.chatbot-controls button:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
	flex: 1;
	overflow-y: auto;
	padding: 15px;
	background-color: #f8f9fa;
	display: flex;
	flex-direction: column;
}

.chatbot-message {
	max-width: 85%;
	margin-bottom: 15px;
	padding: 12px 15px;
	border-radius: 15px;
	position: relative;
	word-wrap: break-word;
}

.chatbot-message p {
	margin: 0;
}

.chatbot-bot-message {
	align-self: flex-start;
	background-color: #e9ecef;
	color: #212529;
	border-bottom-left-radius: 5px;
}

.chatbot-user-message {
	align-self: flex-end;
	background-color: #007bff;
	color: white;
	border-bottom-right-radius: 5px;
}

.chatbot-welcome-message {
	align-self: flex-start;
	background-color: #e9ecef;
	color: #212529;
	border-radius: 15px;
	border-bottom-left-radius: 5px;
	padding: 12px 15px;
	margin-bottom: 15px;
}

.chatbot-input {
	padding: 10px;
	background-color: white;
	border-top: 1px solid #e9ecef;
}

.chatbot-input-group {
	display: flex;
	align-items: center;
	border: 1px solid #ced4da;
	border-radius: 20px;
	overflow: hidden;
	padding: 0 15px;
}

#chatbot-message-input {
	flex: 1;
	border: none;
	padding: 10px 0;
	resize: none;
	outline: none;
	max-height: 100px;
	font-family: inherit;
	font-size: 14px;
}

#chatbot-send {
	background: transparent;
	border: none;
	color: #007bff;
	cursor: pointer;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

#chatbot-send:hover {
	transform: scale(1.1);
}

.chatbot-typing-indicator {
	display: none;
	padding: 5px 0;
	margin-top: 5px;
}

.chatbot-typing-indicator span {
	height: 8px;
	width: 8px;
	float: left;
	margin: 0 1px;
	background-color: #9E9EA1;
	display: block;
	border-radius: 50%;
	opacity: 0.4;
}

.chatbot-typing-indicator span:nth-child(1) {
	animation: chatbotTyping 1s infinite;
}

.chatbot-typing-indicator span:nth-child(2) {
	animation: chatbotTyping 1s infinite;
	animation-delay: 0.2s;
}

.chatbot-typing-indicator span:nth-child(3) {
	animation: chatbotTyping 1s infinite;
	animation-delay: 0.4s;
}

/* Styles pour les fonctionnalités spéciales de Cezame */
.video-player {
	margin: 10px 0;
	border-radius: 8px;
	overflow: hidden;
	width: 100%;
}

.cezame-link {
	display: inline-block;
	margin: 10px 0;
	padding: 8px 16px;
	background-color: #007bff;
	color: white;
	text-decoration: none;
	border-radius: 20px;
	font-weight: 500;
	transition: background-color 0.2s ease;
}

.cezame-link:hover {
	background-color: #0056b3;
	text-decoration: none;
	color: white;
}

@keyframes chatbotTyping {
	0% { opacity: 0.4; transform: translateY(0px); }
	50% { opacity: 1; transform: translateY(-5px); }
	100% { opacity: 0.4; transform: translateY(0px); }
}

/* Styles pour jQuery UI */
.ui-resizable-handle {
	background-color: transparent;
}

.ui-resizable-se {
	right: 0;
	bottom: 0;
	cursor: se-resize;
}