.chat-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1001;
    transition: all 0.3s ease;
}

.chat-bubble:hover {
    background: #34495e;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.chat-interface {
    position: fixed;
    bottom: 20px;
    right: 90px;
    width: 384px;
    height: 40vh;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    pointer-events: none;
}

.chat-interface.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    background: #2c3e50;
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
    flex-shrink: 0;
}

.chat-title {
    font-weight: 600;
    font-size: 14px;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 3px;
    transition: background 0.2s ease;
    font-size: 18px;
    line-height: 1;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    margin: 5px 0;
    word-wrap: break-word;
}

.user-message {
    background: #e3f2fd;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    color: #0d47a1;
}

.bot-message {
    background: #f5f5f5;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    color: #333;
}

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

#message-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

#message-input:focus {
    border-color: #2c3e50;
}


.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px;
    align-self: flex-start;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #2c3e50;
    border-radius: 50%;
    animation: typing 1s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
} 