/* Chat bubble and panel styles */
#chat-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #e03c31; /* WaiterOne red */
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  z-index: 1000;
}
/* Add styles for Font Awesome chevron icons */
#chat-bubble i {
  font-size: 24px;
}
#chat-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  z-index: 1000;
}
#chat-header {
  background:#e03c31; /* WaiterOne red */
  color:white;
  padding:10px;
  font-weight:bold;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
#chat-close {
  background:none;
  border:none;
  color:white;
  font-size:20px;
  cursor:pointer;
}
#chat-content {
  flex:1;
  overflow:auto;
  padding:10px;
}
.user-message {
  color:  #e03c31; /* WaiterOne red */
  text-align: right;
}
/* Updated AI response color to user's preference */
.ai-response {
  color: #333; /* User's preferred color */
}
.input-group { display: flex; }
.input-group input { flex: 1; padding: 10px; }
.input-group button { padding: 10px; }

/* Add animation for chat bubble click */
@keyframes bubbleClick {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

#chat-bubble.clicked {
  animation: bubbleClick 0.3s ease-in-out;
}

/* Adjust animation duration for chat box open and close */
@keyframes chatBoxOpen {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes chatBoxClose {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

/* Revert animation duration for chat box open and close */
#chat-container.opening {
  animation: chatBoxOpen 0.2s ease-in-out; /* Original duration */
}

#chat-container.closing {
  animation: chatBoxClose 0.2s ease-in-out; /* Original duration */
}

/* FAQ Answer Styles */
.faq-answer {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-question {
    color: #e03c31;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.faq-content {
    color: #333;
    line-height: 1.5;
}

/* Search Results Styles */
.search-results {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
}

.results-title {
    color: #e03c31;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.results-content {
    color: #333;
}

.result-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.5;
}

.result-item:last-child {
    border-bottom: none;
}

/* Link styles for both FAQ and search results */
.faq-content a, .result-item a {
    color: #e03c31;
    text-decoration: none;
    border-bottom: 1px dotted #e03c31;
}

.faq-content a:hover, .result-item a:hover {
    color: #b02820;
    border-bottom-style: solid;
}
