.chat-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.chat-header {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e9ecef;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.chat-footer {
  padding: 15px;
  border-top: 1px solid #e9ecef;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-collapsed {
  height: 60px !important; /* Added !important to ensure it overrides other styles */
  overflow: hidden;
}

.chat-collapsed .chat-body,
.chat-collapsed .chat-footer {
  display: none;
}

/* Animation pour une transition plus fluide */
.chat-wrapper {
  transition: all 0.3s ease;
}

.message {
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
}

.message-user {
  background: #e9ecef;
  align-self: flex-end;
}

.message-ai {
  background: #f8f9fa;
  align-self: flex-start;
}




  .modal-xl {
	max-width: 90%;
  }
  #elementsList .btn-danger {
	padding: 0.25rem 0.5rem;
	font-size: 0.75rem;
  }
  #elementsList {
	max-height: 300px;
	overflow-y: auto;
  }
  .modal-body .row > div {
	margin-bottom: 1rem;
  }

/* Styles pour l'offcanvas large */
.offcanvas-large {
	width: 100% !important; /* Pleine largeur sur mobile */
}

@media (min-width: 1000px) {
	.offcanvas-large {
		width: 800px !important; /* 800px de large sur les grands écrans */
	}
}

/* Structure de l'offcanvas */
.offcanvas-large .offcanvas-body {
	display: flex;
	flex-direction: column;
	height: calc(100% - 56px); /* Ajustez si nécessaire */
	padding: 1rem !important;
}

/* Zone de messages */
.chat-messages {
	flex: 1;
	overflow-y: auto;
	margin-bottom: 1rem;
}

/* Zone d'input */
.chat-input {
	position: sticky;
	bottom: 0;
	background-color: #fff;
	padding: 1rem !important;
	border-top: 1px solid #dee2e6;
}

/* Styles pour l'input et le bouton */
.chat-input .input-group {
	width: 100% !important;
}

.chat-input .form-control {
	flex: 1 !important;
	height: auto !important;
	padding: 0.75rem 1rem !important;
	font-size: 1rem !important;
}

.chat-input .btn {
	padding: 0.75rem 1rem !important;
	font-size: 1rem !important;
}

/* Styles pour les messages */
.chat-message-left,
.chat-message-right {
	display: flex;
	margin-bottom: 1rem;
	max-width: 80%;
}

.chat-message-left {
	margin-right: auto;
}

.chat-message-right {
	flex-direction: row-reverse;
	margin-left: auto;
}

/* surcharger avce css APOK */
body{
	font-family: "Arima", system-ui !important;
	color: #000000;
}

.body-apok .card {
	background-color: #ffd234;
}
.nav-pills .nav-link.active, 
.nav-pills .nav-link.active:hover, 
.nav-pills .nav-link.active:focus{
	background-color: #000000 !important;
}
.nav-pills .nav-item .nav-link:not(.active):hover {
    background-color: rgba(255, 210, 52, 0.1);
	color: #ffd234;
}
.btn-apok{
    background-color: #000000 !important;
	color: #fff;
    border-color: #000000;
}
.btn-apok:hover {
    background-color: rgba(0, 0, 0, 0.9) !important;
	color: #fff;
    border-color: #000000;
}
.body-apok .form-control, 
.body-apok .form-select:focus,
.body-apok .input-group-text {
    border-color: #000000 !important;
}
.body-apok .form-control:focus {
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.3);
}
.body-apok .form-label, 
.body-apok .col-form-label{
	color: #424242 !important;
}
.body-apok h6, 
.body-apok .h6, 
.body-apok h5, 
.body-apok .h5, 
.body-apok h4, 
.body-apok .h4, 
.body-apok h3, 
.body-apok .h3, 
.body-apok h2, 
.body-apok .h2, 
h1, 
.body-apok .h1,
.body-apok p{
	color: #000000;
}
nav.bg-navbar-theme{
	background-color: #ffd234 !important;
	color: #000000;
}


/* Ajustements pour les grands écrans */
@media (min-width: 1000px) {
	.offcanvas-large .offcanvas-body {
		padding: 2rem !important;
	}

	.chat-messages,
	.chat-input {
		max-width: 720px;
		margin-left: auto;
		margin-right: auto;
	}
}
