body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    /* Slate 50 */
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar - for .custom-scrollbar class used in base.html */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 20px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(107, 114, 128, 0.8);
}

/* Specific Scrollbar for RAG Chatbox (ULTRA VISIBLE) */
.custom-scrollbar-rag {
    overflow-y: scroll !important; /* Forzar scroll siempre para debug/uso */
    scrollbar-width: auto !important; /* Usar scrollbar estándar si el personalizado falla */
    scrollbar-color: #2563eb #f1f5f9;
}

/* Para navegadores Webkit (Chrome, Safari, Edge) */
.custom-scrollbar-rag::-webkit-scrollbar {
    width: 10px !important;
    display: block !important;
}

.custom-scrollbar-rag::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 10px;
}

.custom-scrollbar-rag::-webkit-scrollbar-thumb {
    background-color: #2563eb !important;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

.custom-scrollbar-rag::-webkit-scrollbar-thumb:hover {
    background-color: #1d4ed8 !important;
}

/* Asegurar que el contenedor padre mantenga su tamaño solo cuando no esté oculto */
#rag-chat-window:not(.hidden) {
    height: 500px !important;
    max-height: 500px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; /* Volver a ocultar para mantener estética y contener hijos */
}

#rag-chatbox {
    flex: 1 !important;
    max-height: 380px !important; /* Altura máxima fija para forzar el scroll */
    overflow-y: scroll !important;
    padding-right: 15px !important;
    display: block !important;
}

/* Forzar scrollbar visible en Webkit */
.custom-scrollbar-rag::-webkit-scrollbar {
    width: 10px !important;
    display: block !important;
}

.custom-scrollbar-rag::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
}

.custom-scrollbar-rag::-webkit-scrollbar-thumb {
    background: #3b82f6 !important; /* Azul estándar Tailwind */
    border-radius: 10px !important;
    border: 2px solid #f1f5f9 !important;
}

/* Global Page Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sidebar and Content Adjustments */
/* Removing fixed width .sidebar to allow Tailwind w-72 to take precedence */
.sidebar {
    /* Kept for potential JS selection */
    z-index: 50;
}

.content-area {
    margin-left: 18rem;
    /* Matches w-72 (18rem) */
    transition: margin-left 0.3s ease-in-out;
    background-color: #f8fafc;
}

/* Accordion Transitions */
/* Sidebar Flyout Menu Styles */
/* Sidebar Flyout Menu Styles */
.sidebar {
    width: 260px;
    /* Adjusted width */
    overflow: visible !important;
    /* Allow flyouts to escape sidebar */
}

/* Sidebar Item Container */
.sidebar li {
    position: relative;
}

/* Submenu (Flyout Portal Content) */
#flyout-portal .flyout-content {
    background-color: #1f2937;
    /* Match sidebar dark theme */
    border-radius: 0.5rem;
    padding: 0.5rem;
    width: 260px;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #374151;
    color: #e5e7eb;
}

/* Sub-items in Flyout */
#flyout-portal li {
    position: relative;
    /* Context for level 3 */
}

/* Nested Transactions (Level 3) */
#flyout-portal .sub-category-transactions-flyout {
    position: absolute;
    left: calc(100% - 10px);
    /* Overlap parent by 10px to ensure connectivity */
    top: 0;
    width: 240px;
    background-color: #1f2937;
    border-radius: 0.5rem;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4);
    padding: 0.5rem;
    border: 1px solid #374151;
    display: none;
    /* Hidden by default */
    z-index: 10001;
    /* margin-left removed */
}

/* Show Level 3 on Hover of Level 2 */
#flyout-portal li:hover>.sub-category-transactions-flyout {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Arrows */
.sidebar .fa-chevron-down {
    transform: rotate(-90deg);
}

.content-area {
    margin-left: 260px;
    /* Match sidebar width */
}

/* Utility to ensure text readability if needed */
.text-lg {
    font-size: 1.125rem;
}

