/**
 * PCYA Chatbot - Estilos de Ventana
 * Archivo: chat-window.css
 * Descripción: Estructura de la ventana del chat, header, input, menú rápido
 */

/* ===========================================================
   VENTANA PRINCIPAL DEL CHAT
   =========================================================== */

#pcya-chat-window {
    position: fixed;
    bottom: 105px;
    right: 25px;
    width: 360px;
    height: 500px;
    background: #f0ece4 !important;
    border-radius: 30px !important;
    display: none;
    flex-direction: column;
    box-shadow: var(--pcya-box-shadow-large);
    overflow: hidden;
    animation: fadeInUp .25s ease-out;
    z-index: 999999999 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    height: 600px;
    border: none !important;
}

/* ===========================================================
   HEADER - Estilo LG
   =========================================================== */

.pcya-header-lg {
    background: #333;
    padding: 25px 20px;
    color: white;
}

.pcya-header-top {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 400;
}

.pcya-top-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Botones superiores con hover rojo */
.pcya-pill-btn {
    background: white;
    color: black;
    border: none;
    padding: 14px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.pcya-pill-btn:hover {
    background-color: #EA1917 !important;
    color: white !important;
}

/* Header antiguo (compatibilidad) */
.pcya-header {
    background: var(--pcya-primary-color);
    color: white;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pcya-header button {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: .2s ease;
}

.pcya-header button:hover {
    color: var(--pcya-accent-color);
}

/* ===========================================================
   MENÚ RÁPIDO (Accesos Directos)
   =========================================================== */

.pcya-quick-menu-lg {
    flex: 1;
    overflow-y: auto;
}

.pcya-list-item {
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #DCD9CE;
    cursor: pointer;
    color: #333;
    font-size: 15px;
    transition: background 0.2s ease;
}

.pcya-list-item:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #333 !important;
}

.pcya-list-item .arrow {
    color: #999;
    font-size: 18px;
}

/* ===========================================================
   ÁREA DE INPUT - DISEÑO PC YA EMPRESARIAL (FINAL)
   =========================================================== */

.pcya-input-area {
    padding: 15px 20px 25px;
    background: #f0ece4; /* Color crema de fondo */
}

.pcya-input {
    display: flex;
    padding: 0; /* Ajustado para que el textarea mande */
    background: transparent;
    align-items: flex-end;
}

#pcya-input {
    width: 100% !important;
    border-radius: 30px !important;
    border: 1px solid #CCC !important; /* Gris suave cuando no está en uso */
    padding: 12px 20px !important;
    height: 48px !important;
    outline: none !important;
    resize: none !important; /* Elimina el triángulo de la esquina */
    background: #ffffff !important;
    box-sizing: border-box !important;
    min-height: 50px !important;
    max-height: 80px !important;
    font-size: 15px !important;
    color: #333 !important;
    
    /* ELIMINAR FLECHAS Y BARRAS DE SCROLL */
    overflow-y: hidden !important; 
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
    
    /* Transición para que el cambio a rojo sea suave */
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ELIMINAR BARRAS EN CHROME, SAFARI Y EDGE NUEVO */
#pcya-input::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* EFECTO CUANDO TE UBICAS EN EL CHAT (FOCO) */
#pcya-input:focus {
    border-color: #EA1917 !important; /* ROJO PC YA INTENSO */
    outline: none !important;
    background-color: #ffffff !important;
    /* Resplandor rojo sólido pero elegante */
    box-shadow: 0 0 8px rgba(234, 25, 23, 0.3) !important;
}

/* COLOR DEL TEXTO SUGERIDO (PLACEHOLDER) */
#pcya-input::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

/* ESTADO BLOQUEADO (Cuando se envía el formulario) */
.pcya-input-locked {
    background-color: #f8f8f8 !important;
    color: #999 !important;
    font-style: italic !important;
    border-color: #ddd !important;
    cursor: not-allowed !important;
}
/* ===========================================================
   BOTÓN DE ENVÍO
   =========================================================== */

#pcya-send {
    background: var(--pcya-primary-color);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0; 
    cursor: pointer;
    transition: .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="white" d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}

#pcya-send:hover {
    background-color: var(--pcya-accent-color);
}

/* ===========================================================
   LINK DE CATÁLOGOS
   =========================================================== */

.pcya-catalog-link {
    color: #000 !important;
    text-decoration: none;
    display: block;
}

.pcya-catalog-link:hover {
    color: #007bff !important;
    text-decoration: underline;
}
