:root {
    --primary-color: #007bff;
    --accent-color: #00bfff;
    --header-bg: #0056b3;
    --send-bg: #28a745;
}

#close-icon {

    font-size : 1.8em ;

}

#img-header {

    width : 35px;

    height : 35px;

    border-radius: 50%;
}

#chatbot-open-toggle img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}

#chatbot-container {

    position: fixed;

    bottom: 20px;

    left: 20px;

    z-index: 2000;

    font-family: 'Arial', sans-serif;

}

#chatbot-open-toggle {

    background-color: var(--accent-color);

    color: white;
    
    border: solid;

    border-radius: 50%;

    width: 60px;

    height: 60px;

    font-size: 24px;

    cursor: pointer;

    transition: background-color 0.3s, transform 0.2s;

    display: flex; 

    justify-content: center;

    align-items: center;

    overflow: hidden;

}

#chatbot-open-toggle:hover {

    background-color: #0099cc;

    transform: scale(1.05);

}

#chat-window {

    width: 350px;

    height: 450px;

    background-color: white;

    border-radius: 12px;

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);

    display: flex;

    flex-direction: column;

    margin-bottom: 10px;

    transition: opacity 0.3s, transform 0.3s;

}

.hidden {

    display: none !important;

}

#chat-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 10px 15px;

    background-color: var(--header-bg);

    color: #333;

    border-top-left-radius: 12px;

    border-top-right-radius: 12px;

}

#chat-header h3 {

    margin: 0;

    font-size: 1.2em;

    color: white;

}

#chatbot-close-toggle {

    background-color: transparent;

    color: white;

    border: none;

    border-radius: 5px;

    width: 30px;

    height: 30px;

    font-size: 16px;

    cursor: pointer;

    transition: opacity 0.3s;

}

#chatbot-close-toggle:hover {

    opacity: 0.7;

}

#chat-body {

    flex-grow: 1;

    padding: 15px;

    overflow-y: auto;

    background-color: #f0f0f5;

}

.message {

    padding: 10px 15px;

    border-radius: 18px;

    margin-bottom: 10px;

    max-width: 85%;

    word-wrap: break-word;

    font-size: 0.75em;

    line-height: 1.5;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

}

.user-message {

    background-color: var(--accent-color);

    color: white;

    margin-left: auto;

    border-bottom-right-radius: 5px;

}

.bot-message {

    background-color: #e9ecef;

    color: #333;

    margin-right: auto;

    border-bottom-left-radius: 5px;

}

#chat-footer {

    display: flex;

    padding: 10px;

    border-top: 1px solid #ddd;

    background-color: white;

    border-bottom-left-radius: 12px;

    border-bottom-right-radius: 12px;

}

#user-input {

    flex-grow: 1;

    padding: 10px 15px;

    border: 1px solid #ccc;

    border-radius: 20px;

    margin-right: 8px;

    font-size: 0.9em;

    outline-color: var(--accent-color);

}

#send-button {

    background-color: var(--accent-color);

    color: white;

    border: none;

    border-radius: 20px;

    padding: 10px 18px;

    cursor: pointer;

    transition: background-color 0.3s;

    font-weight: bold;

}

#send-button:hover {

    background-color: #0099cc;

}

.modal {

    position: fixed;

    bottom: 90px;

    left: 30px;

    width: auto;

    height: auto;

    background-color: transparent;

    display: block;

    z-index: 2500;

    opacity: 1;

    pointer-events: auto;

    transition: opacity 0.3s ease, transform 0.3s ease;

}

.hidden-modal {

    opacity: 0 !important;

    visibility: hidden;

    pointer-events: none;

}

.modal-content {

    background-color: white;

    padding: 15px;

    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    width: 250px;

    position: relative;

    text-align: left;

    color: #333;

    border: 1px solid #ddd;

}

.modal-content::after {

    content: '';

    position: absolute;

    left: 15px;

    bottom: -10px;

    width: 0;

    height: 0;

    border-left: 10px solid transparent;

    border-right: 10px solid transparent;

    border-top: 10px solid white;

}

.modal-content::before {

    content: '';

    position: absolute;

    left: 15px;

    bottom: -12px;

    width: 0;

    height: 0;

    border-left: 11px solid transparent;

    border-right: 11px solid transparent;

    border-top: 11px solid #ddd;

    z-index: -1;

}

.ia-message {

    background: none;

    border: none;

    padding: 0;

    margin: 0;

    line-height: 1.4;

    font-size: 0.95em;

    font-weight: 500;

}

.close-notification {

    text-align: right;

    margin-top: 5px;

    font-size: 0.8em;

    color: var(--primary-color);

    cursor: pointer;

    text-decoration: underline;

}