/* Obryx Digital Chatbot Interface Styling */

.chatbot-wrapper {
  display: flex;
  flex-direction: column;
  height: 480px; /* Modern height for chat window */
  position: relative;
}

/* Chat Header */
.chatbot-header {
  padding: 12px 16px;
  background: linear-gradient(135deg, #ff6200, #fd3d13);
  color: #fff;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chatbot-header .bot-avatar {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chatbot-header .bot-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.chatbot-header .bot-info span {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  display: block;
}

/* Messages Area */
.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

/* Message Bubbles */
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 85%;
  animation: fadeSlideUp 0.3s ease-out forwards;
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg .msg-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.45;
  position: relative;
}

.chat-msg.bot .msg-bubble {
  background-color: #fff;
  color: #333;
  border-bottom-left-radius: 4px;
  border: 1px solid #eef0f2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.chat-msg.user .msg-bubble {
  background: linear-gradient(135deg, #ff6200, #fd3d13);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 4px rgba(253,61,19,0.15);
}

/* Option Chips (Quick Replies) */
.chatbot-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background-color: #fff;
  border-top: 1px solid #f1f2f4;
  justify-content: center;
}

.option-chip {
  background-color: #fff;
  color: #ff6200;
  border: 1px solid #ff6200;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.option-chip:hover {
  background: linear-gradient(135deg, #ff6200, #fd3d13);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(253,61,19,0.15);
}

/* Chat Input Bar */
.chatbot-input-bar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background-color: #fff;
  border-top: 1px solid #f1f2f4;
  gap: 10px;
}

.chatbot-input-bar input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
  background-color: #f8f9fa;
}

.chatbot-input-bar input:focus {
  border-color: #ff6200;
  background-color: #fff;
}

.chatbot-input-bar .send-chat-btn {
  background: linear-gradient(135deg, #ff6200, #fd3d13);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 2px 4px rgba(253,61,19,0.2);
}

.chatbot-input-bar .send-chat-btn:hover {
  transform: scale(1.05);
}

.chatbot-input-bar .send-chat-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Bouncing Typing Indicator Animation */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: #888;
  border-radius: 50%;
  animation: bounce 1.3s infinite ease-in-out;
}

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

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

/* Keyframes */
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

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