/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background-color: #f4f7fc;
    color: #333;
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
  }
  
  .container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
  }
  
  /* Header */
  header {
    text-align: center;
    margin-bottom: 30px;
  }
  
  header h1 {
    font-size: 2.5rem;
    color: #4f6df5;
    font-weight: bold;
  }
  
  /* Layout */
  .content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
  }
  
  .sidebar {
    flex: 1;
    min-width: 250px;
    background: linear-gradient(145deg, #e3e8ff, #cfd8ff);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  
  /* Search Bar */
  .search-bar {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    font-size: 1rem;
  }
  
  .search-bar::placeholder {
    color: #aaa;
  }
  
  .sidebar nav ul {
    list-style: none;
  }
  
  .sidebar nav ul li {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    background-color: #fff;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s;
  }
  
  .sidebar nav ul li.active,
  .sidebar nav ul li:hover {
    background-color: #4f6df5;
    color: #fff;
    transform: scale(1.05);
  }
  
  .sidebar nav ul li .icon {
    margin-right: 10px;
    font-size: 1.2rem;
  }
  
  /* Main Messages Section */
  .messages {
    flex: 2;
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  
  .top-bar h2 {
    font-size: 1.8rem;
    color: #333;
    flex: 1;
  }
  
  button {
    background-color: #4f6df5;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  button:hover {
    background-color: #3d55c1;
    transform: scale(1.05);
  }
  
  /* Message List */
  .message-list {
    list-style: none;
    margin-top: 20px;
  }

  /* Style pour les dates à côté des étoiles */
.star {
    display: flex;
    align-items: center;
    gap: 5px; /* Espacement entre l'étoile et la date */
}

.star .date {
    font-size: 0.9rem;
    color: #666;
}

  
  .message {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
    background: linear-gradient(145deg, #f8f9fc, #ffffff);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .message:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }
  
  .message .info {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .message strong {
    font-size: 1.2rem;
    display: block;
  }
  
  .message .subject {
    color: #666;
    font-size: 1rem;
  }
  
  .message time {
    font-size: 0.9rem;
    color: #aaa;
    margin-left: 10px;
  }
  
  .message p {
    font-size: 1rem;
    color: #555;
    margin-top: 5px;
    flex: 1;
  }
  
  /* Star Icon */
  .star {
    color: #ffcc00;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  .star:hover {
    transform: scale(1.2);
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .content {
      flex-direction: column;
    }
  
    .sidebar {
      margin-bottom: 20px;
    }
  
    .top-bar {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .top-bar h2 {
      margin-bottom: 10px;
    }
  }
  