/* --- תמיכה בשפה עברית: ימין לשמאל --- */
#jarvis-chat-window {
  direction: rtl;
}

/* ===== כפתור הצ׳אט העגול ===== */
#jarvis-chat-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 70px;
  height: 70px;
  background-image: url("/img/chat-bot.png");
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #ffffff;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.05);
  padding: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: 0.3s;
}

#jarvis-chat-button:hover {
  transform: scale(1.1);
}

/* ===== חלון צ׳אט ===== */
#jarvis-chat-window {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 350px;
  height: 450px;
  background: #ffffff;
  border-radius: 15px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 9998;
}

/* ===== כותרת ===== */
#jarvis-chat-header {
  background: linear-gradient(135deg, #007bff, #00c6ff); /* רקע כחול תואם לכפתור */
  color: white;
  padding: 12px;
  font-size: 18px;
  font-weight: bold;
}

/* ===== אזור הודעות ===== */
#jarvis-chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f2f2f2;
}

/* ===== קלט ===== */
#jarvis-chat-input {
  display: flex;
  flex-direction: row-reverse; /* שדה טקסט מימין, כפתור משמאל */
  justify-content: flex-start;
  align-items: center;
  border-top: 1px solid #ddd;
  background: white;
}

#jarvis-chat-text {
  flex: 1;
  border: none;
  padding: 12px;
  outline: none;
  text-align: right; /* כתיבה מימין לשמאל */
  order: 2; /* שדה טקסט בצד ימין */
}

#jarvis-chat-send {
  order: 1; /* כפתור בצד שמאל אמיתי */
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  border: none;
  width: 60px;
  height: 100%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0 0 0 15px; /* התאמה לפינה שמאלית מעוגלת */
  transition: 0.25s ease-in-out;
  transform: rotate(180deg); /* סיבוב החץ לשמאל */
}

#jarvis-chat-send:hover {
  background: linear-gradient(135deg, #0056b3, #0094cc);
  transform: rotate(180deg) translateY(-1px); /* שמירה על כיוון החץ גם בהובר */
}