/* styles.css */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  background-color: #f4f4f4;
}

.header {
  background-color: #f1f3f4;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search {
  padding: 5px;
  width: 300px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.main-content {
  display: flex;
  height: calc(100vh - 60px);
}

.sidebar {
  width: 200px;
  background-color: #f1f3f4;
  border-right: 1px solid #ddd;
  padding: 20px;
  overflow-y: auto;
}

.compose-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 20px;
  font-size: 16px;
}

.compose-btn:hover {
  background-color: #0c59d7;
}

.folder-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.folder-list li {
  margin-bottom: 10px;
}

.folder-list a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.folder-list a:hover {
  background-color: #e0e0e0;
}

.email-list {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

.email-item {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.email-item .user {
  margin-bottom: 20px;
}

.email-item .user h2 {
  margin: 0;
}

.email-item .user ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.email-item .user li {
  margin-bottom: 10px;
}

.email-item .user a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

.email-item .user a:hover {
  text-decoration: underline;
}

#chatZone {
  position: fixed;
  bottom: 20px;
  right: 30px;
  width: 500px;
  height: 70vh;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: Arial, sans-serif;
  /* display: none; */
}

#chatbot-header {
  background-color: #1a73e8;
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
}

#chatbot-messages {
  height: calc(100% - 120px);
  overflow-y: auto;
  padding: 10px;
  background-color: #f9f9f9;
}

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

.message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  padding: 10px;
  border-radius: 8px;
  margin: 5px 0;
}

.message.sent {
  align-self: flex-end;
  background-color: #dcf8c6;
}

.message.received {
  align-self: flex-start;
  background-color: #ffffff;
  border: 1px solid #ddd;
}

.message .username {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.message p {
  margin: 0;
  padding: 0;
  color: #555;
}

.message .timestamp {
  font-size: 0.8em;
  color: #999;
  text-align: right;
}

.message-input {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid #ddd;
  background-color: #f9f9f9;
}

#messageInput {
  flex: 1;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

#sendBtn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#sendBtn:hover {
  background-color: #0056b3;
}

/* Style pour la zone de chat cachée */
#chatZone.close {
  display: none;
}

.user .username {
  font-weight: bold;
  color: #333;
}

.user p {
  margin: 5px 0;
  color: #555;
}

.timestamp {
  font-size: 12px;
  color: #999;
}
.msgRecus{
  margin-top: 15px;
  border: 2px solid rgb(192, 188, 188);
}

#searchInput {
  width: 100%;
  padding: 10px 15px;
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 12px;
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-sizing: border-box;
}

#searchInput:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 8px rgba(26, 115, 232, 0.2);
}

#searchResults {
  list-style: none;
  padding: 0;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  max-height: 200px;
  overflow-y: auto;
}

#searchResults li {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

#searchResults li:last-child {
  border-bottom: none;
}

#searchResults li:hover {
  background-color: #f1f1f1;
}

/* augmente la taille de la zone de messagerie  */

#message-details {
  width: 400px; /* Augmente la largeur à 400px */
  padding: 15px;
  border-left: 1px solid #ccc; /* Garde une séparation avec le tableau */
}