/* --- Main Widget Container --- */
#gemini-chatbot-widget-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
}

/* --- Chat Bubble --- */
#gemini-chatbot-bubble {
    width: 60px;
    height: 60px;
    background-color: #0073aa;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
#gemini-chatbot-bubble:hover {
    transform: scale(1.1);
}
#gemini-chatbot-bubble svg {
    fill: #ffffff;
}

/* --- Chat Window --- */
#gemini-chatbot-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
#gemini-chatbot-window.active {
    display: flex;
}

/* --- Header --- */
.gemini-chatbot-header {
    background: #f1f1f1;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.gemini-chatbot-header h3 {
    margin: 0;
    font-size: 16px;
}
#gemini-chatbot-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* --- Body & Messages --- */
.gemini-chatbot-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}
#gemini-chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gemini-chat-message {
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
    line-height: 1.4;
}
.gemini-chat-message p {
    margin: 0;
}
.bot-message {
    background: #e9e9eb;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.user-message {
    background: #0073aa;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* --- Upload Area --- */
.gemini-chat-upload-area {
    margin-top: 15px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    text-align: center;
}
.gemini-upload-button {
    background-color: #0073aa;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
}
#gemini-file-name {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #555;
}
#gemini-chat-loader {
    margin-top: 10px;
    font-weight: bold;
}

/* --- Footer & Input --- */
.gemini-chatbot-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    gap: 10px;
}
#gemini-user-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
}
#gemini-user-input:disabled {
    background-color: #f1f1f1;
}
#gemini-send-button {
    border: none;
    background-color: #0073aa;
    color: #fff;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
}
#gemini-send-button:disabled {
    background-color: #999;
    cursor: not-allowed;
}