/* 
   Ara Chatbot Styles
   ------------------------------------------------
   Primary Colors:
   #2AA8A3, #4BAF8A, #FC2703, #FD6D02,
   #283083, #2A8D9C, #FFD700, #90BF55
   Background is generally white / light.
*/

/* Root Variables for Brand Colors & Easy Updates */
:root {
  --ara-blue: #2AA8A3;
  --ara-green: #dff0e8; /* <=== LIGHTER GREEN */
  --ara-red: #FC2703;
  --ara-orange: #FD6D02;
  --ara-navy: #283083;
  --ara-teal: #2A8D9C;
  --ara-gold: #FFD700;
  --ara-lime: #90BF55;

  --text-color: #333;
  --background-color: #ffffff; 
  --header-gradient: linear-gradient(135deg, #283083, #2A8D9C);
}

/* Reset & Body */
html,
body {
  height: 100%;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--background-color);
  color: var(--text-color);
}

/* Custom Scrollbar */
body::-webkit-scrollbar {
  width: 0.6em;
}
body::-webkit-scrollbar-track {
  background: #eeeeee;
  border-radius: 3px;
}
body::-webkit-scrollbar-thumb {
  background-color: var(--ara-green);
  border-radius: 3px;
}

/* Hide elements with v-cloak (if using Vue) */
[v-cloak] {
  display: none;
}

/* Main App Container */
div.app {
  height: 100%;
  width: 100%;
  position: fixed;
  /* Subtle shadow or border for separation */
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  background: var(--background-color);
}

/* Keep chat centered on larger screens */
@media (min-width: 600px) {
  div.app {
    width: 600px;
    left: 50%;
    transform: translate(-50%);
    border-radius: 8px;
    overflow: hidden;
  }
}
  
div.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Error Messages */
div.chat-error-container {
  background: rgba(252, 39, 3, 0.1);
  border-left: 4px solid var(--ara-red);
  padding: 0.6rem;
  display: flex;
  align-items: center;
  color: var(--ara-red);
  font-weight: bold;
}

/* Header */
div.chat-header-container {
  background: var(--header-gradient);
  color: #ffffff;
  padding: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

img.chat-header-avatar {
  height: 1.4rem;
  width: 1.4rem;
  margin-left: 0.6rem;
}

/* Message List */
div.chat-message-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column-reverse;
  overflow-y: auto;
  background: #f9f9f9;
  /* Soft inset shadow for depth */
  box-shadow: inset 0 0 8px rgba(0,0,0,0.03);
}

/* Quick Replies */
div.quick-replies-container {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: #fff;
}

div.quick-reply {
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  margin: 0.5rem;
  border: 2px solid var(--ara-lime);
  color: var(--text-color);
  background: #fff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

div.quick-reply:hover {
  background: var(--ara-lime);
  color: #fff;
}

/* Bot Message */
div.bot-message-container {
  display: flex;
  padding: 0.6rem;
  animation: fadeIn 0.3s ease;
}

div.bot-message-avatar-container {
  margin-left: 0.3rem;
  padding: 0.3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

img.bot-message-avatar {
  height: 2rem;
  width: 2rem;
  border-radius: 50%;
  border: 1px solid #ccc; /* optional: adds a visible circular border */
}

div.bot-message-text {
  background: var(--ara-green);
  color: #000; /* <=== SWITCHED TO BLACK TEXT */
  padding: 0.7rem;
  border-radius: 1rem 1rem 1rem 0rem;
  max-width: 75%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s ease;
}

div.bot-message-debug {
  background: var(--ara-orange);
  color: #fff;
  padding: 0.7rem;
  border-radius: 0.5rem;
  max-width: 75%;
  font-family: monospace;
  white-space: pre;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

img.bot-message-image {
  border-radius: 1rem;
  max-width: 95%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

video.bot-message-video {
  border-radius: 1rem;
  width: 70%;
  height: auto;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* User Message */
div.user-message-container {
  display: flex;
  justify-content: flex-end;
  padding: 0.6rem;
  animation: fadeIn 0.3s ease;
}

div.user-message-text {
  background: var(--ara-blue);
  color: #fff;
  padding: 0.7rem;
  border-radius: 1rem 1rem 0rem 1rem;
  margin-right: 0.3rem;
  max-width: 75%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Input Area */
div.chat-input-container {
  display: flex;
  background: #fff;
  border-top: 1px solid #eaeaea;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.03);
}

input.chat-input {
  border: none;
  flex-grow: 1;
  padding: 0.6rem;
  font-size: 1rem;
  color: var(--text-color);
  background: transparent;
  outline: none;
}

button.chat-send-button {
  border: none;
  background: var(--ara-orange);
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  outline: none;
  text-transform: uppercase;
}
button.chat-send-button:hover {
  background: var(--ara-red);
}

/* Simple Fade-In Animation for New Messages */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
