/* ==================================================
   RESET / BASE
================================================== */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    background: #f4f6f8;
    color: #333;
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 32px !important;
    font-weight: 700 !important;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

/* ==================================================
   GLOBAL LAYOUT (STICKY FOOTER)
================================================== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
    flex: 1;
    padding: 0;
    max-width: none !important;
    margin: 0 !important;
    width: 100% !important;
}

/* ==================================================
   MASTER FULL-WIDTH & SHARP CORNERS FIX (PREMIUM)
================================================== */
.King-layout, .Queen-layout, 
.king-layout, .queen-layout {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important; /* Eliminamos cualquier redondeado */
}

.King-home, .Queen-home,
.king-home, .queen-home {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Ajusta el contenido de la APP únicamente */
.King-content, .Queen-content,
.king-content, .queen-content {
    flex: 1 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 28px 40px !important;
}

/* ==================================================
   FIX GLOBAL BOTONES (ANTI-ROLLOVER TOTAL)
================================================== */
.btn, .btn-primary, .btn-secondary, .btn-lx-primary, 
.btn-guardar, .btn-admin, button, a.btn-primary,
.uagb-buttons-repeater.wp-block-button__link {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ==================================================
   FORCE WHITE NAV (NO ROLLOVER - ASTRA OVERRIDE)
 ================================================== */
.lx-home-nav a,
.lx-home-nav a:hover,
.lx-home-nav a:focus,
.lx-home-nav a:active {
    color: #ffffff !important;           /* SI ES BLANCO SE QUEDA BLANCO */
    text-decoration: none !important;    /* Sin subrayados */
    background: transparent !important;   /* Sin fondos raros */
    transition: none !important;         /* Sin animaciones */
    border: none !important;
    outline: none !important;
}

/* Forzamos a que el estado hover sea idéntico al normal usando códigos de color literales */
/* Botones Azules (Primarios) */
.btn-primary, .btn-lx-primary, .btn-guardar, a.btn-primary {
    background-color: #5569a6 !important;
    background: #5569a6 !important;
    color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-lx-primary:hover, .btn-lx-primary:focus, .btn-lx-primary:active,
.btn-guardar:hover, .btn-guardar:focus, .btn-guardar:active,
a.btn-primary:hover, a.btn-primary:focus, a.btn-primary:active {
    background-color: #5569a6 !important;
    background: #5569a6 !important;
    color: #ffffff !important;
    border-color: #5569a6 !important;
}

/* Botones Admin/Table (Azules Pro) */
.btn-save, .btn-admin {
    background-color: #4f6fad !important;
    color: #ffffff !important;
}

.btn-save:hover, .btn-admin:hover {
    background-color: #4f6fad !important;
    color: #ffffff !important;
}

/* Botones de WordPress (UAGB Elementor) */
.uagb-buttons-repeater.wp-block-button__link {
    background-color: #4a619f !important;
    color: #ffffff !important;
}

.uagb-buttons-repeater.wp-block-button__link:hover {
    background-color: #4a619f !important;
    color: #ffffff !important;
}

/* ==================================================
   STYLING FOR NAVIGATION PILLS (UNIFIED DARK)
   ================================================== */
.lx-menu-item a,
.lx-menu a,
.lx-navigation a,
[id^="menu-"] a {
    background-color: #202026 !important;
    background: #202026 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 8px !important; /* Mantenemos un redondeado suave pero sólido */
    padding: 12px 24px !important;
    display: inline-block !important;
    text-decoration: none !important;
    transition: none !important;
}

.lx-menu-item a:hover,
.lx-menu-item a:focus,
.lx-menu-item a:active {
    background-color: #202026 !important;
    background: #202026 !important;
    color: #ffffff !important;
    opacity: 0.9; /* Un cambio casi imperceptible para feedback */
}

/* ==================================================
   HEADER / FOOTER
================================================== */
.site-header {
    background: #dddddd;
    color: #1f1f1f;
    padding: 14px 24px;
    font-weight: 600;
}

.site-footer {
    margin-top: auto;
    padding: 15px;
    text-align: center;
    background: #dddddd;
    color: #1f1f1f;
    font-size: 13px;
}

/* ==================================================
   TITLES / EMPTY STATES
================================================== */
.admin-title {
    font-size: 28px;
    font-weight: 600;
    /*margin-bottom: 24px;*/
}

.admin-empty {
    background: #fff;
    border: 1px dashed #ccc;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    color: #666;
}

/* ==================================================
   TABLE (ADMIN / GLOBAL)
================================================== */
.table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    margin-top: 20px;
}

.table thead,
.admin-table thead {
    background: #f0f2f5;
}

.table th,
.table td,
.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.table th,
.admin-table th {
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #e3e6ea;
}

.table td,
.admin-table td {
    border-bottom: 1px solid #eef0f2;
}

.table tbody tr:hover,
.admin-table tbody tr:hover {
    background: #fafafa;
}

.admin-bio {
    max-width: 420px;
    line-height: 1.45;
}

/* ==================================================
   STATUS / BADGES
================================================== */
.badge,
.status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-warning,
.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* ==================================================
   BUTTONS / ACTIONS
================================================== */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.15s ease, transform 0.05s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-success,
.btn-approve {
    background: #28a745;
    color: #fff;
}

.btn-success:hover,
.btn-approve:hover {
    background: #218838;
}

.btn-danger,
.btn-reject {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover,
.btn-reject:hover {
    background: #c82333;
}

.admin-actions {
    display: flex;
    gap: 8px;
}

form {
    display: inline;
}

form + form {
    margin-left: 6px;
}

/* ==================================================
   FLASH MESSAGES
================================================== */
.flash {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==================================================
   RESPONSIVE MENU & SIDEBAR (LUXY DARK)
================================================== */
@media (max-width: 900px) {
    /* OCULTAR MENÚS DUPLICADOS Y CABECERAS EXTRA EN EL FRONT */
    .lx-home-nav,
    .lx-home-header-inner > .lx-home-nav,
    .lx-home-nav-wrap .luxy-menu-desktop {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
    }

    /* Mostrar el wrap solo para los filtros en móvil */
    .lx-home-nav-wrap {
        display: block !important;
        width: 100% !important;
        padding: 5px 0 !important;
        background: transparent !important; /* ELIMINAR FONDO GRIS */
    }

    /* FILTROS MÓVIL (Dentro de su nuevo contenedor) */
    .lx-mobile-filters-wrap {
        display: block !important;
        width: 100% !important;
        margin: 5px 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .lx-mobile-filters-wrap .luxy-menu-filters,
    .lx-mobile-filters-wrap .luxy-filters-form {
        display: flex !important;
        flex-direction: column !important; /* UNO POR LÍNEA */
        gap: 12px !important;
        width: 100% !important;
        align-items: center !important;
    }

    .lx-mobile-filters-wrap .filter-select {
        width: 100% !important;
        max-width: 320px !important; /* Mantenemos elegancia */
        height: 48px !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
        background: #ffffff !important;
        color: #111827 !important;
        border-radius: 10px !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    }
}

/* Ocultar en desktop */
@media (min-width: 901px) {
    .lx-mobile-filters-wrap {
        display: none !important;
    }
}

/* =========================================
   BASE GLOBAL SEGURA
========================================= */


body {
  margin: 0;
  background: #f4f6f8;
  color: #333;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    padding: 0px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer {
    margin-top: auto;
}
/* ===============================
   DASHBOARD HOME
=============================== */

.admin-home .admin-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.dashboard-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #111;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.card-icon {
  font-size: 28px;
}

.card-data strong {
  font-size: 22px;
  display: block;
}

.card-data span {
  font-size: 13px;
  color: #6b7280;
}

/* Estados */
.dashboard-card.success {
  border-left: 5px solid #22c55e;
}

.dashboard-card.warning {
  border-left: 5px solid #facc15;
}

.dashboard-card.neutral {
  border-left: 5px solid #94a3b8;
}
