/* Layout Principal: Ocupa toda la pantalla */
#nt-spa-app {
    display: flex;
    height: 100vh; /* Altura completa de la ventana */
    width: 100vw;
    overflow: hidden; /* Evita doble scroll */
    background-color: #FDFDFD;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* --- SIDEBAR --- */
.nt-sidebar {
    width: 280px; /* Ancho fijo */
    background: #fff;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #F0F0F0;
    flex-shrink: 0; /* No se encoge */
    z-index: 10;
    box-shadow: 2px 0 20px rgba(0,0,0,0.02);
}

/* Perfil */
.nt-user-profile {
    text-align: center;
    margin-bottom: 30px;
}
.nt-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.nt-avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.nt-user-name { font-size: 16px; font-weight: 700; color: #333; margin: 0; }

/* Botón Dashboard (Azul Grande) */
.nt-btn-dashboard {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #008AFC;
    color: #fff !important;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: transform 0.2s;
}
.nt-btn-dashboard:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,138,252,0.3); }
.nt-btn-dashboard .dashicons { margin-right: 8px; }

/* Menú de WordPress */
.nt-wp-menu { list-style: none; padding: 0; margin: 0; }
.nt-wp-menu li { margin-bottom: 8px; }

/* Enlaces del Menú */
.nt-wp-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #888;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

/* Iconos (puedes usar plugins de iconos en el menú o CSS classes) */
.nt-wp-menu li a:before {
    content: ''; /* Aquí podrías mapear iconos */
    width: 20px;
    height: 20px;
    background: #ccc; /* Placeholder icono */
    margin-right: 12px;
    border-radius: 4px;
    opacity: 0.5;
}

/* Estados: Hover y Activo */
.nt-wp-menu li a:hover, 
.nt-wp-menu li.current-menu-item a {
    color: #008AFC;
    background-color: rgba(0, 138, 252, 0.05);
}
.nt-wp-menu li.current-menu-item a:before { background: #008AFC; opacity: 1; }

/* Footer Sidebar */
.nt-sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid #eee; }
.nt-footer-link { color: #999; text-decoration: none; display: flex; align-items: center; font-size: 14px; }
.nt-footer-link:hover { color: #d9534f; }
.nt-footer-link .dashicons { margin-right: 8px; }

/* --- CONTENIDO PRINCIPAL --- */
#nt-viewport {
    flex-grow: 1;
    background-color: #FAFAFA; /* Fondo gris muy claro para diferenciar */
    overflow-y: auto; /* IMPORTANTE: El scroll solo ocurre aquí */
    position: relative;
    padding: 0; /* Elementor controla el padding interno */
}

/* Inyección de Contenido */
#nt-content-injection {
    width: 100%;
    min-height: 100%;
}

/* Loader */
.nt-loader {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.8); z-index: 50;
    display: flex; justify-content: center; align-items: center;
}
.spinner {
    width: 40px; height: 40px; border: 4px solid #f3f3f3;
    border-top: 4px solid #008AFC; border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }





/* Estilos para la pantalla de bienvenida por defecto */
.nt-dashboard-welcome {
    text-align: center;
    padding-top: 100px;
    max-width: 600px;
    margin: 0 auto;
}
.nt-dashboard-welcome h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}
.nt-dashboard-welcome p {
    font-size: 18px;
    color: #666;
}



/* Botón de Prueba en el Welcome Area */
.nt-btn-test {
    display: inline-block;
    background-color: #008AFC; /* Mismo azul que el theme */
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0, 138, 252, 0.3);
    transition: all 0.3s ease;
}

.nt-btn-test:hover {
    background-color: #006ecb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 138, 252, 0.4);
}



/* =========================================
   FIX: COMPATIBILIDAD CON ELEMENTOR
   ========================================= */

/* 1. Arreglo de Iconos Gigantes (SVG) */
/* Forzamos a que los SVGs dentro de listas y botones tengan un tamaño relativo al texto */
#nt-content-injection .elementor-icon-list-icon svg,
#nt-content-injection .elementor-button-icon svg {
    width: 1em !important;  /* 1em = tamaño de la fuente actual */
    height: 1em !important;
    max-width: none !important;
    display: inline-block;
    vertical-align: middle;
}

/* 2. Arreglo para Iconos que no están en listas (Icon Widget) */
#nt-content-injection .elementor-widget-icon svg {
    width: auto !important; /* Respetar el ancho definido por Elementor */
    height: auto !important;
}

/* 3. Arreglo de Botones */
/* A veces los estilos globales del tema sobrescriben el display inline-block */
#nt-content-injection .elementor-button {
    display: inline-flex !important; /* Elementor usa flexbox para centrar iconos */
    align-items: center;
    justify-content: center;
    max-width: 100%; /* Evitar que se desborden */
}

/* 4. Reset de Enlaces (Links) */
/* Aseguramos que los enlaces dentro del contenido no hereden estilos del sidebar */
#nt-content-injection a {
    text-decoration: none; /* O el valor que prefieras por defecto */
}

/* 5. Imágenes */
/* Evitar que las imágenes se estiren si Elementor no lo pide */
#nt-content-injection img {
    height: auto;
    max-width: 100%;
}
/* =======================================================
   FIX DEFINITIVO: ELIMINAR PUNTOS DE LISTA (BULLETS)
   ======================================================= */

/* 1. Atacamos con máxima especificidad (html body...) para ganar al tema */
html body #nt-content-injection ul.elementor-icon-list-items,
html body #nt-content-injection li.elementor-icon-list-item {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important; /* Por si es una imagen */
    padding-left: 0 !important;
    margin-left: 0 !important;
    background: none !important; /* Algunos temas ponen el punto como fondo */
    display: flex !important; /* Forzamos flex para alinear icono y texto y matar comportamientos de lista */
    align-items: center;
}

/* 2. Aniquilar pseudoelementos ::before y ::after (Causa común) */
html body #nt-content-injection li.elementor-icon-list-item::before,
html body #nt-content-injection li.elementor-icon-list-item::after {
    content: "" !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
}

/* 3. Fix para navegadores modernos (::marker) */
html body #nt-content-injection li.elementor-icon-list-item::marker {
    content: none !important;
    display: none !important;
}

/* 4. Asegurar que el icono tenga espacio correcto */
html body #nt-content-injection .elementor-icon-list-icon {
    margin-right: 10px !important; /* Ajusta este valor si quieres más/menos espacio */
    display: inline-flex !important;
    align-items: center;
}