/* ===========================================
   LIVE CHAT WIDGET STYLES
   =========================================== */

.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 1001;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #64FFDA, #4dd0b8);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(100, 255, 218, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(100, 255, 218, 0.4);
}

.chat-toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #ff4757;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

.chat-icon {
  font-size: 24px;
  color: #1a1a1a;
  z-index: 1;
}

.chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  height: 450px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transform: scale(0) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid #64FFDA;
  overflow: hidden;
}

.chat-panel.active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.chat-header {
  background: linear-gradient(135deg, #64FFDA, #4dd0b8);
  color: #1a1a1a;
  padding: 15px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #2ed573;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

.chat-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #1a1a1a;
  padding: 5px;
}

.chat-messages {
  height: 300px;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
}

.chat-message {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.message-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #64FFDA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #1a1a1a;
  flex-shrink: 0;
}

.message-content {
  background: #fff;
  padding: 10px 15px;
  border-radius: 18px;
  max-width: 80%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.4;
  font-size: 14px;
}

.chat-input-area {
  padding: 15px 20px;
  border-top: 1px solid #e9ecef;
  background: #fff;
}

.chat-input-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-input {
  flex: 1;
  border: 2px solid #e9ecef;
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.chat-input:focus {
  border-color: #64FFDA;
}

.chat-send {
  width: 35px;
  height: 35px;
  border: none;
  background: #64FFDA;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chat-send:hover {
  background: #4dd0b8;
  transform: scale(1.1);
}

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

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 15px;
  font-style: italic;
  color: #6c757d;
  font-size: 12px;
}

.typing-dots {
  display: flex;
  gap: 2px;
}

.typing-dot {
  width: 4px;
  height: 4px;
  background: #6c757d;
  border-radius: 50%;
  animation: typingDots 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingDots {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Quick Actions */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-action {
  background: #64FFDA;
  color: #1a1a1a;
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-action:hover {
  background: #4dd0b8;
  transform: translateY(-1px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .chat-widget {
    right: 20px;
    bottom: 80px;
  }
  
  .chat-panel {
    width: calc(100vw - 40px);
    max-width: 320px;
    right: -10px;
  }
  
  .chat-toggle {
    width: 55px;
    height: 55px;
  }
}
