/**
 * Gaze "Speech Bubble" Design
 * Based on user requested layout
 */

.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px; /* Mini Width */
    height: 400px; /* Mini Height */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chatbot-header {
    background: #ffffff; /* White header background */
    padding: 10px 15px;
    color: #1a1b1f; /* Premium dark text */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eeeeee;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 0.9rem; /* Smaller font as requested */
    font-weight: 700; /* Extra bold like Sendbird */
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1b1f;
}

.chatbot-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: #888;
    transition: color 0.2s;
}

.chatbot-messages {
    flex: 1;
    padding: 15px; /* Reduced padding */
    overflow-y: auto;
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Message Wrapper for Avatar + Bubble */
.message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 90%;
}

.message-bot {
    align-self: flex-start;
}

.message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

/* Avatar Styling */
.bot-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Bubble Styling */
.bubble {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    position: relative;
    line-height: 1.4;
}

.bubble-bot {
    background: #ffffff;
    color: #333;
}

/* Bubble Tail for Bot */
.bubble-bot::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 10px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #ffffff;
}

.bubble-user {
    background: #80decb; /* Teal color from image */
    color: #2c3e50;
}

/* Bubble Tail for User */
.bubble-user::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 10px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #80decb;
}

/* Minimalist Input Area */
.chatbot-input-area {
    padding: 15px 20px;
    background: #ffffff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #666;
}

.chatbot-send {
    background: transparent;
    border: none;
    color: #7d3cf2; /* Purple send icon */
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.chatbot-toggle {
    width: 50px; /* Smaller toggle */
    height: 50px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
