/* NEGECACE Chatbot Widget Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

#negecace-chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  max-height: 500px;
  background-color: #ffffff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  transition: all 0.3s ease;
}

#negecace-chatbot-container.minimized {
  max-height: 60px;
}

#negecace-chatbot-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  color: #ffffff;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

#negecace-chatbot-header:hover {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

#negecace-chatbot-toggle {
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

#negecace-chatbot-container.minimized #negecace-chatbot-toggle {
  transform: rotate(180deg);
}

#negecace-chatbot-body {
  display: flex;
  flex-direction: column;
  height: 400px;
  transition: all 0.3s ease;
}

#negecace-chatbot-container.minimized #negecace-chatbot-body {
  height: 0;
  overflow: hidden;
}

#negecace-chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #fafafa;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 60" opacity="0.05"><text x="10" y="35" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="%23333333">NEGECACE</text></svg>');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 150px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#negecace-chatbot-messages::-webkit-scrollbar {
  width: 4px;
}

#negecace-chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

#negecace-chatbot-messages::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 2px;
}

.negecace-chat-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  animation: messageSlide 0.3s ease;
}

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

.negecace-chat-message.user {
  background-color: #1a1a1a;
  color: #ffffff;
  align-self: flex-end;
  margin-left: auto;
}

.negecace-chat-message.bot {
  background-color: #ffffff;
  color: #1a1a1a;
  align-self: flex-start;
  border: 1px solid #e5e5e5;
}

.negecace-typing-indicator {
  background-color: #ffffff;
  color: #666666;
  align-self: flex-start;
  border: 1px solid #e5e5e5;
  font-style: italic;
}

#negecace-chatbot-input-container {
  display: flex;
  padding: 16px 20px;
  background-color: #ffffff;
  border-top: 1px solid #e5e5e5;
  gap: 12px;
}

#negecace-chatbot-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  outline: none;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease;
}

#negecace-chatbot-input:focus {
  border-color: #1a1a1a;
}

#negecace-chatbot-input::placeholder {
  color: #999999;
}

#negecace-chatbot-send {
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.2s ease;
  min-width: 60px;
}

#negecace-chatbot-send:hover {
  background-color: #000000;
  transform: translateY(-1px);
}

#negecace-chatbot-send:active {
  transform: translateY(0);
}

#negecace-chatbot-send:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
}

/* Language selector */
#negecace-language-selector {
  display: flex;
  gap: 5px;
  padding: 8px 20px;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e5e5e5;
  justify-content: center;
}

.negecace-lang-btn {
  background: none;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.negecace-lang-btn:hover {
  background-color: #1a1a1a;
  color: white;
}

.negecace-lang-btn.active {
  background-color: #1a1a1a;
  color: white;
}

.negecace-welcome-message {
  text-align: center;
  color: #666666;
  font-size: 13px;
  padding: 10px;
  background-color: #f0f0f0;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  #negecace-chatbot-container {
    width: calc(100vw - 40px);
    right: 20px;
    left: 20px;
    max-height: 70vh;
  }
  
  #negecace-chatbot-body {
    height: calc(70vh - 60px);
  }
}

/* Accessibility */
#negecace-chatbot-container * {
  box-sizing: border-box;
}

#negecace-chatbot-header:focus,
#negecace-chatbot-input:focus,
#negecace-chatbot-send:focus {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

/* Multilingual message styling */
.negecace-chat-message.language-switch {
  background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%);
  color: #1a1a1a;
  font-weight: 500;
  border: 1px solid #1a1a1a;
}

/* Professional business styling */
.business-highlight {
  background: linear-gradient(45deg, #1a1a1a, #333333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* Service animation */
@keyframes serviceBounce {
  0%, 20%, 60%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  80% {
    transform: translateY(-5px);
  }
}

.service-animation {
  animation: serviceBounce 1s ease-in-out;
}
