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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #1a1a2e;
  color: #eee;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 800px;
  margin: 0 auto;
}

#chat {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.welcome-message {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.welcome-message h2 {
  color: #eee;
  margin-bottom: 10px;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}

.message.system {
  align-self: center;
  align-items: center;
}

.message.user {
  align-self: flex-end;
  align-items: flex-end;
}

.message.private {
  align-self: flex-end;
  align-items: flex-end;
}

.message.bubble {
  padding: 10px 14px;
  border-radius: 18px;
  word-wrap: break-word;
}

.message.system .bubble {
  background-color: #2d2d44;
  color: #aaa;
  font-size: 14px;
}

.message.user .bubble {
  background-color: #4a90e2;
  color: white;
}

.message.private .bubble {
  background-color: #e24a90;
  color: white;
}

.message.sender-name {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
  margin-left: 4px;
}

.message.reply-to {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
  font-style: italic;
}

#options {
  min-height: 100px;
  max-height: 150px;
  background-color: #16213e;
  border-top: 1px solid #2d2d44;
  padding: 15px;
  overflow-x: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}

.options-hidden {
  display: none !important;
}

.option {
  flex-shrink: 0;
  width: 80px;
  height: 100px;
  background-color: #2d2d44;
  border: 2px solid #4a90e2;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.option:hover {
  background-color: #3d3d5c;
  transform: translateY(-2px);
}

.option:active {
  transform: translateY(0);
}

.option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #666;
}

.option.disabled:hover {
  transform: none;
}

.option-image {
  font-size: 32px;
  margin-bottom: 8px;
}

.option-label {
  font-size: 11px;
  text-align: center;
  padding: 0 4px;
}

#input {
  display: flex;
  gap: 10px;
  padding: 15px;
  background-color: #16213e;
  border-top: 1px solid #2d2d44;
}

#messageInput {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 24px;
  background-color: #2d2d44;
  color: #eee;
  font-size: 15px;
  outline: none;
}

#messageInput:focus {
  background-color: #3d3d5c;
}

#sendButton {
  padding: 12px 24px;
  border: none;
  border-radius: 24px;
  background-color: #4a90e2;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

#sendButton:hover {
  background-color: #357abd;
}

#sendButton:active {
  background-color: #2a639f;
}

/* Scrollbar styling */
#chat::-webkit-scrollbar,
#options::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

#chat::-webkit-scrollbar-track,
#options::-webkit-scrollbar-track {
  background: #1a1a2e;
}

#chat::-webkit-scrollbar-thumb,
#options::-webkit-scrollbar-thumb {
  background: #2d2d44;
  border-radius: 4px;
}

#chat::-webkit-scrollbar-thumb:hover,
#options::-webkit-scrollbar-thumb:hover {
  background: #3d3d5c;
}
