:root{
  --bg:#f7f7f8;
  --card:#ffffff;
  --border:#dddddd;
  --hover:#f0f4ff;
  --accent:#4c6ef5;
  --shadow: 0 1px 4px rgba(0,0,0,0.08);
}

body{
  margin:0;
  font-family: system-ui, Arial;
  background: var(--bg);
  direction: rtl;
}

#chat-container{
  max-width: 920px;
  margin: auto;
  padding: 24px;
}

.message{
  display:flex;
  margin-bottom: 16px;
}

.message.assistant{ justify-content:flex-start; }

.bubble{
  background: var(--card);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  line-height: 1.55;
  max-width: 820px;
  word-break: break-word;
}

.button-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

button.option{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
}

button.option:hover{
  background: var(--hover);
  border-color: var(--accent);
}

/* --- Typing indicator (כמו ChatGPT) --- */
.typing{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 16px;
}

.dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #999;
  opacity: 0.35;
  animation: bounce 1.1s infinite;
}

.dot:nth-child(2){ animation-delay: 0.15s; }
.dot:nth-child(3){ animation-delay: 0.30s; }

@keyframes bounce{
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-4px); opacity: 0.95; }
}
