/* styles.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #f4f4f4;
    overflow: hidden;
}
  
.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: 190px;
    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;
}
  
/* .email-section {
  display: none;
}

.email-section.active {
  display: block;
} */
  
  
.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;
}

/**************************** Pour la page patient ***************************/
.container_p{
  display: flex;
  flex-direction: row;
  width: 100%;
}

.sidebar_menu{
  width: 250px;
  height: 100vh;
  background-color: #fff;
  /* padding: 20px; */
  padding: 82px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  /* justify-content: space-between; */
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
} 

.logo h2 {
  font-size: 35px;
  font-weight: 700;
  color: #333;
}

.sidebar_menu nav ul {
  list-style-type: none;
  padding-top: 100px;
}

.sidebar_menu nav ul li {
 margin: 55px -65px;
}

.sidebar_menu nav ul li a {
  text-decoration: none;
  display: flex;
  font-size: 16px;
  padding: 3px;
  flex-direction: column;
  gap: 90px;
  color: #333;
  font-weight: 500;
}

.sidebar_menu nav ul li.active a {
  color: #007bff;
}

.logout {
  text-align: center;
  padding-top: 60px;
}

.logout a {
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
}

/* Le nouveau Menu */


/* .sidebar_menu nav ul li a {
    text-decoration: none;
    font-size: 18px;
    color: #333;
    padding: 10px;
    border-radius: 4px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
} */