.elementor-903 .elementor-element.elementor-element-d58dfb5{--display:flex;}.elementor-903 .elementor-element.elementor-element-d58dfb5:not(.elementor-motion-effects-element-type-background), .elementor-903 .elementor-element.elementor-element-d58dfb5 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#EDECF3;}/* Start custom CSS for html, class: .elementor-element-7d23ad4 */:root {
  --bg: #f8f7f4;
  --card-bg: rgba(255, 255, 255, 0.8);
  --accent: #8a2be2;
  --radius: 18px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --blur: 12px;
  --font: inherit;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: var(--font);
  direction: rtl;
}

#chat-app {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  min-height: 100vh;
}

.center {
  text-align: center;
  max-width: 680px;
  width: 100%;
}

.logo {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 1rem;
}

.desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.glass {
  background: var(--card-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.chat-box {
  padding: 1.2rem 1rem;
  min-height: 260px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* پیام‌ها */
.message {
  max-width: 75%;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  white-space: pre-wrap;
  animation: fadeIn 0.3s ease-in;
  text-align: right;
  line-height: 1.8;
}

.message.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-start; /* سمت چپ */
  border-bottom-left-radius: 4px;
}

.message.bot {
  background: #f1f1f1;
  color: #111;
  align-self: flex-end; /* سمت راست */
  border-bottom-right-radius: 4px;
}

.typing {
  font-style: italic;
  font-weight: 500;
  opacity: 0.8;
}

/* ورودی چت */
.chat-input-container {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.7rem;
  margin-bottom: 1rem;
}

.chat-input-container textarea {
  flex: 1;
  border: none;
  resize: none;
  background: transparent;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  outline: none;
  color: #333;
}

.chat-input-container button {
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  transition: background 0.3s ease;
}

.chat-input-container button:hover {
  background: #7020b4;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.suggestions button {
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: #000;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.suggestions button:hover {
  background: #333;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.suggestions button:hover {
  background: var(--accent);
  color: #fff;
}
.message.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-start; /* چپ */
  border-radius: var(--radius) var(--radius) 0 var(--radius); /* پایین راست صاف */
  text-align: right;
}

.message.bot {
  background: #f1f1f1;
  color: #111;
  align-self: flex-end; /* راست */
  border-radius: var(--radius) var(--radius) var(--radius) 0; /* پایین چپ صاف */
  text-align: right;
}/* End custom CSS */