/* BLUEIDEALTECK - COMPLETE CHATBOT CSS */

/* Chat Button */
.chat-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #004472, #0066aa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 68, 114, 0.4);
  z-index: 9998;
  transition: all 0.3s;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 68, 114, 0.5);
}

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  height: 550px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 9999;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-window.open {
  display: flex;
}

/* Chat Header */
.chat-header {
  background: linear-gradient(135deg, #004472, #0066aa);
  color: white;
  padding: 18px 20px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-left h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
}

.chat-status {
  font-size: 12px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

#chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.2s;
}

#chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Chat Body */
.chat-body {
  flex: 1;
  padding: 15px;
  overflow-y: scroll !important;
  background: #f5f5f5;
  overscroll-behavior: auto !important;
  scroll-behavior: auto !important;
}

.chat-body[data-lenis-prevent] {
  overflow-y: scroll !important;
}

.chat-body::-webkit-scrollbar {
  width: 6px;
}

.chat-body::-webkit-scrollbar-thumb {
  background: #004472;
  border-radius: 3px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
  background: #003355;
}

/* Chat Messages */
.chat-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.user {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #004472, #0066aa);
}

.chat-msg.user .msg-avatar {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.msg-content {
  max-width: 75%;
  background: white;
  padding: 12px 15px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chat-msg.user .msg-content {
  background: linear-gradient(135deg, #004472, #0066aa);
  color: white;
}

.msg-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

/* Quick Reply Buttons */
.quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-btn {
  background: linear-gradient(135deg, #004472, #0066aa);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.quick-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 68, 114, 0.3);
}

.quick-btn:active {
  transform: translateY(0);
}

/* Chat Input */
.chat-input-box {
  display: flex;
  padding: 15px;
  gap: 10px;
  border-top: 1px solid #e0e0e0;
  background: white;
  border-radius: 0 0 16px 16px;
}

#chat-input {
  flex: 1;
  border: 2px solid #e0e0e0;
  border-radius: 24px;
  padding: 12px 18px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

#chat-input:focus {
  border-color: #004472;
}

#chat-send {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #004472, #0066aa);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

#chat-send:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 68, 114, 0.3);
}

#chat-send:active {
  transform: scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chat-window {
    width: calc(100% - 32px);
    height: calc(100% - 140px);
    right: 16px;
    bottom: 90px;
  }
  
  .chat-btn {
    bottom: 20px;
    right: 20px;
  }
  
  .msg-content {
    max-width: 80%;
  }
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #004472;
  border-radius: 50%;
  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); }
}
