
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600&display=swap');

.promptallcgatbot-container{
  width:100%;
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Vazirmatn', system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

/* Root theme wrapper - full screen layout */
.promptallcgatbot-root{
  width:100%;
  min-height:100vh;
  margin:0;
  display:flex;
  flex-direction:column;
  --bg-color:#f9fafb;
  --card-bg:#ffffff;
  --text-main:#111827;
  --text-muted:#6b7280;
  --bubble-user-bg:linear-gradient(135deg,#22c55e,#16a34a);
  --bubble-user-text:#022c22;
  --bubble-bot-bg:#f3f4f6;
  --bubble-bot-text:#111827;
  --input-bg:#f9fafb;
  --input-border:#e5e7eb;
  --chip-bg:#e5e7eb;
  --chip-hover:#f3f4f6;
  --send-btn-bg:radial-gradient(circle at 30% 30%,#bbf7d0,#22c55e);
  background:var(--bg-color);
}

/* Dark theme overrides */
.promptallcgatbot-root.promptallcgatbot-dark{
  --bg-color:#020617;
  --card-bg:#020617;
  --text-main:#e5e7eb;
  --text-muted:#9ca3af;
  --bubble-user-bg:linear-gradient(135deg,#22c55e,#16a34a);
  --bubble-user-text:#022c22;
  --bubble-bot-bg:#111827;
  --bubble-bot-text:#e5e7eb;
  --input-bg:#020617;
  --input-border:#1f2937;
  --chip-bg:#111827;
  --chip-hover:#1f2937;
  --send-btn-bg:radial-gradient(circle at 30% 30%,#bbf7d0,#22c55e);
}

/* Floating header above chat */
.promptallcgatbot-header{
  width:100%;
  padding:8px 16px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter:blur(14px);
  background:linear-gradient(to bottom, rgba(15,23,42,0.85), rgba(15,23,42,0));
  color:#e5e7eb;
}

.promptallcgatbot-header-left{
  display:flex;
  align-items:center;
  gap:8px;
}
.promptallcgatbot-header-right{
  display:flex;
  align-items:center;
  gap:8px;
}

.promptallcgatbot-header-title{
  font-size:15px;
  font-weight:600;
}

/* Header actions icons */
.promptallcgatbot-icon-btn{
  border:none;
  background:rgba(15,23,42,0.85);
  color:#e5e7eb;
  width:32px;
  height:32px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(15,23,42,0.55);
  font-size:16px;
}

/* Inner content wrapper */
.promptallcgatbot-inner{
  flex:1;
  display:flex;
  flex-direction:column;
  width:100%;
  max-width:900px;
  margin:0 auto;
  padding:8px 16px 16px 16px;
  box-sizing:border-box;
}

/* Suggestions */
.promptallcgatbot-suggestions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:4px 0 10px 0;
}
.promptallcgatbot-suggestion-chip{
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
  background:var(--chip-bg);
  color:var(--text-main);
  border:1px solid rgba(148,163,184,0.4);
  cursor:pointer;
  transition:background .12s ease, transform .12s ease, box-shadow .12s ease;
}
.promptallcgatbot-suggestion-chip:hover{
  background:var(--chip-hover);
  transform:translateY(-1px);
  box-shadow:0 6px 12px rgba(15,23,42,0.35);
}

/* Card/chat area - centered */
.promptallcgatbot-card{
  width:100%;
  margin:0;
  background:var(--card-bg);
  border-radius:18px;
  box-shadow:0 18px 40px rgba(15,23,42,0.16);
  padding:12px 14px 10px 14px;
  display:flex;
  flex-direction:column;
  min-height:420px;
}

/* Messages */
.promptallcgatbot-messages{
  flex:1;
  padding:8px 0 10px 0;
  overflow-y:auto;
}
.promptallcgatbot-message-row{
  display:flex;
  margin-bottom:8px;
}
.promptallcgatbot-message-row--user{
  justify-content:flex-end;
}
.promptallcgatbot-message-row--bot{
  justify-content:flex-start;
}
.promptallcgatbot-message{
  max-width:80%;
  padding:8px 12px;
  border-radius:16px;
  font-size:14px;
  line-height:1.7;
  white-space:pre-wrap;
  word-break:break-word;
}
.promptallcgatbot-message--user{
  background:var(--bubble-user-bg);
  color:var(--bubble-user-text);
  border-top-right-radius:4px;
}
.promptallcgatbot-message--bot{
  background:var(--bubble-bot-bg);
  color:var(--bubble-bot-text);
  border-top-left-radius:4px;
}

/* TTS icon */
.promptallcgatbot-tts-btn{
  margin-left:6px;
  cursor:pointer;
  font-size:13px;
  color:var(--text-muted);
}

/* Input area */
.promptallcgatbot-input-bar{
  margin-top:8px;
  display:flex;
  align-items:center;
  gap:10px;
}
.promptallcgatbot-input-shell{
  flex:1;
  display:flex;
  align-items:center;
  gap:8px;
  border-radius:999px;
  background:var(--input-bg);
  border:1px solid var(--input-border);
  padding:6px 14px;
}
.promptallcgatbot-textarea{
  border:none;
  background:transparent;
  resize:none;
  width:100%;
  max-height:100px;
  min-height:32px;
  font-size:16px; /* موبایل: جلوگیری از زوم */
  padding:4px 0;
  outline:none;
  color:#111827;
  -webkit-text-size-adjust:100%;
}
.promptallcgatbot-root.promptallcgatbot-dark .promptallcgatbot-textarea{
  color:#e5e7eb;
}
.promptallcgatbot-textarea::placeholder{
  color:#9ca3af;
}

/* Send button */
.promptallcgatbot-send-btn{
  border:none;
  border-radius:50%;
  width:48px;
  height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--send-btn-bg);
  color:#022c22;
  cursor:pointer;
  box-shadow:0 14px 32px rgba(34,197,94,0.55);
  transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.promptallcgatbot-send-btn:disabled{
  opacity:0.55;
  cursor:default;
  box-shadow:none;
}
.promptallcgatbot-send-btn:not(:disabled):hover{
  transform:translateY(-1px);
  box-shadow:0 18px 40px rgba(34,197,94,0.6);
}
.promptallcgatbot-send-icon{
  font-size:18px;
}

/* Footer note */
.promptallcgatbot-footer-note{
  width:100%;
  max-width:900px;
  margin:8px auto 0 auto;
  font-size:11px;
  color:var(--text-muted);
  text-align:right;
  padding:0 16px 12px 16px;
  box-sizing:border-box;
}

/* Typing indicator */
.promptallcgatbot-typing-dot{
  width:6px;
  height:6px;
  border-radius:999px;
  background:#9ca3af;
  display:inline-block;
  margin-left:3px;
  animation:promptallcgatbot-bounce 1s infinite alternate;
}
.promptallcgatbot-typing-dot:nth-child(2){animation-delay:.15s;}
.promptallcgatbot-typing-dot:nth-child(3){animation-delay:.3s;}
@keyframes promptallcgatbot-bounce{
  from{transform:translateY(0);opacity:.4;}
  to{transform:translateY(-3px);opacity:1;}
}

/* Side menu overlay */
.promptallcgatbot-menu-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.4);
  display:flex;
  justify-content:flex-start;
  align-items:stretch;
  z-index:9999;
}
.promptallcgatbot-menu-panel{
  width:260px;
  max-width:80%;
  background:#111827;
  color:#e5e7eb;
  box-shadow:6px 0 25px rgba(15,23,42,0.6);
  padding:16px 12px;
  display:flex;
  flex-direction:column;
}
.promptallcgatbot-menu-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.promptallcgatbot-menu-title{
  font-size:15px;
  font-weight:600;
}
.promptallcgatbot-menu-close{
  border:none;
  background:transparent;
  font-size:18px;
  cursor:pointer;
  color:#e5e7eb;
}
.promptallcgatbot-menu-section-title{
  font-size:12px;
  font-weight:600;
  color:#9ca3af;
  margin-top:8px;
  margin-bottom:4px;
}
.promptallcgatbot-menu-list{
  list-style:none;
  padding:0;
  margin:0;
}
.promptallcgatbot-menu-item{
  padding:6px 8px;
  border-radius:10px;
  font-size:13px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.promptallcgatbot-menu-item:hover{
  background:#1f2937;
}
.promptallcgatbot-menu-item--active{
  background:#22c55e;
  color:#022c22;
}
.promptallcgatbot-menu-newchat{
  margin-top:6px;
  padding:6px 8px;
  border-radius:10px;
  font-size:13px;
  cursor:pointer;
  border:1px dashed #9ca3af;
  text-align:center;
}
.promptallcgatbot-menu-newchat:hover{
  background:#111827;
}

/* Responsive */
@media (max-width:768px){
  .promptallcgatbot-inner{
    padding:8px 10px 12px 10px;
  }
  .promptallcgatbot-card{
    border-radius:0;
    box-shadow:none;
    min-height:calc(100vh - 170px);
  }
}
