/* Hide bottom nav completely */
.bottom-nav{
  display: none !important;
}

/* Lock page to chatbot only */
html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
}

:root{
  --max-width: 420px;
  --gap-bottom: 10px;
  --input-height: 64px;
  --accent: #667eea;
  --bg: #fff;
  --bgchat: #dbe8f565;
}

/* Full-screen minimal container */
.chatbot-container{
  width: 100%;
  height: 85vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

/* compact header */
.chatbot-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--primary-color);
  color:#fff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.chatbot-center{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.chatbot-avatar{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.chatbot-avatar img{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #ececec;
  padding: 0;
  object-fit: cover;
}

.chatbot-info h3{
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.status-indicator{
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.9;
}

.header-button{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.header-button:hover{
  background: rgba(102, 126, 234, 0.1);
  transform: scale(1.05);
}

/* Messages area takes remaining space and scrolls */
.chatbot-messages{
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 140px 20px;
  background: var(--bg);
  scroll-behavior: smooth;
}

.message{
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  max-width: 99%;
}

.bot-message{
  align-items: flex-start;
}

.user-message{
  align-items: flex-end;
}

.message-content{
  padding: 10px 14px;
  line-height: 1.5;
  word-wrap: break-word;
  font-size: 1rem;
  font-weight: 400;
}
.wellcome{
    text-align: center;
    width: 100%;
}

.bot-message .message-content{
  background:  var(--bgchat);
  border: 1px solid rgba(0,0,0,0.06);
  color: #222;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 6px;
}

.user-message .message-content{
  background: var(--primary-color);
  color: #fff;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 6px;
}

.message-time{
  font-size: 0.75rem;
  color: #777;
  margin-top: 6px;
}

/* Minimal option buttons */
.message-options{
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-button{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8125rem;
  transition: all 0.2s;
}

.option-button:hover{
  transform: translateY(-2px);
}

/* Menu styles */
.menu-dropdown {
  position: relative;
}

.menu-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.menu-button:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: scale(1.05);
}

.menu-dropdown-content {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 1000;
  overflow: hidden;
}

.menu-item {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #222;
  text-align: right;
  cursor: pointer;
  font-size: 0.9375rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-item:hover {
  background: rgba(102, 126, 234, 0.08);
  color: #667eea;
  padding-right: 20px;
}

.menu-item svg {
  flex-shrink: 0;
}

.chatbot-quick-actions{
  position: fixed;
  left: 50%;
  bottom: calc(var(--gap-bottom) + var(--input-height) + 5px);
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: var(--max-width);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Fixed input area similar to ChatGPT */
.chatbot-input-area{
  position: fixed;
  left: 50%;
  bottom: calc(var(--gap-bottom));
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: var(--max-width);
  height: var(--input-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 8px 30px rgba(15,23,42,0.08);
  border: 1px solid rgba(0,0,0,0.09);
}

.chatbot-input{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
}

.chatbot-input input{
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9375rem;
  padding: 10px 6px;
}

.chatbot-input #send-button{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.chatbot-input #send-button:hover{
  transform: scale(1.05);
}

.chatbot-input #send-button:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

.typing-indicator{
  position: relative;
  margin-top: 6px;
  display: flex;
  gap: 4px;
}

.typing-indicator span{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #667eea;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2){
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3){
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
}

/* Suggestions area sits above input */
.chatbot-suggestions{
  width: 100%;
  display: flex;
  gap: 8px;
  padding-top: 10px;
}

.suggestion-btn{
  background: #fefefe;
  color: #444;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
  flex: auto;
}

.suggestion-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.4);
}

.product-link-btn{
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform 0.2s;
}

.product-link-btn:hover{
  transform: translateY(-2px);
}

/* Custom scrollbar */
.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Message animation */
.message {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}