/* --- G-Bot Widget --- */
#g-bot-bubble {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.2s ease, background 0.3s ease;
}
#g-bot-bubble:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

#g-bot-close {
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
}

#g-bot-window {
  height: 260px;
  overflow-y: auto;
  padding: 10px;
  font-size: 14px;
  background: #f8fafc;
  border-radius: 6px;
}

#g-bot-window p {
  margin: 8px 0;
}

.g-bot-message strong {
  color: #2563eb;
}

#g-bot-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

#g-bot-form {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

#g-bot-form button {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}
#g-bot-form button:hover {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
}

/* --- Floating G-Bot Widget --- */
#ask-gary-widget {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.35s ease;
}

#ask-gary-widget.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Header, window, input, buttons remain as you have them */


#g-bot-header {
  background: linear-gradient(135deg, #1e3a8a, #931dd8);
  color: white;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g-bot-hidden {
  display: none;
}

#g-bot-header-main {
  background: linear-gradient(135deg, #8a1e1e, #931dd8);
  color: white;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g-bot-hidden-main {
  display: none;
}
.g-bot-message {
  margin: 8px 0;
  line-height: 1.4;
  animation: fadeIn 0.3s ease-in-out;
}

.g-bot-message.user {
  text-align: right;
  color: #255cb9;
}

.g-bot-message.bot {
  text-align: left;
  color: #333;
}

.g-bot-message.typing {
  color: #888;
  font-style: italic;
}

.g-bot-message.error {
  color: red;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
