.header {
      background-color: #0d4274;
      padding: 20px;
      color: white;
    }

    .chatlist {
      background-color: #f1f1f1;
      height: 85vh;
      overflow-y: auto;
      padding: 10px;
    }

    .chat {
      background-color: #ffffff;
      height: 85vh;
      border-left: 1px solid #ccc;
      display: flex;
      flex-direction: column;
    }

    .profile-img {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      object-fit: cover;
    }

    .user-item {
      display: flex;
      align-items: center;
      background-color: #d8dee6;
      margin-bottom: 10px;
      padding: 8px;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.2s;
    }

    .user-item:hover {
      background-color: #c4d2e0;
    }

    .user-item img {
      width: 45px;
      height: 45px;
      border-radius: 50%;
      margin-right: 10px;
    }

    .chat-header {
      background-color: #f1f1f1;
      padding: 10px 15px;
      border-bottom: 1px solid #ccc;
    }

    .chat-body {
      flex-grow: 1;
      padding: 15px;
      overflow-y: auto;
      background-color: #e5ddd5;
      display: flex;
      flex-direction: column;
    }

    .chat-footer {
      padding: 10px;
      border-top: 1px solid #ccc;
      background-color: #f1f1f1;
      display: flex;
      gap: 10px;
    }

    .message {
      padding: 8px 12px;
      border-radius: 10px;
      margin-bottom: 10px;
      max-width: 60%;
      word-wrap: break-word;
    }

    .received {
      background-color: #fff;
      align-self: flex-start;
    }

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

    @media (max-width: 768px) {
      .chatlist,
      .chat {
        height: auto;
      }
    }