﻿.chatbot-window {
    height: 550px;
    background-color: white;
    display: flex;
    flex-direction: column;
    border-radius: 15px; /* Rounded corners for the entire window */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Box shadow */
    overflow: hidden; /* Ensure corners cut off content cleanly */
}

.chat-header {
    background-color: #0096d2;
    color: white;
    padding: 15px !important;
    font-weight: bold;
}

.chat-input {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    padding: 12px !important;
}

#chat-body {
    background-color: white;
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#send-button {
    background-color: #0096d2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: white;
    border: none;
}

.bg-primary {
    background-color: #0096d2 !important;
}

/* Ensure the message bubbles have spacing and proper alignment */
.message-user {
    align-self: flex-end;
    max-width: 70%;
    background-color: #0096d2;
    color: white;
    padding: 10px;
    border-radius: 15px;
    word-wrap: break-word;
}

.message-bot {
    align-self: flex-start;
    max-width: 70%;
    background-color: #f0f0f0;
    color: black;
    padding: 10px;
    border-radius: 15px;
    word-wrap: break-word;
}

#user-input {
    flex-grow: 1;
    background-color: #f0f0f0;
    border: none;
    height: 40px;
    margin-right: 10px;
    border-radius: 20px;
    padding-left: 10px;
    padding-right: 10px;
}

    #user-input:focus {
        outline: none; /* Remove focus outline */
    }

.spinner {
    border: 3px solid #f3f3f3; /* Light grey outer border */
    border-top: 3px solid #ccc; /* Light grey spinning part */
    border-radius: 50%;
    width: 20px; /* Smaller width */
    height: 20px; /* Smaller height */
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.vote-section {
    display: flex;
    align-items: center;
}

.vote-icon {
    font-size: 1.2em;
    color: #0096d2;
    transition: color 0.3s, opacity 0.3s;
    cursor: pointer; /* Ensures the cursor changes to a pointer on hover */
}

    .vote-icon:hover {
        color: #0056b3;
    }

.vote-text {
    margin-left: 10px;
    font-size: 0.8em;
    color: #555;
    transition: color 0.3s;
}

    .vote-text.updated {
        color: #28a745; /* Optional: Change color when updated */
    }

/* Optional: Ensure that when icons are disabled, the cursor does not change */
.vote-icon.disabled {
    cursor: default;
}

