/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ── Chat Question UI ── */

.chat-question-container {
  margin: 12px 0 12px 36px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  box-shadow: 0 2px 12px -2px rgba(9, 9, 11, 0.08), 0 1px 4px -1px rgba(9, 9, 11, 0.06);
  padding: 16px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chat-question-visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-question-label {
  font-size: 13px;
  font-weight: 500;
  color: #52525B;
  margin-bottom: 12px;
}

/* ── Option Grid (style/palette/font pickers) ── */

.chat-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.chat-option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: #ffffff;
  border: 2px solid #e4e4e7;
  border-radius: 12px;
  padding: 12px 12px 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.chat-option-card:hover {
  border-color: #27272A;
  box-shadow: 0 4px 14px -3px rgba(24, 24, 27, 0.25);
  transform: translateY(-2px);
}

.chat-option-card.chat-option-selected {
  border-color: #18181b;
  background-color: #eff6ff;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.15);
}

.chat-option-emoji {
  display: block;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 6px;
}

.chat-option-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

.chat-option-desc {
  display: block;
  font-size: 11px;
  color: #a1a1aa;
  margin-top: 3px;
  line-height: 1.4;
}

/* ── Chip Grid (airtable field selection) ── */

.chat-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 2px solid #d4d4d8;
  border-radius: 999px;
  background: #ffffff;
  padding: 5px 12px;
  font-size: 13px;
  color: #3f3f46;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.chat-chip:hover {
  border-color: #27272A;
  color: #09090B;
  box-shadow: 0 2px 8px -2px rgba(24, 24, 27, 0.2);
}

.chat-chip.chat-option-selected {
  border-color: #18181b;
  background-color: #eff6ff;
  color: #09090B;
}

.chat-chip-type {
  font-size: 11px;
  color: #a1a1aa;
  margin-left: 2px;
}

/* ── Confirm Button (multi-select) ── */

.chat-confirm-btn {
  display: block;
  margin-left: auto;
  margin-top: 12px;
  background-color: #18181b;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-confirm-btn:hover {
  background-color: #09090B;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.4);
}

/* ── Text Input Row ── */

.chat-text-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-text-input {
  flex: 1;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 13px;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-text-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.4);
}

.chat-text-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  border-radius: 12px;
  background-color: #18181b;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-text-submit-btn:hover {
  background-color: #09090B;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.4);
}
