/* Cute Droplet Minipet Styles */
.bot-icon {
  position: fixed;
  bottom: 30px;
  right: 5px; /* Tucked to the edge */
  width: 80px;
  height: 96px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0.4; /* Semi-invisible by default */
  transition: opacity 0.3s ease, right 0.3s ease;
}

.droplet-shape {
  width: 100%;
  height: 100%;
  /* Shadow removed per user request */
}

/* Gentle floating movement */
@keyframes gentle-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.bot-icon {
  animation: gentle-float 3s ease-in-out infinite;
}

/* Hover cursor and visibility */
.bot-icon:hover {
  cursor: pointer;
  opacity: 1; /* Fully visible on hover */
  right: 20px; /* Slight pop-out effect */
}

/* Chat Window Styles */
.chat-window {
    position: fixed;
    bottom: 140px;
    right: 30px;
    width: 320px;
    height: 450px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.chat-window.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, #C5E8F7 0%, #87CEEB 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: transform 0.2s;
}

.close-chat:hover {
    transform: scale(1.1);
}

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

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    animation: message-in 0.3s ease-out;
}

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

.message.bot {
    align-self: flex-start;
    background: white;
    color: #333;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.message.user {
    align-self: flex-end;
    background: #87CEEB;
    color: white;
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 8px rgba(135, 206, 235, 0.3);
}

.chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.2s;
    font-size: 0.9rem;
}

.chat-input-area input:focus {
    border-color: #87CEEB;
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #87CEEB;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.send-btn:hover {
    background: #5DADE2;
    transform: scale(1.05);
}