/* static/css/style.css */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f5f5f8;
}

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

.header {
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

.header h1 {
  margin: 0 0 6px;
  font-size: 16px;
}

.rooms {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.room-tab {
  flex: 0 0 auto;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #f8f8fb;
}

.room-tab.active {
  background: #333;
  color: #fff;
  border-color: #333;
}

.chat-area {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
}

.message {
  max-width: 80%;
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 12px;
  font-size: 14px;
  white-space: pre-wrap;
}

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

.message.ernst {
  margin-right: auto;
  background: #ffffff;
}

.input-area {
  padding: 8px;
  border-top: 1px solid #ddd;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#message-input {
  width: 100%;
  resize: none;
  padding: 6px;
  font-size: 14px;
}

#send-button,
#export-button {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 6px;
  border: none;
}

#send-button {
  background: #333;
  color: #fff;
  margin-bottom: 4px;
}

#export-button {
  background: #eaeaea;
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.checkbox {
  font-size: 12px;
  user-select: none;
}

#pick-image-button {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #f8f8fb;
}

#picked-image-name {
  font-size: 12px;
  opacity: 0.75;
}