/* Estilos para el asistente IA */
.ai-assistant-container {
    background-color: #edf2f7;
    /* Gris muy claro */
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ai-response-box {
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e0;
    min-height: 100px;
    white-space: pre-wrap;
    /* Para preservar saltos de línea */
    word-wrap: break-word;
    /* Para romper palabras largas */
    padding: 1.5rem;
    /* Más padding para el contenido */
    line-height: 1.8 !important;
    /* Interlineado para mayor legibilidad */
    color: #333;
    /* Color de texto más oscuro para contraste */
}

/* Estilos para el contenido dentro del ai-response-box */
.ai-response-box p {
    margin-bottom: 1em !important;
    /* Espacio entre párrafos */
    line-height: 1.8 !important;
    /* Asegura el interlineado también en párrafos */
}

.ai-response-box ul {
    list-style: none !important;
    /* Elimina las viñetas por defecto */
    padding-left: 1.5em !important;
    /* Ajusta la sangría */
    margin-bottom: 1em !important;
}

.ai-response-box ul li {
    position: relative;
    padding-left: 1.2em !important;
    /* Espacio para el icono personalizado */
    margin-bottom: 0.5em !important;
}

.ai-response-box ul li::before {
    content: "\f111";
    /* Código de Font Awesome para un círculo sólido (fa-circle) */
    font-family: "Font Awesome 5 Free";
    /* Asegura que se use Font Awesome */
    font-weight: 900;
    /* Para iconos sólidos de Font Awesome */
    color: #4299e1;
    /* Color azul para las viñetas */
    position: absolute;
    left: 0;
    top: 0.2em;
    /* Ajusta la posición vertical del icono */
    font-size: 0.7em;
    /* Tamaño del icono */
}

.ai-response-box ol {
    list-style-type: decimal !important;
    /* Mantiene los números para listas ordenadas */
    padding-left: 1.5em !important;
    margin-bottom: 1em !important;
}

.ai-response-box ol li {
    margin-bottom: 0.5em !important;
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #4a5568;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Estilos para el campo de búsqueda de Base de Datos */
.db-search-container {
    background-color: #2d3748;
    /* Fondo similar al header del acordeón */
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.db-search-input {
    background-color: #4a5568;
    color: #e2e8f0;
    border: 1px solid #6b7280;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
}

.db-search-input::placeholder {
    color: #a0aec0;
}

.db-search-button {
    background-color: #035195;
    /* Azul */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: bold;
    transition: background-color 0.2s;
}

.db-search-button:hover {
    background-color: #3182ce;
    /* Azul más oscuro al hover */
}

#global-search-input {
    background-color: #e8ebf1;
    color: #444547;
    border: 1px solid #6b7280;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
}

.w-1\/3 {
    width: 50%;
}

/* --- ESTILOS PARA EL CONTENIDO DE LA TRANSACCIÓN (con !important) --- */

code,
kbd,
pre,
samp {
    font-size: 14px;
}

#content-display h1,
#content-display h2,
#content-display h3,
#content-display h4,
#content-display h5,
#content-display h6 {
    font-weight: 600 !important;
    /* semi-bold */
    margin-top: 0 em !important;
    /* Espacio superior para encabezados */
    margin-bottom: 0.5em !important;
    /* Espacio inferior */
    color: #2d3748 !important;
    /* Color de texto oscuro */
}

#content-display h1 {
    font-size: 2.25rem !important;
}

/* text-4xl */
#content-display h2 {
    font-size: 1.875rem !important;
}

/* text-3xl */
#content-display h3 {
    font-size: 1.5rem !important;
}

/* text-2xl */
#content-display h4 {
    font-size: 1.25rem !important;
}

/* text-xl */
#content-display h5 {
    font-size: 1.125rem !important;
}

/* text-lg */
#content-display h6 {
    font-size: 1rem !important;
}

/* text-base */

#content-display p {
    margin-bottom: 1em !important;
    /* Espacio entre párrafos */
    line-height: 1.6 !important;
    /* Altura de línea para legibilidad */
    color: #4a5568 !important;
    /* Color de texto estándar */
}

#content-display ul,
#content-display ol {
    margin-left: 1.5em !important;
    /* Sangría para listas */
    margin-bottom: 1em !important;
    list-style-position: outside !important;
    color: #4a5568 !important;
}

