#chatgpt-modal-overlay {
    display: none;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2147483647 !important;
}

#chatgpt-modal {
    background: white;
    width: 1200px;
    height: 800px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-message {
    padding: 10px;
    border-radius: 5px;
    margin: 5px 0;
}


#chatgpt-chatbox {
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    background: #fff;
}

.chat-button {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-button img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}



.user-message {
    text-align: right;
}

.bot-message {

    text-align: left;
}

.chat-message {
    padding: 5px 10px;
    border-radius: 5px;
    margin: 2px 0; 
    word-wrap: break-word;
    white-space: pre-wrap;
}

.bot-message p {
    margin: 0; 
    padding: 0;
    line-height: 1.4; 
}

.bot-message ol,
.bot-message ul {
    margin: 5px 0 !important;
    padding-left: 20px;
}

.bot-message li {
    margin-bottom: 3px !important;
    padding: 0;
}

.bot-message blockquote {
    margin: 5px 0;
    padding-left: 10px;
    border-left: 3px solid #007bff; 
    font-style: italic;
}


.bot-message * {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
}


#chatgpt-chatbox {
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    background: #fff;
}

/* Contenedor del input y botón */
.chat-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #f8f9fa;
}

/* Input del chat */
#chatgpt-input {
    flex-grow: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease-in-out;
    background: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#chatgpt-input:focus {
    border-color: #00e3fd;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

#chatgpt-send-button {
    padding: 12px 18px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    background: #00e3fd;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.1s ease-in-out;
}

#chatgpt-send-button:hover {
    background: #00e3fd;
}



#chatgpt-send-button:active {
    transform: scale(0.95);
}


/*BARRA DE CARGA YA TU SABE*/
.chat-loading-container {
    width: 100%;
    height: 5px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
    display: none; 
}

#chat-loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #007bff, #00d4ff);
    transition: width 0.3s ease-in-out;
}
