#gemini-chatbox {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ccc;
  z-index: 9999;
}

#gemini-header {
  background: #d32f2f;
  color: white;
  padding: 10px;
}

#gemini-messages {
  height: 250px;
  overflow-y: auto;
  padding: 10px;
}

#gemini-controls button {
  width: 100%;
  margin: 5px 0;
  padding: 8px;
}

#gemini-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #d32f2f, #ff6b6b);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  z-index: 9999;
}

#gemini-chatbox {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  background: white;
  border-radius: 10px;
  border: 1px solid #ccc;
  display: none;
}

#gemini-chatbox.active {
  display: block;
}

#gemini-header {
  background: #d32f2f;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
}

.hidden {
  display: none;
}

#gemini-messages {
  height: 300px;
  overflow-y: auto;
  padding: 10px;
  background: #f5f5f5;
}

/* MESSAGE ROW */
.chat-row {
  display: flex;
  margin-bottom: 10px;
}

/* BOT MESSAGE */
.bot {
  align-items: flex-start;
}

.bot .bubble {
  background: #ffffff;
  border-radius: 15px;
  padding: 10px;
  max-width: 75%;
}

/* USER MESSAGE */
.user {
  justify-content: flex-end;
}

.user .bubble {
  background: #d32f2f;
  color: #fff;
  border-radius: 15px;
  padding: 10px;
  max-width: 75%;
}

/* AVATAR */
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 8px;
}

/* TYPING ANIMATION */
.typing {
  display: inline-block;
}

.typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 2px;
  background: #999;
  border-radius: 50%;
  animation: blink 1.4s infinite;
}

.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
  0% { opacity: .2 }
  20% { opacity: 1 }
  100% { opacity: .2 }
}

/* BUTTON CHIPS */
#gemini-controls {
  padding: 10px;
}

.chip {
  display: inline-block;
  background: #eee;
  padding: 8px 12px;
  border-radius: 20px;
  margin: 5px;
  cursor: pointer;
  font-size: 14px;
}

.chip:hover {
  background: #d32f2f;
  color: #fff;
}