* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #111;
}

#app {
  width: 100vw;
  height: 100vh;
  display: flex;
  background: #202c33;
  color: #fff;
}

.sidebar {
  width: 30%;
  border-right: 1px solid #333;
  display: flex;
  flex-direction: column;
}

.top-tabs {
  display: flex;
  border-bottom: 1px solid #333;
}

.tab-button {
  flex: 1;
  padding: 8px;
  background: #202c33;
  color: #aaa;
  border: none;
  cursor: pointer;
  font-size: 12px;
}

.tab-button.active {
  background: #2a3942;
  color: #fff;
  font-weight: 600;
}

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

.chat-item {
  padding: 10px;
  border-bottom: 1px solid #333;
  cursor: pointer;
}

.chat-item:hover {
  background: #2a3942;
}

.chat-item-title {
  font-weight: 600;
}

.chat-item-last {
  font-size: 12px;
  color: #aaa;
}

.chat-panel {
  width: 70%;
  display: flex;
  flex-direction: column;
}

.chat-header {
  height: 50px;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: #202c33;
}

.chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #111b21;
}

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

.message.me {
  margin-left: auto;
  background: #005c4b;
}

.message.them {
  margin-right: auto;
  background: #202c33;
}

.message-time {
  display: block;
  font-size: 10px;
  color: #aaa;
  margin-top: 4px;
}

.chat-input {
  padding: 8px;
  display: flex;
  gap: 8px;
  border-top: 1px solid #333;
  background: #202c33;
}

.chat-input input {
  flex: 1;
  padding: 8px;
  border-radius: 4px;
  border: none;
  background: #111b21;
  color: #fff;
}

.chat-input button {
  padding: 8px 12px;
  border-radius: 4px;
  border: none;
  background: #00a884;
  color: #fff;
  cursor: pointer;
}
