﻿/*body {
    font-family: 'Arial', sans-serif;
    background-color: #e3eee7;
    margin: 0;
    padding: 0;
}*/



/* Contenedor del chat */
#chat-container {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 450px;
    height: 450px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
    border: 2px solid #5ABF90;
    display: none;
    flex-direction: column;
    font-size: 10pt;
    overflow: hidden;
    /* === Permitir redimensionar === */
    resize: both;
    overflow: auto;
    min-width: 300px;
    min-height: 300px;
    max-width: 800px;
    max-height: 800px;
    /* === Animaciones suaves === */
    transition: width 0.3s ease, height 0.3s ease, transform 0.25s ease;
}

    /* === Indicador visual de “esquina redimensionable” (superior derecha) === */
    #chat-container::after {
        content: "";
        position: absolute;
        top: 6px; /* antes estaba bottom: 6px */
        right: 6px; /* esquina superior derecha */
        width: 12px;
        height: 12px;
        border-top: 2px solid #5ABF90;
        border-right: 2px solid #5ABF90;
        border-radius: 2px;
        pointer-events: none;
        opacity: 0.6;
    }



#chat-header {
    background-color: #5ABF90;
    color: white;
    padding: 12px 40px 12px 12px;
    text-align: center;
    font-weight: bold;
    position: relative;
    flex-shrink: 0;
    font-size:14pt;
}

/* Arrastrable solo desde el header */
#chat-header {
    cursor: move;
}
/* Mantén el cursor normal en cerrar y en el handle de resize si lo tienes */
#chat-close, #chat-resize-handle {
    cursor: pointer;
}



#chat-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

#chat-box {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
}

.message {
    display: inline-block;
    margin: 6px 0;
    padding: 8px 12px;
    border-radius: 10px;
    line-height: 1.4;
    word-wrap: break-word;
    max-width: 85%;
}

.user {
    background-color: #d0f0e4;
    align-self: flex-end;
    text-align: right;
    border-top-right-radius: 0;
}

.bot {
    background-color: #e0e0e0;
    align-self: flex-start;
    text-align: left;
    border-top-left-radius: 0;
}


#input-area {
    display: flex;
    padding: 8px;
    border-top: 1px solid #ccc;
    background-color: white;
    flex-shrink: 0;
}

#user-input {
    flex: 1;
    border: 1px solid #ccc;
    padding: 8px;
    font-size: 14px;
    border-radius: 4px 0 0 4px;
}

#send-btn {
    background-color: #5ABF90;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

    #send-btn:hover {
        background-color: #4aab7f;
    }

/* Botón flotante */

#chattoggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #5ABF90;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    transition: transform 0.2s;
    position: fixed;
}

    #chattoggle:hover {
        transform: scale(1.1);
    }

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(90,191,144, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(90,191,144, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(90,191,144, 0);
    }
}

.badge-ia {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: white;
    color: #5ABF90;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 6px;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}



.gpt-turnos {
    --accent: #2bb673; /* tu verde principal del header del chat */
    --accent-strong: #1ea365; /* verde más oscuro para títulos */
    --bg: #f6fbf8; /* fondo suave */
    --text: #1e293b; /* texto principal */
    --muted: #64748b; /* texto secundario */
    --border: #e5e7eb; /* bordes */
    --row-alt: #fbfdfb; /* zebra */
    --row-hover: #f0faf4; /* hover */
    --chip: #e8f7ef; /* pastilla del rango */
}
