#chatbot-header {
    background-color: #EBAA3F;
    color: white;
    padding: 17px;
    cursor: pointer;
    flex-shrink: 0;
}

#chatbot-messages {
    line-height: 1.1;
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    font-size: .8em;
    /* max-height: 490px;  Set a fixed or maximum height */
    height: 100%;
    scroll-behavior: smooth; /* For smooth scrolling */
    box-sizing: border-box; /* Ensures padding is included in max-height calculation */
}

#chatbot-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
}

.chat-bubble {
    padding: 10px;
    margin: 5px 0;
    border-radius: 10px;
    clear: both;
    display: inline-block;
    word-wrap: break-word;
}

.chat-bubble img {
    margin-top: .1em;
    width: 1em;
    height: 1em;
}

.chat-bubble p {
    text-align: left;
    padding: 0;
}

.chat-bubble.user {
    font-weight: bold;
    background-color: #4CAF50;
    color: white;
    margin-left: auto;
    text-align: left; /* Align text to the left */
    align-self: flex-end; /* Align container to the right */
}

.chat-bubble.bot {
    background-color: #eee;
    color: #333;
    margin-right: auto;
    text-align: left;
}

#chatbot-input-container {
    padding: 10px;
    border-top: 1px solid #ddd;
}

#chatbot-input-bar {
    display: flex;
    flex-grow: 1;
    padding: 10px;
    
    border: 1px solid #ccc;
    background-color: white;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    margin-right: 10px;
}

#chatbot-input-bar input {
    width: 100%;
    padding: 0px;
    margin: 0px;
    border: none;
    outline: none;
}


#chatbot-send {
    width:24px;
    height: 24px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin: 0px;
    padding: 5px 7px;
    box-shadow: none;

    background-color: #ffffff00;
    background-image: url('ressources/Send.png'); ;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#chatbot-send:hover {
    transform: scale(1.1);
}

#chatbot-send:active {
    transform: scale(1);
}

.hidden {
    display: none;
}

.toggle-prompt {
    background-color: transparent;
    border: none;
    color: blue;
    cursor: pointer;
    text-decoration: underline;
}

.toggle-prompt:hover {
    color: darkblue;
}

.user-message {
    background-color: #e0f7fa;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.bot-message {
    background-color: #f1f8e9;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.user-message::before {
    content: attr(data-section) " - ";
    font-weight: bold;
    color: #00796b;
}

.bot-message::before {
    content: attr(data-section) " - ";
    font-weight: bold;
    color: #558b2f;
}

.copy-button{
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.copy-button:hover {
    background-color: #45a049;
}

/* Collaboration Section */
.Collaboration-bubble.user {
    background-color: #e8b3b3; /* Darker pink for user */
    color: #4a0000; /* Darker text for readability */
}

.Collaboration-bubble.bot {
    background-color: #f4caca; /* Lighter pink for AI */
    color: #4a0000;
}

/* Informations Préliminaires Section */
.infoPreliminaire-bubble.user {
    background-color: #f6cda3; /* Darker orange for user */
    color: #704210;
}

.infoPreliminaire-bubble.bot {
    background-color: #fbe0c2; /* Lighter orange for AI */
    color: #704210;
}

/* Information Pédagogique Section */
.infoPedagogique-bubble.user {
    background-color: #fbeea8; /* Darker yellow for user */
    color: #6b5a00;
}

.infoPedagogique-bubble.bot {
    background-color: #fdf3c4; /* Lighter yellow for AI */
    color: #6b5a00;
}

/* Activités Prévues Section */
.actPrevues-bubble.user {
    background-color: #badfb7; /* Darker green for user */
    color: #1f4d20;
}

.actPrevues-bubble.bot {
    background-color: #d5ecd1; /* Lighter green for AI */
    color: #1f4d20;
}

/* Calendrier Section */
.Calendrier-bubble.user {
    background-color: #aac8eb; /* Darker blue for user */
    color: #123d67;
}

.Calendrier-bubble.bot {
    background-color: #cbdff4; /* Lighter blue for AI */
    color: #123d67;
}

/* Information Technique Section */
.infoTechnique-bubble.user {
    background-color: #c2b6eb; /* Darker purple for user */
    color: #3c2765;
}

.infoTechnique-bubble.bot {
    background-color: #d9d3f4; /* Lighter purple for AI */
    color: #3c2765;
}

#chatbot-disclaimer {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 5px;
    padding: 5px;
}

#chatbot-disclaimer_rag {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--Light_Text);
}
