/* frontend/static/css/custom.css */

:root {
  --bg-dark: oklch(0.92 0.1 267);
  --bg: oklch(0.96 0.1 267);
  --bg-light: oklch(1 0.1 267);
  --text: oklch(0.15 0.2 267);
  --text-muted: oklch(0.4 0.2 267);
  --highlight: oklch(1 0.2 267);
  --border: oklch(0.6 0.2 267);
  --border-muted: oklch(0.7 0.2 267);
  --primary: oklch(0.4 0.2 267);
  --secondary: oklch(0.4 0.2 87);
  --danger: oklch(0.5 0.2 30);
  --warning: oklch(0.5 0.2 100);
  --success: oklch(0.5 0.2 160);
  --info: oklch(0.5 0.2 260);
  --cell: 56px;
  --gap: 6px;
  --radius: 12px;
  --thick: 3px;
  --thin: 1px;
  --focus-ring: 0 0 0 3px color-mix(in oklch, var(--highlight) 60%, transparent);
}

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;  /* THIS prevents scrolling */
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg-dark);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;

  /* layout: board left, chat right */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  padding: 24px;
  box-sizing: border-box;
}

/* Right-hand side (response + input) */
.right-side {
  display: flex;
  flex-direction: column;
  width: min(380px, 40vw);
}

/* Response window styling */
.response-window {
  height: 50vh;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 10px 30px color-mix(in oklch, var(--text) 10%, transparent);
  overflow-y: auto;
}

/* Input row under the response window */
.prompt-input {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.prompt-input input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.prompt-input input:focus-visible {
  box-shadow: var(--focus-ring);
  border-color: var(--highlight);
}

.prompt-input button {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: var(--bg-light);
  font-weight: 600;
  cursor: pointer;
}

.prompt-input button:hover {
  filter: brightness(1.05);
}

.prompt-input button:active {
  filter: brightness(0.97);
}