/* ==========================================================================
   NEXTZHOP PREMIUM UI - CSS CONSOLIDADO (V1.3)
   ========================================================================== */

:root {
    --primary: #008060;        /* Verde Marca Nextzhop */
    --primary-dark: #004c3f;
    --primary-light: #f1f8f5;
    --sidebar-bg: #1a1c1d;    /* Negro Sidebar */
    --bg-app: #f1f2f4;        /* Gris de fondo */
    --white: #ffffff;
    --text-main: #202223;
    --text-muted: #6d7175;
    --border-color: #dfe3e8;
    --radius: 12px;
    --shadow-md: 0 8px 24px rgba(149, 157, 165, 0.1);
}

/* 1. LIMPIEZA DE INTERFAZ WORDPRESS */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    background-color: var(--bg-app);
}

#wpadminbar, .site-header, .site-footer, #masthead, .entry-header, footer { 
    display: none !important; 
}

/* 2. ESTRUCTURA DE COLUMNAS (Flexbox) */
.nextzhop-app {
    display: flex !important;
    flex-direction: row !important;
    min-height: 100vh;
    width: 100%;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* 3. SIDEBAR PROFESIONAL */
.nextzhop-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--sidebar-bg);
    color: #ffffff;
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 30px 20px;
    box-sizing: border-box;
    z-index: 100;
}

.sidebar-logo h2 {
    margin: 0 0 40px 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #b5b5b5;
    text-decoration: none;
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
}

.sidebar-nav a.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 128, 96, 0.3);
}

/* 4. CONTENIDO PRINCIPAL */
.nextzhop-main-content {
    flex-grow: 1;
    background: var(--bg-app);
    min-height: 100vh;
    padding: 40px;
    box-sizing: border-box;
    min-width: 0; /* Evita que tablas grandes rompan el layout */
}

/* 5. COMPONENTES: TARJETAS (CARDS) */
.panel-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
}

.panel-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

/* 6. TABLAS Y BOTONES */
.nextzhop-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.nextzhop-table th {
    text-align: left;
    padding: 12px;
    background: #f9fafb;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--bg-app);
}

.nextzhop-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.9; }

/* 7. AJUSTES ADMIN BAR WP */
body.admin-bar .nextzhop-sidebar {
    top: 32px;
    height: calc(100vh - 32px);
}

/* =============================================================
   LIMPIEZA RADICAL DE CABECERA Y PIE DE PÁGINA
   ============================================================= */

/* 1. ELIMINAR NOMBRE DE LA PÁGINA (nextzhop.shop) Y CABECERAS */
/* Este bloque ataca directamente a los contenedores estándar de temas como Astra, OceanWP o Hello */
header, 
.site-header, 
.header-main, 
.entry-header, 
.page-header, 
.site-title-wrapper,
#masthead {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 2. ELIMINAR PIE DE PÁGINA (Funciona gracias a WordPress) */
footer, 
.site-footer, 
.footer-adv, 
#colophon, 
.site-info, 
.wp-block-footer,
[class*="footer-"] {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 3. REAJUSTE DE POSICIÓN DEL PANEL */
/* Forzamos que el panel suba al pixel 0 para que no quede espacio blanco */
.nextzhop-app {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    z-index: 99999; /* Para que esté por encima de cualquier cosa del tema */
}

/* 4. ELIMINAR MÁRGENES DEL CONTENEDOR DE WORDPRESS */
#page, #content, .site-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* ELIMINACIÓN TOTAL DE CABECERA Y PIE DE PÁGINA DEL TEMA */
header#masthead, 
footer#colophon, 
.site-header, 
.site-footer, 
.entry-header,
header.nextzhop-shop-header, /* Basado en tu captura */
.footer-nextzhop-shop {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
}

/* Forzar que el app ocupe todo el inicio */
.nextzhop-app {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ocultar barra de admin de WordPress si te molesta */
#wpadminbar {
    display: none !important;
}