/* Pływająca ikonka czatu */
#chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #0073aa;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#chatbot-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Okno czatu */
#chatbot-window {
    display: none; /* Domyślnie ukryte */
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    display: none;
    flex-direction: column;
}

/* Nagłówek okna czatu */
#chatbot-header {
    background-color: #0073aa;
    color: white;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    text-align: center;
    font-weight: bold;
}

/* Kontener na wiadomości */
#chatbot-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-message {
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
    line-height: 1.4;
}

.user-message {
    background-color: #dcf8c6;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

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


/* Formularz do wpisywania wiadomości */
#chatbot-form {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 10px;
}

#chatbot-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
}

#chatbot-form button {
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
}

/* Style dla listy źródeł */
.chatbot-sources {
    margin-top: 10px;
    margin-bottom: 0;
    padding-left: 20px;
    font-size: 0.9em;
}

.chatbot-sources li {
    margin-bottom: 5px;
}

.chatbot-sources a {
    color: #005a87;
    text-decoration: none;
}

.chatbot-sources a:hover {
    text-decoration: underline;
}