#content-display ul {
    list-style-type: disc !important;
}

/* Viñetas */
#content-display ol {
    list-style-type: decimal !important;
}

/* Números */
#content-display li {
    margin-bottom: 0.5em !important;
    /* Espacio entre ítems de lista */
}

#content-display a {
    color: #4299e1 !important;
    /* Azul para enlaces */
    text-decoration: underline !important;
}

#inisesion {
    color: #ffffff !important;
}

#content-display a:hover {
    color: #3182ce !important;
    /* Azul más oscuro al pasar el ratón */
}

#content-display pre {
    background-color: #2d3748 !important;
    /* Fondo oscuro para bloques de código */
    color: #e2e8f0 !important;
    /* Texto claro para código */
    padding: 1em !important;
    border-radius: 0.5em !important;
    overflow-x: auto !important;
    /* Permite desplazamiento horizontal si el código es muy largo */
    margin-bottom: 1em !important;
}

#content-display code {
    font-family: 'Consolas', 'Menlo', 'monospace' !important;
    /* Fuente monoespaciada para código */
    background-color: rgba(0, 0, 0, 0.1) !important;
    /* Ligero fondo para código en línea */
    padding: 0.2em 0.4em !important;
    border-radius: 0.2em !important;
}

#content-display pre code {
    background-color: transparent !important;
    /* Sin fondo extra para código dentro de <pre> */
    padding: 0 !important;
    border-radius: 0 !important;
}

#content-display strong {
    font-weight: 700 !important;
    /* Negrita */
    color: #2d3748 !important;
    /* Color de texto más oscuro para énfasis */
}

#content-display em {
    font-style: italic !important;
    /* Cursiva */
}

#content-display table {
    width: 100% !important;
    border-collapse: collapse !important;
    /* Colapsar bordes de tabla */
    margin-bottom: 1em !important;
}

#content-display th,
#content-display td {
    border: 1px solid #cbd5e0 !important;
    /* Borde gris claro */
    padding: 0.75em !important;
    text-align: left !important;
}

#content-display th {
    background-color: #edf2f7 !important;
    /* Fondo muy claro para encabezados de tabla */
    font-weight: 600 !important;
    color: #2d3748 !important;
}

/* Estilo para la rotación del icono de la flecha */
.fa-chevron-down {
    transform: rotate(0deg);
    transition: transform 0.3s ease-in-out;
}

.fa-chevron-up {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
}

/* Estilos para el efecto de sombra y redondez de los botones del menú */
.menu-item,
.main-category-toggle,
.sub-category-toggle,
.transaction-item {
    /* Incluye .transaction-item */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /* Mantiene una sombra sutil */
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, font-weight 0.15s ease-in-out;
}

