/* Caddy Chatbot CSS */
#caddy-chatbot {
  position: fixed;
  bottom: 105px;
  right: 30px;
  z-index: 99999;
  font-family: 'Inter', sans-serif;
}

#caddy-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #aa8c2c);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  border: 2px solid #fff;
}

#caddy-button:hover {
  transform: scale(1.1);
}

#caddy-button svg {
  width: 35px;
  height: 35px;
  fill: #fff;
}

#caddy-window {
  display: none;
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background-color: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  flex-direction: column;
  overflow: hidden;
}

#caddy-header {
  background: linear-gradient(135deg, #111, #1a1a1a);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

#caddy-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

#caddy-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#caddy-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#caddy-title {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

#caddy-subtitle {
  color: #d4af37;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#caddy-close {
  color: #888;
  cursor: pointer;
  font-size: 24px;
  transition: color 0.2s;
}

#caddy-close:hover {
  color: #fff;
}

#caddy-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.caddy-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

.caddy-msg.bot {
  background-color: #1a1a1a;
  color: #eee;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.caddy-msg.user {
  background-color: #d4af37;
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

#caddy-input-area {
  padding: 15px;
  background-color: #111;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  gap: 10px;
}

#caddy-input {
  flex: 1;
  background-color: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
}

#caddy-input:focus {
  border-color: #d4af37;
}

#caddy-send {
  background-color: #d4af37;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

#caddy-send:hover {
  transform: scale(1.05);
}

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

/* Mobile Fix */
@media (max-width: 600px) {
  #caddy-window {
    width: calc(100vw - 40px);
    right: -10px;
    height: 70vh;
  }
}
