.app {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.sidebar {
  width: 400px;
  border-right: 1px solid #ddd;
  padding: 1rem;
  background-color: white;
  display: flex;
  flex-direction: column;
}

.mainContent {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
}

.chatsList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0; /* This is important for Firefox */
  padding-right: 0.5rem; /* Add some padding for the scrollbar */
}

.chatItem {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chatItem:hover {
  background-color: #f5f5f5;
}

.selectedChat {
  background-color: #e3f2fd;
  border-color: #2196f3;
}

.chatMeta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.5rem;
}

.error {
  color: #d32f2f;
  padding: 1rem;
  background-color: #ffebee;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.noChatSelected {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  font-size: 1.1rem;
}

.sidebarHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
}

.newChatButton {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.newChatButton:hover {
  background-color: #0056b3;
} 