.menu-item:hover,
.main-category-toggle:hover,
.sub-category-toggle:hover,
.transaction-item:hover {
    /* Incluye .transaction-item */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Active state for menu items and toggles */
.active-menu-item {
    font-weight: bold;
    color: #ffffff;
    /* white */
    background-color: #1a3666;
    /* Slightly darker blue for active items */
}

.active-main-category-toggle {
    font-weight: bold;
    color: #ffffff;
    background-color: #1a3666;
    /* Active main category */
}

.active-sub-category-toggle {
    font-weight: bold;
    color: #ffffff;
    background-color: #2a5a8a;
    /* Active sub category */
}

/* Nuevo estilo para el estado activo de las transacciones */
.active-transaction-item {
    font-weight: bold;
    color: #ffffff;
    background-color: #0056b3;
    /* Un azul más oscuro para el ítem de transacción activo */
}

/* Estilo para el contenido que ha sido marcado como cambiado */
.changed-content {
    color: red;
    font-style: italic;
}

/* Estilos para el contenedor del tooltip */
.tooltip-container {
    position: relative;
    display: inline-block;
    /* Permite que el contenedor se ajuste al contenido */
    cursor: pointer;
    /* Indica que es interactivo */
}

/* Estilos para el contenido del tooltip (oculto por defecto) */
.tooltip-content {
    visibility: hidden;
    opacity: 0;
    width: 300px;
    /* Ancho del recuadro desplegable */
    background-color: #f0f4f8;
    /* Color de fondo del tooltip */
    color: #333;
    text-align: left;
    border-radius: 8px;
    /* Bordes redondeados */
    padding: 15px;
    position: absolute;
    z-index: 100;
    /* Asegura que esté por encima de otros elementos */
    top: 100%;
    /* Posiciona el tooltip por debajo del recuadro */
    left: 50%;
    transform: translateX(-50%);
    /* Centra el tooltip horizontalmente */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Sombra suave */
    transition: opacity 0.3s, visibility 0.3s;
    /* Transición suave para aparecer/desaparecer */
    border: 1px solid #e2e8f0;
    /* Borde sutil */
}

/* Flecha del tooltip */
.tooltip-content::after {
    content: "";
    position: absolute;
    bottom: 100%;
    /* Posiciona la flecha en la parte superior del tooltip */
    left: 50%;
    margin-left: -8px;
    /* Centra la flecha */
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #f0f4f8 transparent;
    /* Color de la flecha apuntando hacia arriba */
}

/* Mostrar el tooltip al pasar el mouse */
.tooltip-container:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Estilos para los recuadros iniciales */
.info-box {
    background-color: #ffffff;
    padding: 0.75rem;
    /* Reducido de p-6 a p-3 (1.5rem a 0.75rem) */
    border-radius: 0.5rem;
    /* rounded-lg */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    /* shadow-md */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    /* font-semibold */
    font-size: 1rem;
    /* Reducido de text-lg a text-base */
    min-height: 80px;
    /* Altura mínima reducida de 120px a 80px */
    transition: transform 0.2s ease-in-out;
    /* Transición para el hover del recuadro */
}

.info-box h4 {
    font-size: 1rem;
    /* Asegura que el título dentro del recuadro también sea más pequeño */
    margin-bottom: 0;
    /* Elimina el margen inferior del título si no es necesario */
}

.info-box:hover {
    transform: translateY(-5px);
    /* Pequeño efecto de elevación al pasar el mouse */
}

/* Colores específicos para cada recuadro */
.box-nexus {
    color: #1d407d;
    /* text-blue-700 */
    border-bottom: 4px solid #3b82f6;
    /* border-b-4 border-blue-500 */
}

.box-objective {
    color: #107d30;
    /* text-green-700 */
    border-bottom: 4px solid #22c55e;
    /* border-b-4 border-green-500 */
}

.box-find {
    color: #6b21a8;
    /* text-purple-700 */
    border-bottom: 4px solid #a855f7;
    /* border-b-4 border-purple-500*/
}

#contenidoID {
    margin-bottom: 10px;
}

/* Nuevo estilo para la notificación de éxito/error */
.notification-toast {
    position: fixed;
    /* Fijo en la ventana de visualización */
    bottom: 20px;
    /* 20px desde la parte inferior */
    right: 20px;
    /* 20px desde la parte derecha */
    background-color: #10B981;
    /* Un verde vibrante para éxito */
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    /* Asegura que esté por encima de casi todo */
    opacity: 0;
    /* Inicialmente oculto */
    visibility: hidden;
    /* Oculto por defecto */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    /* Transición suave */
    font-size: 0.95rem;
    max-width: 300px;
    /* Ancho máximo para que no sea demasiado largo */
    text-align: center;
}

.notification-toast.show {
    opacity: 1;
    visibility: visible;
}

.text-gray-600 {
    font-style: italic;
    text-align: justify;
}

/* Estilo para notificaciones de error */
.notification-toast.error {
    background-color: #EF4444;
    /* Rojo para errores */
}

#chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    z-index: 1000;
}

#chat-popup {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
}

#chat-header {
    background: #0066cc;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Popup */
/* Estilos base del Chatbot (Simplicados para el nuevo RAG) */
.chatbot-popup {
    display: none;
}

/* Loader */
.loading {
    text-align: center;
    padding: 8px;
    font-style: italic;
    color: #555;
}

.hidden {
    display: none;
}


