#gemma-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-width: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    z-index: 9999;
}

#gemma-chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#gemma-chat-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

#gemma-minimize {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

#gemma-minimize:hover {
    background: rgba(255,255,255,0.3);
}

#gemma-chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: #f8f9fa;
}

#gemma-chat-messages::-webkit-scrollbar {
    width: 6px;
}

#gemma-chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.message {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 10px;
    line-height: 1.6;
    animation: slideIn 0.3s ease;
}

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

.user-message {
    background: #e3f2fd;
    margin-left: 30px;
    border-left: 3px solid #2196f3;
}

.ai-message {
    background: white;
    margin-right: 30px;
    border-left: 3px solid #667eea;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    border-left: 3px solid #c62828;
}

.loading {
    font-style: italic;
    color: #666;
}

#gemma-chat-input-area {
    display: flex;
    padding: 16px;
    background: white;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e0e0e0;
}

#gemma-chat-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

#gemma-chat-input:focus {
    outline: none;
    border-color: #667eea;
}

#gemma-chat-send {
    margin-left: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

#gemma-chat-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#gemma-chat-send:active {
    transform: translateY(0);
}
