body {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  background-color: #f4f4f9;
  color: #333;
  margin: 0;
  padding: 0;
}

#menuToggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

#sidebar {
  position: fixed;
  box-sizing: border-box;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100vh;
  background-color: #222;
  color: white;
  transition: left 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding-top: 70px;
}

#sidebar.open {
  left: 0;
}

#menuListe {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto;
}

#sidebar a {
  color: white;
  text-decoration: none;
  padding: 15px 25px;
  font-size: 18px;
  transition: background 0.2s;
  cursor: pointer;
}

#sidebar a:hover {
  background-color: #444;
}

#newMenuForm {
  display: flex;
  padding: 15px;
  gap: 10px;
  background: #111;
  flex-direction: initial;
}

#newMenuForm input {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 4px;
  width: 75%;
}

#newMenuForm button {
  background-color: #fff;
  color: #000;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#content {
  max-width: 600px;
  margin: 80px auto 40px auto;
  padding: 0 20px;
}

#feedTitle {
  margin-bottom: 20px;
}

form {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}

input[type="file"] {
  font-size: 14px;
}

button[type="submit"] {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

button[type="submit"]:hover {
  background-color: #333;
}

hr {
  border: none;
  height: 1px;
  background: #ddd;
  margin: 30px 0;
}

.message-card {
  background: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message-card p {
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
}

.message-card img {
  max-width: 100%;
  border-radius: 5px;
}

.message-datetime {
  font-size: xx-small;
  color: grey;
  position: relative;
  top: -5px;
  right: -5px;
  justify-content: flex-end;
  display: flex;
}

#messages {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#boutonImage {
  cursor: pointer;
  border-radius: 8px;
  width: 3%;
  position: fixed;
  top: 4%;
  right: 2%;
}
.btn-supprimer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  color: #dc3545;
  border: 1px solid #f8d7da;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 15px;
  align-self: flex-start;
}

.btn-supprimer:hover {
  background-color: #dc3545;
  color: #fff;
  border-color: #dc3545;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.btn-supprimer svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.message-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.menu-container {
  position: relative;
}

.btn-dots {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0 5px;
  border-radius: 4px;
}

.btn-dots:hover {
  background-color: #eee;
  color: #333;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  z-index: 10;
}

.dropdown-menu.show {
  display: block;
}

.btn-supprimer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  color: #dc3545;
  border: none;
  padding: 8px 10px;
  width: 100%;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}

.btn-supprimer:hover {
  background-color: #ffe6e6;
}

.btn-supprimer svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