/*STYLE SECCION VIDEOS*/

body {
    font-family: 'Inter', sans-serif;
    background-color: #f7f9fc;
}

/* Contenedor para mantener el aspecto 16:9 y simular el video */
.video-placeholder {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background-color: #1f2937;
    /* Fondo oscuro */
    cursor: pointer;
}

/* Icono de Play centrado */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Estilo para la imagen de placeholder (si es que existe) */
.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s;
}

/* Estilo del cursor para la tarjeta interactiva */
.card {
    cursor: pointer;
}

/**/

/* ==========================================
   SOPORTE PARA SIDEBAR GLOBAL CONTRAIBLE (NEXUS)
   ========================================== */
body.sidebar-collapsed .sidebar {
    width: 80px !important;
}
body.sidebar-collapsed .content-area {
    margin-left: 80px !important;
}

/* Base: la content-area necesita altura relativa para que el fullscreen chat funcione */
.content-area {
    height: 100%;
    min-height: 0;
}

/* El main también debe respetarse en la cadena flex */
.content-area,
#content-display {
    transition: padding 0.2s ease, border-radius 0.2s ease;
}

body.sidebar-collapsed #nexus-logo-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin: 0;
    display: none !important;
}
body.sidebar-collapsed .sidebar span {
    display: none !important;
}
body.sidebar-collapsed .sidebar .fa-chevron-right {
    display: none !important;
}
body.sidebar-collapsed .sidebar p {
    display: none !important;
}
body.sidebar-collapsed .sidebar .category-item-container .accordion-header {
    justify-content: center !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}
body.sidebar-collapsed .sidebar .category-item-container .accordion-header div {
    margin-right: 0 !important;
}
body.sidebar-collapsed .sidebar li a {
    justify-content: center !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}
body.sidebar-collapsed .sidebar li a div {
    margin-right: 0 !important;
}
body.sidebar-collapsed #main-sidebar-toggle-icon {
    transform: rotate(180deg);
}
body.sidebar-collapsed .sidebar .bg-black\/20 div {
    justify-content: center !important;
}
body.sidebar-collapsed .sidebar .bg-black\/20 p,
body.sidebar-collapsed .sidebar .bg-black\/20 form,
body.sidebar-collapsed .sidebar .bg-black\/20 .ml-3 {
    display: none !important;
}

/* ==========================================
   MODO PANTALLA COMPLETA - CHAT TEXT2SQL
   Cuando body tiene clase 't2sql-chat-active',
   eliminamos todos los paddings intermedios
   y el chat ocupa la pantalla completa.
   ========================================== */

/* Estado normal: el chat tiene altura calculada */
#t2sql-view-chat {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

/* ---- MODO FULLSCREEN CHAT ---- */
body.t2sql-chat-active .content-area {
    padding: 0 !important;
    gap: 0 !important;
    space-y: 0 !important;
}

body.t2sql-chat-active .content-area header {
    display: none !important;
}

body.t2sql-chat-active #page-title-container {
    display: none !important;
}

body.t2sql-chat-active #content-display {
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

body.t2sql-chat-active #t2sql-main-panel {
    padding: 0 !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

body.t2sql-chat-active #t2sql-view-chat {
    flex: 1;
    height: 100% !important;
    max-height: 100% !important;
    padding: 16px !important;
    overflow: hidden !important;
}

body.t2sql-chat-active #t2sql-chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Anular los márgenes de Tailwind space-y-8 en el main cuando está en chat */
body.t2sql-chat-active .content-area > * {
    margin-top: 0 !important;
}

/* Hacer que el main tome la altura completa de la pantalla en modo chat */
body.t2sql-chat-active .content-area {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

/* Anular el overflow-y del content-display para que el flex funcione */
body.t2sql-chat-active #content-display {
    flex-grow: 1;
    height: 0; /* Truco flex: con flex-grow: 1 + height: 0 el elemento crece al máximo disponible */
}

/* Fondo blanco suave para el área en modo chat (quitar el fondo slate del body) */
body.t2sql-chat-active .content-area {
    background: #f8fafc;
}
