/* ============================================================
   Archivo: siwlu.css
   Sucesión Abisay - Hoja de Estilos Panel Siwlu IA
   ============================================================ */

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Barra de Navegación Superior con Línea Continua --- */
.header-row {
    background-color: #ffffff;
    padding: 6px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #cbd5e1;
}

.header-row h1 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
}

.header-row nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.2s;
}

.header-row nav a:hover {
    color: #2980b9;
}

/* --- Contenedor de 1 Columna y 3 Filas Simétricas --- */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1300px;
    width: 95%;
    margin: 5px auto 30px auto;
    gap: 20px;
    padding: 0 15px;
    box-sizing: border-box;
}

/* --- Bloques Contenedores Unificados --- */
.bloque-siwlu {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 25px;
    min-height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* --- Bloque 1: Contenedor del Canvas Cimático en Óvalo Expandido --- */
#canvas-cimatico {
    display: block;
    margin: 0 auto;
    user-select: none;
    background-color: #020b1e;

    /* --- EXPANSIÓN DE TAMAÑO ÓPTIMO --- */
    width: 220px;  /* Escalado de 160px a 220px */
    height: 165px; /* Escalado proporcional para mantener la elipse perfecta */
    border-radius: 50%;

    /* --- RESPLANDOR NEÓN CIAN --- */
    box-shadow:
        0 0 20px rgba(0, 245, 212, 0.45),
        inset 0 0 25px rgba(0, 0, 0, 0.7);
}

/* --- Bloque 2: Grupo Buscador y Botón Contiguo --- */
.search-group {
    display: flex;
    width: 100%;
    max-width: 450px;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #2ec4b6;
}

.search-button {
    background-color: #2ec4b6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 24px;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.1s;
}

.search-button:hover {
    background-color: #20a396;
}

.search-button:active {
    transform: scale(0.97);
}

/* --- Bloque 3: Consola Conversacional Siwlu --- */
.chat-container-siwlu {
    flex: 1;
    width: 100%;
    min-height: 400px;
    max-height: 65vh;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 16px;
    overflow-y: auto;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.chat-container-siwlu table {
    border-collapse: collapse;
    margin: 6px 0;
}

.chat-container-siwlu table th,
.chat-container-siwlu table td {
    border: 1px solid #cbd5e1;
    padding: 4px 8px;
}

/* Estilos de Burbujas de Texto */
.msg-siwlu {
    color: #000000c; /* Verde azulado oscuro, legible sobre blanco */
    line-height: 1.6;
    text-align: left;
}

.msg-abisay {
    color: #222222;
    line-height: 1.5;
    text-align: left;
    border-left: 3px solid #ffb703; /* Línea oro que marca tu autoridad */
    padding-left: 8px;
}

/* Scroll fino */
.chat-container-siwlu::-webkit-scrollbar { width: 4px; }
.chat-container-siwlu::-webkit-scrollbar-thumb { background: #2ec4b6; border-radius: 2px; }

.placeholder-text {
    color: #94a3b8;
    font-weight: 500;
}
