/* Estilos para el Widget de Chat */
#chat-widget-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

#chat-toggle-btn {
    background-color: #2a5298; /* brand-blue */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out, background-color 0.2s;
}

#chat-toggle-btn:hover {
    background-color: #1e3c72;
    transform: scale(1.1);
}

#chat-window {
    width: 350px;
    max-height: 500px;
    background-color: #f4f6f9; /* slate-light */
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
    border: 1px solid #e2e8f0;
    transform-origin: bottom right;
    animation: pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop-in {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#chat-header {
    background-color: #1a2530; /* brand-dark */
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

#close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

#chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message {
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    max-width: 80%;
    line-height: 1.4;
}

.message.received {
    background-color: #e2e8f0;
    color: #1a2530;
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
}

.message.sent {
    background-color: #2a5298; /* brand-blue */
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
}

/* Clases de utilidad de Tailwind que podrían no estar en el CDN */
.hidden { display: none; }