/* Chat Widget Styles */
:root {
  --solutech-primary: #1a253c;
  --solutech-secondary: #4a90e2;
  --solutech-white: #ffffff;
  --solutech-gray: #f4f6f8;
  --solutech-text: #333333;
}

.solutech-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

/* Toggle Button */
.solutech-chat-toggle {
  width: 60px;
  height: 60px;
  background-color: var(--solutech-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
  color: white;
}

.solutech-chat-toggle:hover {
  transform: scale(1.05);
  background-color: var(--solutech-secondary);
}

/* Chat Window */
.solutech-chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  transform-origin: bottom right;
}

.solutech-chat-window.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}

/* Header */
.solutech-chat-header {
  background-color: var(--solutech-primary);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

#solutech-chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

/* Messages Area */
.solutech-chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background-color: var(--solutech-gray);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.message.assistant {
  background-color: white;
  color: var(--solutech-text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.message.user {
  background-color: var(--solutech-secondary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.message-content.loading {
  font-style: italic;
  color: #888;
}

/* Input Area */
.solutech-chat-input-area {
  padding: 15px;
  background-color: white;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}

#solutech-chat-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
}

#solutech-chat-input:focus {
  border-color: var(--solutech-secondary);
}

#solutech-chat-send {
  background-color: var(--solutech-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

#solutech-chat-send:hover {
  background-color: var(--solutech-secondary);
}

/* Markdown Styles inside messages */
.message-content h1,
.message-content h2,
.message-content h3 {
  margin-top: 5px;
  margin-bottom: 5px;
  font-size: 1.1em;
}

.message-content ul {
  margin: 5px 0;
  padding-left: 20px;
}

.message-content a {
  color: inherit;
  text-decoration: underline;
}
/* Loading / Typing Indicator */
.loading-message {
    display: flex;
    align-items: center;
    /* gap: 8px; */
    font-style: italic;
    color: #666;
    color: #666;
}

.typing-text {
    font-size: 0.9em;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 14px;
    vertical-align: middle;
}

.typing-dots span {
    display: block;
    width: 6px;
    height: 6px;
    background-color: #666;
    border-radius: 50%;
    margin: 0 1px;
    animation: dotWave 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dotWave {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
}



/* @keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    }
    40% { 
        transform: scale(1);
    }
} */

