/* Floating Button */
#gemini-chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #0073aa; /* WordPress Blue */
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: transform 0.2s;
}

#gemini-chat-button:hover {
  transform: scale(1.1);
}

/* Chat Window */
#gemini-chat-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 400px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
#gemini-chat-header {
  background-color: #0073aa;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#gemini-chat-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

#gemini-chat-close {
  cursor: pointer;
  font-size: 20px;
}

/* Messages Area */
#gemini-chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gemini-message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.bot-message {
  background-color: #e5e5e5;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.user-message {
  background-color: #0073aa;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.gemini-message.error {
  background-color: #ffdddd;
  color: #a00;
}

/* Input Area */
#gemini-chat-input-area {
  padding: 15px;
  border-top: 1px solid #eee;
  background-color: white;
  display: flex;
  gap: 10px;
}

#gemini-chat-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
}

#gemini-chat-input:focus {
  border-color: #0073aa;
}

#gemini-chat-send {
  background-color: #0073aa;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

#gemini-chat-send:hover {
  background-color: #005177;
}
