/* streamlineai-chat-frontend/style.css — V1.4
 *
 * Cloned from frontend/style.css. Same black/gold/warm-white palette
 * (the StreamlineAI brand colours match what UPunt currently uses,
 * which makes sense since UPunt's frontend was built against the same
 * brand tokens). If StreamlineAI brand evolves later, fork the
 * --gold/--warm-white tokens here.
 */

:root {
  --bg: #080808;
  --gold: #c9a84c;
  --gold-dark: #9a7a2e;
  --warm-white: #f5f0e8;
  --user-bg: #1a1a1a;
  --assistant-bg: #14110a;
  --status: #6a6a6a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--warm-white);
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
  height: 100vh;
}

header {
  padding: 1rem;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
}

header .version {
  color: var(--gold-dark);
  font-size: 0.85em;
  margin-left: 0.5rem;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--gold-dark);
  color: var(--gold-dark);
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1rem;
}

#messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.msg {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  max-width: 85%;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.msg-user {
  background: var(--user-bg);
  align-self: flex-end;
  border: 1px solid #2a2a2a;
}

.msg-assistant {
  background: var(--assistant-bg);
  align-self: flex-start;
  border: 1px solid #2a2418;
}

.msg-error {
  background: #2a1414;
  border-color: #5a2a2a;
  color: #f5d0d0;
}

.msg-status {
  align-self: center;
  background: transparent;
  color: var(--status);
  font-size: 0.85rem;
  font-style: italic;
  padding: 0.25rem 0.5rem;
}

#chat-form {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #222;
}

#input {
  flex: 1;
  background: var(--user-bg);
  border: 1px solid #2a2a2a;
  color: var(--warm-white);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  outline: none;
}

#input:focus {
  border-color: var(--gold-dark);
}

#input:disabled {
  opacity: 0.5;
}

#send {
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}

#send:hover:not(:disabled) {
  background: var(--warm-white);
}

#send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
