/* ================================================================
   BARRA DE NAVEGACIÓN ADMIN - QQrumbé
   Estilos premium para la barra sticky del panel interno.
   ================================================================ */

.admin-bar {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d2c2c 100%);
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 0.5rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    font-family: 'Inter', sans-serif;
}

.admin-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Marca */
.admin-bar-brand {
    color: #e8c4a2;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-bar-rol {
    color: #a0a0a0;
    font-weight: 300;
    margin-left: 4px;
}

/* Botones de navegación */
.admin-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
    position: relative;
    white-space: nowrap;
}

.admin-nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.admin-nav-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.04);
}

/* Badge de pendientes animado */
.admin-badge {
    font-size: 0.5rem !important;
    padding: 0.15em 0.4em !important;
    animation: admin-pulse 2s infinite;
}

@keyframes admin-pulse {
    0%, 100% { transform: translate(50%, -50%) scale(1); }
    50% { transform: translate(50%, -50%) scale(1.15); }
}

/* Separador */
.admin-separator {
    color: #555;
    margin: 0 6px;
    font-size: 1.2rem;
    user-select: none;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Contenedor de tabla con scroll horizontal suave */
.dashboard-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

.dashboard-table-wrap table {
    min-width: 700px;
}

/* En móvil: íconos más grandes y columnas ocultas */
@media (max-width: 768px) {
    /* Barra admin: íconos más grandes */
    .admin-nav-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 8px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .admin-bar {
        padding: 0.4rem 0;
    }
    
    .admin-bar .container {
        padding: 0 0.5rem;
        gap: 0.25rem;
    }
    
    .admin-bar-brand {
        font-size: 0.75rem;
    }
    
    .admin-separator {
        margin: 0 4px;
    }
    
    /* Ocultar texto en botones de navegación (solo íconos) */
    .admin-nav-text {
        display: none;
    }
    
    /* Dashboard: numeralia más compacta */
    .dashboard-table-wrap table {
        min-width: 600px;
    }
    
    /* Ocultar columnas no esenciales en tablas */
    .hide-mobile {
        display: none;
    }
    
    /* Badge más visible */
    .admin-badge {
        font-size: 0.6rem !important;
        padding: 0.2em 0.5em !important;
    }
}

@media (max-width: 480px) {
    .admin-nav-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    
    .admin-bar-brand {
        font-size: 0.7rem;
    }
    
    .dashboard-table-wrap table {
        min-width: 500px;
    }
}