
#gemini-chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #007cba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

#gemini-chatbot-toggle:hover {
    transform: scale(1.1);
    background: #005a87;
}

#gemini-chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#gemini-chatbot-header {
    background: #007cba;
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#gemini-chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}

#gemini-chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gemini-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.4;
}

.gemini-message.user {
    background: #007cba;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.gemini-message.bot {
    background: #f1f3f4;
    color: #333;
    align-self: flex-start;
    white-space: pre-wrap;
}

#gemini-chatbot-input-container {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

#gemini-chatbot-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

#gemini-chatbot-send {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

#gemini-chatbot-send:hover {
    background: #005a87;
}

#gemini-chatbot-send:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.gemini-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: #f1f3f4;
    border-radius: 18px;
    align-self: flex-start;
    max-width: 80px;
}

.gemini-typing span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.gemini-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.gemini-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.gemini-error {
    background: #ffebee !important;
    color: #c62828 !important;
    border-left: 4px solid #c62828;
}

@media (max-width: 480px) {
    #gemini-chatbot-container {
        width: calc(100% - 40px);
        height: 70vh;
        bottom: 80px;
        right: 20px;
        left: 20px;
    }
}
