* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #000000;
  color: #ffffff;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.chat-interface {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: row;
  overflow: hidden;
}

.sidebar {
  width: 80px;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-shrink: 0;
}

.sidebar .icon {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}

.sidebar .icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Makes the icons white */
}

.sidebar section{
  display:flex;
  flex-direction: column;
  gap: 15px;
}
.chat-container {
  display: flex;
  flex: 1;
  flex-direction: row;
  overflow: hidden;
}

.chat-list {
  width: 25%;
  background-color: #000000;
  border-right: 1px solid #333;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  resize: horizontal;
  min-width: 150px;
  max-width: 40%; /* Limits maximum size on resizing */
}

.chat-list .messages-list {
  flex: 1;
  overflow-y: auto;
}

.header {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000000;
}

.note-section {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #333;
}

.note-section .profile-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

.message {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #333;
}

.message .avatar {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.message .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.message-content {
  color: #ddd;
}

.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.chat-header {
  padding: 15px;
  background-color: #000000;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.chat-header .profile-btn {
  padding: 5px 10px;
  border: none;
  background-color: #3b82f6;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}

.chat-content {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 70%;
  padding: 10px;
  border-radius: 15px;
  color: #fff;
  word-wrap: break-word;
}

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

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

.chat-input {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #000000;
  flex-shrink: 0;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border:1px solid rgba(255, 255, 255, 0.166);

  border-radius: 15px;
  background-color: #000000;
  color: #fff;
}

.chat-input button {
  margin-left: 10px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #3b82f6;
  color: #fff;
  cursor: pointer;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .chat-list {
    width: 30%;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .chat-container {
    flex-direction: row;
  }

  .chat-list {
    width: 35%;
    max-width: 35%;
    flex-shrink: 0;
  }

  .chat-area {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .sidebar {
    display: none;
  }

  .chat-container {
    flex-direction: row;
  }

  .chat-list {
    width: 40%;
    max-width: 40%;
    flex-shrink: 0;
  }

  .chat-area {
    flex: 1;
  }
}