body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f2f2f2;
}

.card {
  max-width: 320px;
  margin: 80px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}

.card button {
  width: 100%;
  padding: 10px;
  cursor: pointer;
}

.error {
  color: #b00020;
  margin-top: 8px;
  font-size: 0.9em;
}

.hidden {
  display: none;
}

#app-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #075E54;
  color: #fff;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header button {
  margin-left: 8px;
}

.main-layout {
  flex: 1;
  display: flex;
}

#conversations-panel {
  width: 320px;
  background: #fff;
  border-right: 1px solid #ddd;
  overflow-y: auto;
}

#conversations-panel h3 {
  margin: 10px;
}

#conversations-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#conversations-list li {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  font-size: 0.9em;
}

#conversations-list li.active {
  background: #e0f2f1;
}

#chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

#chat-header > div {
  display: flex;
  flex-direction: column;
}

#chat-status-container {
  margin-top: 4px;
  font-size: 0.85em;
}

#chat-status-container select {
  margin-left: 4px;
}

#chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #e5ddd5;
  display: flex;
  flex-direction: column;
}

.message {
  margin-bottom: 8px;
  max-width: 70%;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9em;
}

.message.in {
  background: #fff;
  align-self: flex-start;
}

.message.out {
  background: #dcf8c6;
  align-self: flex-end;
}

#notes-panel {
  background: #ffffff;
  padding: 8px 10px;
  border-top: 1px solid #ddd;
  max-height: 180px;
  overflow-y: auto;
}

#notes-panel h4 {
  margin: 4px 0 6px 0;
}

#notes-list {
  max-height: 100px;
  overflow-y: auto;
  margin-bottom: 6px;
  font-size: 0.85em;
}

.note-item {
  border-left: 3px solid #aaa;
  padding: 4px 6px;
  margin-bottom: 4px;
  background: #f9f9f9;
}

.note-meta {
  font-size: 0.75em;
  color: #555;
}

#chat-input {
  display: flex;
  padding: 10px;
  background: #f0f0f0;
}

#message-input {
  flex: 1;
  resize: none;
  padding: 8px;
}

#btn-send {
  margin-left: 10px;
  padding: 8px 16px;
  cursor: pointer;
}
