/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* ── Reset & base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f0f0f;
  color: #e2e2e2;
  font-size: 15px;
  line-height: 1.5;
}

body {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 100vh;
}

/* ── Centered page wrapper ────────────────────────────────── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  height: 100vh;
  padding: 2rem 1.5rem;
}

/* ── Title ────────────────────────────────────────────────── */
.site-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

/* ── Nav ──────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: #888;
}

.site-nav a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover { color: #fff; }

.site-nav .user-email { color: #666; }

.site-nav form,
.site-nav button {
  background: none;
  border: 1px solid #333;
  border-radius: 4px;
  color: #aaa;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0.25rem 0.6rem;
  transition: border-color 0.15s, color 0.15s;
}

.site-nav button:hover { color: #fff; border-color: #555; }

/* ── Flash messages ───────────────────────────────────────── */
.flash {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  color: #ccc;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.6rem 0.9rem;
}

/* ── Auth forms (login / sign-up) ─────────────────────────── */
.auth-card {
  background: #161616;
  border: 1px solid #272727;
  border-radius: 10px;
  padding: 2rem;
  max-width: 380px;
  width: 100%;
  margin: auto;
}

.auth-card h1 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
}

.auth-card .field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.auth-card label {
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.03em;
}

.auth-card input {
  background: #0f0f0f;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  color: #e2e2e2;
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.auth-card input:focus { border-color: #555; }

.auth-card .submit-btn {
  background: #1e1e1e;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #e2e2e2;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
}

.auth-card .submit-btn:hover { background: #2a2a2a; border-color: #555; }

.auth-card .errors {
  background: #1a0d0d;
  border: 1px solid #4a1a1a;
  border-radius: 6px;
  color: #e07070;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  padding: 0.6rem 0.9rem;
}

.auth-card .errors ul { padding-left: 1.1rem; }

/* ── Home / unauthenticated state ─────────────────────────── */
.welcome-message {
  color: #666;
  font-size: 0.95rem;
  margin: auto 0;
  text-align: center;
}

.welcome-message a {
  color: #aaa;
  text-decoration: none;
}

.welcome-message a:hover { color: #fff; }

/* ── Chat interface ───────────────────────────────────────── */
.chat-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #141414;
  border: 1px solid #272727;
  border-radius: 10px;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: #2a2a2a transparent;
}

.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }

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

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

.chat-bubble {
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  padding: 0.65rem 1rem;
  word-break: break-word;
}

.chat-message.user .chat-bubble {
  background: #1f2937;
  border-bottom-right-radius: 4px;
  color: #d1d5db;
}

.chat-message.assistant .chat-bubble {
  background: #1e1e1e;
  border: 1px solid #2e2e2e;
  border-bottom-left-radius: 4px;
  color: #e2e2e2;
}

.chat-sender {
  color: #555;
  font-size: 0.72rem;
  margin-bottom: 0.2rem;
  padding: 0 0.25rem;
}

/* ── Chat input row ───────────────────────────────────────── */
.chat-input-row {
  border-top: 1px solid #1e1e1e;
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem;
  background: #0f0f0f;
  align-items: flex-end;
}

.chat-input {
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  color: #e2e2e2;
  flex: 1;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  max-height: 120px;
  outline: none;
  overflow-y: auto;
  padding: 0.6rem 0.85rem;
  resize: none;
  transition: border-color 0.15s;
}

.chat-input:focus { border-color: #444; }

.chat-input::placeholder { color: #444; }

.chat-send-btn {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  color: #aaa;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1rem;
  height: 38px;
  line-height: 1;
  padding: 0 0.9rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.chat-send-btn:hover { background: #2a2a2a; border-color: #555; color: #fff; }
.chat-send-btn:disabled { opacity: 0.4; cursor: default; }

/*# sourceMappingURL=application.css-30b4e37d59e5ce1f38d5b4593a97c863d06c9191a441bd5b0c0de6b1e42980cd.map */
